/* mūe club — les cartes du fil écrites par l'appli (16/11/2026, fil-auto.js, maquette docs/maquettes/fil-auto.html).
   Fichier à part (pas dans styles.css) : il suit déjà le Whiteboard (clair) et le Darkboard (sombre) avec ses deux
   variables --fa-ink (le trait) et --fa-bg (le fond), sans passer par outils/mode-clair.js. */
html.clair { --fa-ink: #0A0A0A; --fa-bg: #FFFFFF; --fa-soft: rgba(10, 10, 10, .14); --fa-grid: rgba(10, 10, 10, .06); }
html:not(.clair) { --fa-ink: #F4F5F1; --fa-bg: #121412; --fa-soft: rgba(244, 245, 241, .2); --fa-grid: rgba(244, 245, 241, .055); }

.fp.fa { position: relative; overflow: visible; box-shadow: 3px 3px 0 var(--fa-ink); }
/* La bande de couleur à gauche dit le type de carte (PR bleu, série bronze, podium or, semaine violet…) */
.fp.fa::before { content: ""; position: absolute; left: -1.5px; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--band, transparent); }
.fa .fp-who .clubtag { flex: none; }

.fa-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fa-big b { font-size: 44px; line-height: 1; white-space: nowrap; color: var(--ink); }
.fa-big span { font: 500 12px var(--mono, monospace); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fa-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fa-tag { font: 500 11px var(--mono, monospace); text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 8px;
  background: #D7F57E; color: #0A0A0A; border: 1.5px solid #0A0A0A; }
.fa-was { font-size: 12.5px; color: var(--muted); }
.fa-more { display: grid; gap: 4px; padding-top: 2px; }
.fa-more p { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.fa-more b { color: var(--ink); font-size: 15px; }

/* 👊 : il saute et lâche des petits 👊 🔥 💪 */
.fa-react { display: flex; align-items: center; gap: 10px; }
.fa .fa-bump { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: 14px; color: var(--ink);
  border: 1.5px solid var(--fa-ink); background: var(--fa-bg); }
.fa .fa-bump b { font: 900 15px var(--dot); min-width: 0; }
.fa .fa-bump.is-on { background: #D7F57E; color: #0A0A0A; border-color: #0A0A0A; }
.fa .fa-bump.pop span { display: inline-block; animation: fa-pop .45s ease; }
@keyframes fa-pop { 40% { transform: scale(1.7) rotate(-12deg); } }
.fa-burst { position: absolute; left: 12px; top: 0; pointer-events: none; font-size: 15px; font-style: normal; animation: fa-fly .8s ease-out forwards; }
@keyframes fa-fly { to { transform: translate(var(--x), -46px) scale(.6); opacity: 0; } }
.fa .fa-bumped { font-size: 12.5px; color: var(--muted); min-width: 0; }
.fa .fa-follow { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #D7F57E; color: #0A0A0A; border: 1.5px solid #0A0A0A; box-shadow: 2px 2px 0 var(--fa-ink); }
.fa-hello { font-size: 17px; font-weight: 500; } .fa-hello span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* Série : les semaines en pastilles */
.fa-weeks { display: flex; gap: 5px; }
.fa-weeks i { flex: 1; height: 22px; border-radius: 7px; border: 1.5px solid var(--fa-ink); }
.fa-weeks i.on { background: #E8642A; }
.fa-weeks i.now { outline: 2px dashed var(--fa-ink); outline-offset: 2px; }

/* Podium d'un WOD passé */
.fa-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 6px; align-items: end; text-align: center; }
.fa-podium.n2 { grid-template-columns: 1fr 1.15fr; }
.fa-step { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.fa-step .face.s { width: 36px; height: 36px; }
.fa-pn { font-size: 13px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-step small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.fa-step > i { display: grid; place-items: center; width: 100%; border: 1.5px solid var(--fa-ink); border-radius: 10px 10px 4px 4px; font-size: 18px; font-style: normal; margin-top: 4px; }
.fa-step.p1 > i { height: 58px; background: #FFD000; color: #0A0A0A; } .fa-step.p2 > i { height: 42px; } .fa-step.p3 > i { height: 32px; }
.fa .fa-bump.s { padding: 4px 10px; font-size: 12px; margin-top: 6px; } .fa .fa-bump.s b { font-size: 12px; }
.fa-crowns { display: flex; flex-wrap: wrap; gap: 6px; }
.fa .fa-crowns button { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--fa-soft); color: var(--ink); }
.fa-crowns b { font-weight: 600; }
.fa-count { font-size: 12px; color: var(--muted); }

/* La semaine du club (idée 1) et le souvenir (idée 2) : papier quadrillé */
.fa-week, .fa-mem { background-image: linear-gradient(var(--fa-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fa-grid) 1px, transparent 1px); background-size: 14px 14px; }
.fa-wk-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fa-wk-h small { display: block; font: 500 11px var(--mono, monospace); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fa-wk-h b { font-size: 20px; font-weight: 400; letter-spacing: -.02em; } .fa-wk-h em { font-style: normal; font-size: 24px; }
.fa-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fa-nums div { border: 1.5px solid var(--fa-ink); border-radius: 12px; padding: 8px 9px; background: var(--fa-bg); }
.fa-nums b { display: block; font-size: 26px; line-height: 1; }
.fa-nums small { font: 400 10.5px var(--mono, monospace); text-transform: uppercase; color: var(--muted); }
.fa-troph { display: grid; gap: 7px; }
.fa .fa-troph button { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; text-align: left; color: var(--ink);
  border: 1.5px solid var(--fa-ink); border-radius: 14px; padding: 8px 10px; background: var(--fa-bg); }
.fa-troph em { font-style: normal; font-size: 23px; text-align: center; }
.fa-troph b { display: block; font-size: 14px; font-weight: 600; } .fa-troph small { display: block; font-size: 12px; color: var(--muted); }
.fa-troph .face.s { width: 32px; height: 32px; font-size: 11px; font-style: normal; }
.fa-cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; text-align: center; }
.fa-cmp div { border: 1.5px solid var(--fa-ink); border-radius: 14px; padding: 10px 6px; background: var(--fa-bg); min-width: 0; }
.fa-cmp div.now { background: #D7F57E; color: #0A0A0A; border-color: #0A0A0A; }
.fa-cmp small { display: block; font: 400 10px var(--mono, monospace); text-transform: uppercase; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-cmp b { font-size: 26px; line-height: 1.15; white-space: nowrap; }
.fa-cmp > span { font: 900 18px var(--dot); }
.fa-gain { text-align: center; font: 500 12px var(--mono, monospace); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 350px) { .fa-big b { font-size: 36px; } .fa-cmp b { font-size: 21px; } }
/* Sur un aplat lime ou or, l'écriture reste noire (le Darkboard met les chiffres en points en blanc) */
.fa .fa-cmp div.now b, .fa .fa-cmp div.now small, .fa .fa-step.p1 > i, .fa .fa-tag, .fa .fa-bump.is-on b { color: #0A0A0A; }
