/* ============================================================
   mesures-abonne.css — les statistiques du joueur (mesures-abonne.js)
   ============================================================
   Sortie de loggedinapp.html le 6 oct. 2026 pour que l'exemple de suivi
   public (exemple-suivi.html) dessine EXACTEMENT ce que voit l'abonné :
   une seule feuille, rien à recopier, rien qui diverge. loggedinapp.html
   la charge au même endroit de sa cascade qu'avant (entre deux <style>).
   ============================================================ */

/* ============================================================
   Le tableau de bord du joueur
   ============================================================
   Une note en grand, une courbe, deux tableaux, un nuage. Rien
   d'autre. Ce qui se mesure derrière est compliqué ; ce qui se lit
   doit tenir en un regard, y compris pour quelqu'un qui n'a jamais
   lu un graphique de sa vie. */

.m-note {
    display: flex; align-items: center; gap: 1rem;
    background: linear-gradient(135deg, #0089D4 0%, #0069a8 100%);
    color: #fff; border-radius: 18px; padding: 1.1rem 1.3rem;
    box-shadow: 0 6px 24px rgba(0,105,168,0.28); margin-bottom: 0.9rem;
}
/* Le cadre dans la couleur du niveau DICEM du score (Julien, 3 oct.) :
   82 → Maîtrise, noir. Les couleurs viennent de mesures-abonne.js. */
.m-note.m-note-rang { background: linear-gradient(135deg, var(--note-fond) 0%, var(--note-fond2) 100%); color: var(--note-texte); box-shadow: 0 6px 24px rgba(0,0,0,0.18); }
.m-note.m-note-vide { background: #e9e2d6; color: #8b7d6f; box-shadow: none; }
.m-note-chiffre {
    font-size: 3rem; font-weight: 900; line-height: 1; flex: none;
    font-variant-numeric: tabular-nums;
}
.m-note-chiffre em {
    font-style: normal; font-size: 0.34em; font-weight: 700; opacity: 0.72;
}
/* Les deux chiffres d'appoint, collés sous la note : ils la
   complètent, ils ne concourent pas avec elle. */
.m-duo-tete { margin-top: -0.4rem; margin-bottom: 0.9rem; }
/* « Votre sKore sport neuronal® », la marque seule en gras (Julien, 2 oct. ; « sKore » depuis le 5 oct.). */
.m-note-mot {
    font-size: 0.95rem; font-weight: 500; line-height: 1.35;
}
.m-note-mot b { font-weight: 900; }
/* Sur un petit téléphone, « sport neuronal® » (insécable) débordait
   de 3 px : la tuile resserre ses marges. */
@media (max-width: 380px) { .m-note { gap: 0.7rem; padding: 1rem 0.95rem; } .m-note-mot { font-size: 0.9rem; } }
.m-note-mot em {
    display: block; font-style: normal; font-weight: 500;
    text-transform: none; letter-spacing: 0; opacity: 0.82;
    font-size: 0.82rem; margin-top: 0.2rem;
}
/* Avant la 100e partie, le score attend : une jauge dit le chemin fait. */
.m-jauge { display: block; height: 7px; border-radius: 4px; background: #d6cbb9; margin-top: 0.5rem; overflow: hidden; }
.m-jauge i { display: block; height: 100%; border-radius: 4px; background: #0089D4; }
/* Le « i » du score, dans le coin du cadre ; sa zone de toucher fait
   44 px sans pousser le texte (le ::after déborde). */
.m-note { position: relative; }
.m-note-i { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.16); color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.m-note-i::after { content: ''; position: absolute; inset: -7px; }
.m-note-i[aria-expanded="true"] { background: #fff; color: #0069a8; }
.m-note-vide .m-note-i { background: rgba(63,54,43,0.08); }
.m-note-i:focus-visible { outline: 3px solid #FFD700; outline-offset: 2px; }
/* La carte du « i », en avant-plan et centrée, au-dessus de la carte
   d'entraînement (12000) d'où s'ouvre la synthèse. */
#m-calcul-voile { z-index: 12500; align-items: center; padding: 1rem; }
/* La carte du « i » défile dans l'écran (Julien, 5 oct. : « on peut mettre
   un scroll, on a mis beaucoup d'infos ») : dvh pour les téléphones, dont
   la barre d'adresse mange le bas d'un 100vh ; la croix reste en haut. */
.m-calcul-cadre { position: relative; width: min(100%, 440px); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.m-calcul-cadre .aide-fermer { position: sticky; top: 0; display: block; margin: -0.4rem -0.4rem -44px auto; width: 44px; height: 44px; z-index: 1; }   /* sans float : le « i » reste centré sur toute la largeur */
.m-calcul-i { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0.3rem auto 0.5rem; border-radius: 50%; background: #0089D4; color: #fff; }
.m-calcul-cadre h2 { margin: 0 0 0.9rem; font-size: 1.3rem; font-weight: 900; line-height: 1.25; color: #3f362b; text-align: center; }
.m-calcul-liste { margin: 0; padding-left: 1.2rem; font-size: 1rem; line-height: 1.5; color: #3f362b; }
.m-calcul-liste li + li { margin-top: 0.45rem; }
.m-calcul-liste sup { font-size: 0.7em; }
/* Le ® de sport neuronal® en petit exposant (Julien, 6 oct.). */
.m-calcul-cadre sup, .m-note sup { font-size: 0.5em; vertical-align: 0.8em; line-height: 0; margin-left: 0.05em; }
/* Les cinq niveaux : sur un téléphone, trois puis deux par ligne,
   jamais un mot coupé. */
.m-bandes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.8rem; }
.m-bandes.m-bandes-haut { margin: 0 0 1rem; }   /* sous le titre (Julien, 6 oct.) */
.m-bandes span { flex: 1 1 auto; text-align: center; white-space: nowrap; font-size: 0.8rem; font-weight: 800; line-height: 1.2; padding: 0.4rem 0.5rem; border-radius: 8px; }
.m-bandes small { display: block; font-weight: 600; font-size: 0.75rem; opacity: 0.9; }

.m-fenetres {
    display: flex; gap: 2px; padding: 3px; flex-wrap: wrap;
    background: rgba(255,255,255,0.8); border-radius: 50px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 1rem;
    justify-content: center;
}
.m-fenetres button {
    padding: 0.42rem 0.9rem; border-radius: 50px; border: none; background: transparent;
    font-family: inherit; font-weight: 700; font-size: 0.8rem; color: #8b7d6f;
    cursor: pointer; white-space: nowrap;
}
.m-fenetres button.on { background: #fff; color: #0089D4; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
/* Les cycles S1, S2… et les périodes de la tendance : la même
   rangée de pastilles, 44 px pour le doigt (Julien, 2 oct.). */
.m-segments { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 0 0 0.8rem; }
.m-segments button { min-height: 40px; min-width: 44px; padding: 0 0.8rem; border-radius: 50px; border: 1.5px solid #e6dccb;
    background: #fff; font-family: inherit; font-weight: 800; font-size: 0.85rem; color: #8b7d6f; cursor: pointer; }
.m-segments button.on { background: #0089D4; border-color: #0089D4; color: #fff; }
/* Les cycles, chacun de la couleur du piKto de son numéro ; le cycle
   regardé en plein, les autres adoucis. */
/* L'anneau du cycle choisi reste DANS le bouton (bordure + trait
   blanc intérieur) : dehors, il chevauchait les pastilles voisines
   (Julien, 2 oct.). */
.m-cycles { gap: 8px; }
.m-cycles button { background: var(--fond); color: var(--texte); border: 3px solid transparent; opacity: 0.5; font-weight: 900; }
.m-cycles button.blanc { border-color: #d9cdb9; }
.m-cycles button.on { background: var(--fond); color: var(--texte); opacity: 1; border-color: #3f362b; box-shadow: inset 0 0 0 2px #fff; }
/* Les meilleurs scores : une ligne par exercice, et de quoi le rejouer. */
.m-meilleurs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
/* Le nom et « Rejouer » sur la même ligne, le détail sur toute la largeur dessous. */
.m-meilleurs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.6rem; row-gap: 0.1rem; padding: 0.7rem 0; border-top: 1px solid #f0e9dd; }
.m-meilleurs li:first-child { border-top: none; padding-top: 0.2rem; }
.m-ms-nom { font-size: 1rem; color: #3f362b; }
.m-ms-detail { grid-column: 1 / -1; font-size: 0.92rem; color: #3f362b; }
.m-ms-quand { grid-column: 1 / -1; font-size: 0.8rem; color: #8b7d6f; }
.m-rejouer { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem; border-radius: 50px;
    background: linear-gradient(145deg, #FFD700, #E8A33D); color: #3a2a22; font-weight: 900; font-size: 0.88rem; text-decoration: none; white-space: nowrap; }

.m-bloc {
    background: rgba(255,255,255,0.93); border-radius: 18px; padding: 1.1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1); margin-bottom: 0.9rem;
}
.m-bloc h4 {
    font-size: 0.68rem; color: #a2957f; text-transform: uppercase;
    letter-spacing: 0.1em; margin: 0 0 0.9rem; font-weight: 800;
}
.m-quoi {
    text-transform: none; letter-spacing: 0; font-weight: 500;
    font-style: italic; color: #c0b4a2; margin-left: 0.4rem;
}

.m-courbe, .m-nuage { display: block; width: 100%; height: auto; }
/* Sur ordinateur, les graphiques (dessinés en 260 de large pour le téléphone)
   ne s'étirent plus sur toute la carte : leurs chiffres devenaient énormes
   (Julien, 6 oct. : « attention, sur ordinateur »). */
.m-courbe, .m-nuage { max-width: 420px; margin-left: auto; margin-right: auto; }
.m-axe {
    display: flex; justify-content: space-between; margin: 0.2rem 0 0;
    font-size: 0.68rem; color: #b5a993;
}
.m-legende {
    display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; justify-content: center;
    font-size: 0.7rem; color: #8b7d6f; margin: 0.5rem 0 0;
}
.m-lg { display: inline-flex; align-items: center; gap: 0.3rem; }
/* La vue d'ensemble sur 26 semaines (2 oct.) : une colonne par
   semaine, une ligne par jour ; la pastille prend la couleur du rang. */
.m-cal { display: grid; gap: 3px; align-items: center; margin-top: 0.3rem; }
.m-cal-mois { font-size: 0.68rem; color: #8b7d6f; font-weight: 800; white-space: nowrap; overflow: hidden; }
.m-cal-jour { font-size: 0.62rem; color: #8b7d6f; text-transform: uppercase; letter-spacing: 0.03em; }
.m-cal-case { aspect-ratio: 1; border-radius: 3px; background: #f1ece3; min-width: 0; position: relative; }
.m-cal-case.futur { background: transparent; }
.m-cal-case.p::after { content: ''; position: absolute; inset: var(--i, 22%); border-radius: 50%; background: var(--c); }
/* La taille dit le nombre de parties du jour : 1, 2, 3-4, 5-7, 8 et plus. */
.m-cal-case.t1 { --i: 34%; } .m-cal-case.t2 { --i: 26%; } .m-cal-case.t3 { --i: 18%; } .m-cal-case.t4 { --i: 10%; } .m-cal-case.t5 { --i: 2%; }
.m-cal-tailles { align-items: center; }
.m-cal-tailles .m-lg i { background: #8b7d6f; }
.m-cal-tailles i.t1 { width: 4px; height: 4px; } .m-cal-tailles i.t2 { width: 6px; height: 6px; } .m-cal-tailles i.t3 { width: 8px; height: 8px; } .m-cal-tailles i.t4 { width: 10px; height: 10px; } .m-cal-tailles i.t5 { width: 12px; height: 12px; }
/* Sous la synthèse (le même rendu que la carte d'entraînement), les
   données complémentaires, que l'export PDF emporte aussi. */
.m-complement { margin: 1.8rem 0 0.7rem; padding-top: 1.1rem; border-top: 1px solid #ece4d6; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9b8d7a; text-align: center; }
.m-lg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Un tableau étroit déborde sur téléphone : il défile seul, et la
   page ne part jamais de travers. */
.m-table-enveloppe { overflow-x: auto; }
.m-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.m-table th[scope="col"] {
    font-size: 0.62rem; color: #a2957f; text-transform: uppercase;
    letter-spacing: 0.06em; font-weight: 800; text-align: right;
    padding: 0 0.4rem 0.5rem; white-space: nowrap;
}
.m-table th[scope="col"]:first-child { text-align: left; }
.m-table th[scope="row"] {
    text-align: left; font-weight: 700; color: #4a3f31;
    padding: 0.55rem 0.4rem; white-space: nowrap;
}
.m-table td {
    text-align: right; padding: 0.55rem 0.4rem; color: #6b5c4a;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.m-table tbody tr + tr th, .m-table tbody tr + tr td { border-top: 1px solid #f0e9dd; }
.m-pastille {
    width: 9px; height: 9px; border-radius: 50%; display: inline-block;
    margin-right: 0.45rem; vertical-align: 0.05em;
}

/* Les deux chiffres de l'entraînement. Côte à côte parce qu'ils se
   lisent ensemble : combien de temps, et où j'en suis. */
.m-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.9rem; }
.m-duo-case {
    background: #faf6ef; border: 1px solid #f0e9dd; border-radius: 14px;
    padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.15rem;
}
.m-duo-case b { font-size: 1.35rem; font-weight: 900; color: #4a3f31; font-variant-numeric: tabular-nums; line-height: 1.1; }
.m-duo-case b em { font-style: normal; font-size: 0.6em; font-weight: 700; color: #a2957f; }
.m-duo-case i {
    font-style: normal; font-size: 0.64rem; color: #a2957f;
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; line-height: 1.3;
}
.m-sous { font-size: 0.72rem; color: #b5a993; text-align: right; margin: 0.4rem 0 0; }

.m-vide { text-align: center; color: #a2957f; font-size: 0.86rem; line-height: 1.6; padding: 1.2rem 0; margin: 0; }
.m-mot {
    font-size: 0.8rem; color: #8b7d6f; line-height: 1.65; margin: 0.2rem 0 0;
    text-align: center; max-width: 46ch; margin-inline: auto;
}

/* ---- Rien à montrer ---- */
.empty-stats {
    text-align: center; padding: 2.6rem 1.2rem; color: #8b7d6f; font-size: 0.92rem;
    line-height: 1.6; background: rgba(255,255,255,0.93); border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.empty-stats .emoji { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
