/* ============================================================================
   ludi-suivi.css — la page de suivi du joueur.
   ========================================================================== */
/*  ═══ CE QUE CETTE FEUILLE NE FAIT PLUS ═══
    Elle posait son propre fond, sa propre police, sa propre flèche de retour
    et sa propre largeur de colonne — c'est-à-dire une seconde définition de
    ce que salon.css décrit déjà pour tout le reste du salon. Deux définitions
    d'un même décor divergent toujours, et celle qu'on oublie de mettre à jour
    est celle qu'on regarde le moins.
    **Une feuille de page ne décrit que ce qui est propre à la page.**
    `salon.css` est chargée AVANT : tout ce qui suit ne fait que s'y ajouter. */
* { box-sizing: border-box }
/*  Le suivi est une page de lecture, pas une mosaïque : la colonne large du
    hub y rendrait des lignes de tableau interminables. */
main.wrap { max-width: 900px; padding-top: 20px }
h1 { letter-spacing: 2px; margin: 18px 0 4px;
     background: linear-gradient(#f3e3ae, #e7c96b 55%, #b8933f);
     -webkit-background-clip: text; background-clip: text; color: transparent }
h2 { font-size: 18px; color: var(--or); margin: 0 0 12px }
section { background: rgba(20,16,40,.62); border: 1px solid rgba(231,201,107,.2);
          border-radius: 16px; padding: 18px 22px; margin: 0 0 16px }
.note { color: #9b93b8; font-size: 13px; margin: 10px 0 0 }
.pied { text-align: center; margin-top: 24px; font-size: 13.5px; color: #8f87ad }

/* ── le profil : qui je suis ─────────────────────────────────────────────
   L'avatar vient de l'école. Il est GRAND : c'est la seule image de la page,
   et c'est elle qui fait qu'un tableau de chiffres devient le sien. */
.profil { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px }
.pf-face { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto;
           object-fit: cover; background: rgba(10,8,22,.6);
           border: 2px solid rgba(231,201,107,.45) }
.pf-vide { display: flex; align-items: center; justify-content: center; font-size: 30px }
.pf-txt { min-width: 0 }
.pf-txt b { display: block; font-size: 19px; color: #f3e7c4; line-height: 1.25 }
.pf-txt small { display: block; margin-top: 3px; font-size: 12.5px;
                color: var(--texte-doux); line-height: 1.45 }

/* ── le rang ─────────────────────────────────────────────────────────────── */
.tete { margin-bottom: 18px }
.rang { background: rgba(231,201,107,.08); border: 1px solid rgba(231,201,107,.3);
        border-radius: 14px; padding: 14px 18px; margin-top: 10px }
.rangNom { display: block; font-size: 20px; font-weight: 800; color: #f3e7c4 }
.rangNum { display: block; font-size: 12.5px; color: #9b93b8; letter-spacing: .06em;
           text-transform: uppercase; margin-bottom: 10px }
.jauge { height: 10px; border-radius: 99px; background: rgba(0,0,0,.4); overflow: hidden }
.jauge span { display: block; height: 100%; border-radius: 99px;
              background: linear-gradient(90deg, #dfae4f, #f3d98a) }
.rang small { display: block; margin-top: 7px; font-size: 12.5px; color: #b3abd0 }

/* ── les chiffres ────────────────────────────────────────────────────────── */
.chiffres { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) }
.chiffres div { background: rgba(10,8,22,.5); border-radius: 12px; padding: 14px; text-align: center }
.chiffres b { display: block; font-size: 24px; color: var(--or); line-height: 1.15 }
.chiffres span { font-size: 12.5px; color: #b3abd0; line-height: 1.35; display: block; margin-top: 4px }

/* ── la frise d'assiduité ────────────────────────────────────────────────
   Trente barres de hauteur variable. Les jours vides gardent leur place :
   c'est le CONTRASTE qui rend une série lisible, pas les barres seules. */
.frise { display: flex; align-items: flex-end; gap: 3px; height: 64px;
         padding: 6px 0; border-bottom: 1px solid rgba(231,201,107,.18) }
.frise .j { flex: 1; min-width: 4px; height: var(--h); border-radius: 3px 3px 0 0;
            background: linear-gradient(180deg, #f3d98a, #c9a13f); }
.frise .j.rien { height: 3px; background: rgba(255,255,255,.09) }

/* ── les hauts faits ─────────────────────────────────────────────────────
   Une carte par famille. La marche ACQUISE est en gros, la suivante en petit :
   on célèbre d'abord ce qui est fait, on montre ensuite ce qui vient — et non
   l'inverse, qui ferait d'un tableau de bord une liste de manques. */
h2 .compteur { float: right; font-size: 12.5px; color: #9b93b8; font-weight: 600;
               letter-spacing: .04em }
.faits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)) }
.fait { background: rgba(10,8,22,.5); border: 1px solid rgba(255,255,255,.07);
        border-radius: 13px; padding: 13px 15px }
/*  Le liseré doré est ce qui distingue une famille TERMINÉE des autres :
    à .42 il mesurait 2,94:1, juste sous le seuil des indicateurs d'état. */
.fait.complet { border-color: rgba(231,201,107,.55); 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-size: 12px; letter-spacing: .1em; text-transform: uppercase;
         color: #9b93b8; font-weight: 700 }
.f-etoiles { letter-spacing: 1px; font-style: normal }
/*  L'étoile ÉTEINTE dit combien de paliers restent : c'est une information,
    pas un décor. À .16 d'opacité elle mesurait 1,55:1 sur la carte — au ras du
    fond, donc absente. À .38 : 3,54:1. Elle reste nettement plus discrète que
    l'étoile acquise, qui est en or plein — la hiérarchie tient, la deuxième
    marche existe.  */
.f-etoiles i { font-style: normal; color: rgba(255,255,255,.38); 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: #8f87ad; font-weight: 500; 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-size: 12.5px; color: #b3abd0; line-height: 1.45 }
.f-suite b { color: var(--or) }

/* ── le tableau par jeu ──────────────────────────────────────────────────── */
.parjeu { width: 100%; border-collapse: collapse; font-size: 14px }
.parjeu th, .parjeu td { padding: 9px 8px; text-align: right }
/*  11,5 px en capitales espacées pour les EN-TÊTES d'un tableau de chiffres :
    ce sont eux qui disent ce que chaque colonne compte.  */
.parjeu thead th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
                   color: #9b93b8; border-bottom: 1px solid rgba(231,201,107,.22); font-weight: 600 }
.parjeu th[scope=row] { text-align: left; font-weight: 600 }
.parjeu th[scope=row] a { text-decoration: none; color: #f0ead9 }
.parjeu th[scope=row] a:hover { color: var(--or) }
.parjeu tbody tr { border-bottom: 1px solid rgba(255,255,255,.06) }
.parjeu tbody tr:last-child { border-bottom: 0 }
.taux { font-weight: 700; color: var(--or) }
.parjeu small { display: block; color: #8f87ad; font-size: 12.5px }

/* ── les dernières parties ───────────────────────────────────────────────── */
.recents { list-style: none; margin: 0; padding: 0 }
.recents li { display: flex; align-items: center; gap: 10px; padding: 9px 4px;
              border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px }
.recents li:last-child { border-bottom: 0 }
.recents .ico { width: 22px; text-align: center }
.recents b { flex: 1; color: #e9e3f6; font-weight: 600 }
.recents .quand { color: #8f87ad; font-size: 12.5px }
.recents .xp { color: var(--or); font-weight: 700; font-size: 13px; min-width: 62px; text-align: right }
.recents li.gagne b { color: #f3e7c4 }

/* ── à découvrir ─────────────────────────────────────────────────────────── */
.decouvrir { display: flex; flex-wrap: wrap; gap: 8px }
/*  29,5 px de haut et une bordure à 2,06:1 : une commande qu'on rate et dont
    on ne voit pas le bord. 44 px, et .55 d'opacité (3,4:1).  */
.decouvrir a { font-size: 13.5px; text-decoration: none; color: #d9d0ef;
               border: 1px solid rgba(231,201,107,.55); border-radius: 999px; padding: 7px 14px;
               min-height: 44px; display: inline-flex; align-items: center }
.decouvrir a:hover { background: rgba(231,201,107,.12); color: var(--or) }

.vide { text-align: center }
.vide p { color: #cec7e4; line-height: 1.6 }
.cta { display: inline-block; margin-top: 8px; text-decoration: none; font-weight: 700;
       border-radius: 999px; padding: 11px 22px; color: #241c04;
       background: linear-gradient(180deg, #f3d98a, #dfae4f) }

@media (max-width: 560px) {
  .parjeu th, .parjeu td { padding: 8px 4px; font-size: 13px }
  section { padding: 14px 15px }
}

/*  Les deux portes vers l'école, sous le nom (12/09) : la première en or comme
    les appels du salon, la seconde en creux — deux chemins, une hiérarchie. */
.pf-portes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 }
.pf-portes .cta { margin-top: 0 }
.pf-portes .cta-second { background: transparent; color: #f0d68a; border: 1px solid #6b5a90; box-shadow: none }
.pf-portes .cta-second:hover { background: #31293a }
