/* ============================================================
   Onglet « Suivi joueurs CO » (cf. js/pages/stats-joueurs.js)
   ============================================================
   La planche de cartes Panini du staff, par ligne de jeu, puis la
   fiche d'un joueur en plein écran. Les cartes se retournent en
   arrivant à l'écran, s'inclinent sous la souris avec un reflet
   holographique ; la carte cliquée vole jusqu'à la fiche.

   Couleurs de jugement : or = volume (comme l'appli), vert = part ou
   temps de jeu, rouge = cartons et fautes ; toujours doublées du
   chiffre. FLUIDITÉ : on n'anime que transform et opacity ; le mode
   allégé (html.allege) coupe le flou et les reflets. */

/* La fiche vit sur <body>, hors de la planche : elle reçoit les mêmes jetons. */
.sj, .sj-fiche { --sj-or: #f5c451; --sj-carte-r: 12px; }
html.sj-verrou { overflow: hidden; }

.sj-attente { display: flex; align-items: center; gap: 12px; padding: 50px 0; color: var(--texte-3); font-weight: 650; }
.sj-attente i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--bleu-2); border-right-color: transparent; animation: tourne .8s linear infinite; }

/* ---------------- Page de garde ---------------- */
.sj-garde {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 300px;
  padding: 36px 44px; border-radius: 28px; border: 1px solid var(--ligne-2);
  background: linear-gradient(125deg, #0c2468 0%, #081440 46%, #120a26 100%);
  box-shadow: 0 30px 80px -40px rgba(47, 107, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.sj-garde-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sj-garde-fond::before { /* les lignes du terrain, à peine */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(143, 179, 255, .07) calc(10% - 1px) 10%),
    radial-gradient(90% 120% at 15% 0%, rgba(91, 140, 255, .35), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(199, 40, 45, .32), transparent 65%);
}
.sj-garde-fond i { position: absolute; top: -40%; bottom: -40%; width: 16%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); transform: rotate(18deg); animation: sj-faisceau 9s ease-in-out infinite; }
.sj-garde-fond i:nth-child(2) { width: 8%; animation-delay: -3s; animation-duration: 11s; }
.sj-garde-fond i:nth-child(3) { width: 24%; animation-delay: -6s; animation-duration: 14s; opacity: .6; }
@keyframes sj-faisceau { 0% { left: -30%; } 100% { left: 120%; } }
.sj-garde-txt { position: relative; z-index: 2; max-width: 560px; }
.sj-garde-sur { font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--sj-or); }
.sj-garde-chiffres { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 14px 0 10px; }
.sj-garde-chiffres div { display: flex; flex-direction: column; }
.sj-garde-chiffres b {
  font: 600 clamp(46px, 5.4vw, 80px)/.95 var(--titre); letter-spacing: .01em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, var(--ciel)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sj-garde-chiffres div:nth-child(2) b { background-image: linear-gradient(180deg, #fff1c4 20%, var(--sj-or)); }
.sj-garde-chiffres span { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); }
.sj-garde-sous { margin: 6px 0 0; color: var(--texte); font-size: 15.5px; font-weight: 600; }
.sj-garde-note { margin: 6px 0 0; color: var(--texte-3); font-size: 13px; }

/* L'éventail : cinq cartes qui s'ouvrent puis flottent. */
.sj-eventail { position: absolute; z-index: 1; right: 3%; bottom: -46px; width: 44%; height: 112%; pointer-events: none; }
.sj-eventail img {
  position: absolute; left: 50%; bottom: 0; width: clamp(118px, 12.5vw, 176px); aspect-ratio: 520 / 660; object-fit: cover;
  border-radius: 10px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 50% 120%; transform: translateX(-50%) rotate(calc(var(--k) * 11deg));
  animation: sj-eventail 1.1s var(--ressort) both, sj-flotte 7s ease-in-out 1.2s infinite alternate;
  animation-delay: calc((var(--k) + 2) * 70ms), calc(1.2s + var(--k) * 400ms);
}
.sj-eventail img:nth-child(3) { z-index: 2; }
.sj-eventail img:nth-child(2), .sj-eventail img:nth-child(4) { z-index: 1; }
@keyframes sj-eventail { from { opacity: 0; transform: translateX(-50%) translateY(60px) rotate(0deg); } }
@keyframes sj-flotte { to { transform: translateX(-50%) translateY(-8px) rotate(calc(var(--k) * 11deg + 1.5deg)); } }

/* ---------------- Sauts vers une ligne ---------------- */
.sj-sauts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.sj-sauts button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ligne-2);
  background: var(--surface-2); color: var(--texte-2); font-size: 13px; font-weight: 750; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.sj-sauts button span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(245, 196, 81, .16); color: var(--sj-or); font-size: 11.5px; }
.sj-sauts button:hover { color: #fff; border-color: rgba(143, 179, 255, .45); background: var(--surface-3); transform: translateY(-1px); }

/* ---------------- Une ligne de jeu ---------------- */
.sj-ligne { margin-top: 34px; scroll-margin-top: 84px; }
.sj-ligne-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sj-ligne-tete h2 { margin: 0; font: 600 clamp(22px, 2.4vw, 30px)/1 var(--titre); text-transform: uppercase; letter-spacing: .02em; }
.sj-ligne-tete span { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--ligne-2); font-size: 12px; font-weight: 750; color: var(--texte-2); white-space: nowrap; }
.sj-ligne-tete i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(143, 179, 255, .4), transparent); }

.sj-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 24px 18px; }

/* ---------------- La carte ---------------- */
.sj-carte {
  display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: inherit; text-align: center;
  font: inherit; border-radius: var(--sj-carte-r); -webkit-tap-highlight-color: transparent;
}
.sj-ligne .sj-carte { opacity: 0; }
.sj-ligne.est-vu .sj-carte { animation: sj-retourne .9s var(--doux) both; animation-delay: calc(min(var(--n), 14) * 55ms); }
@keyframes sj-retourne {
  from { opacity: 0; transform: perspective(1100px) rotateY(-88deg) translateY(26px) scale(.92); }
  55% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
.sj-carte-cadre {
  position: relative; display: block; overflow: hidden; aspect-ratio: 520 / 660; border-radius: var(--sj-carte-r);
  background: #0a1846; box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .55s var(--doux), box-shadow .35s;
}
.sj-carte-cadre > img { width: 100%; height: 100%; object-fit: cover; }
.sj-carte:hover .sj-carte-cadre, .sj-carte:focus-visible .sj-carte-cadre {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) scale(1.035);
  box-shadow: 0 30px 60px -22px rgba(47, 107, 255, .75), 0 0 0 1px rgba(245, 196, 81, .45), 0 0 34px -6px rgba(245, 196, 81, .35);
  transition: transform .14s linear, box-shadow .35s;
}
.sj-carte:focus-visible { outline: none; }
/* Le reflet holographique et l'éclat suivent le pointeur (--mx, --my). */
.sj-holo, .sj-eclat { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; }
.sj-holo {
  background: linear-gradient(115deg, transparent 22%, rgba(120, 190, 255, .42) 40%, rgba(255, 120, 210, .3) 48%, rgba(255, 236, 160, .42) 56%, transparent 72%);
  background-size: 260% 260%; background-position: var(--mx, 50%) var(--my, 50%); mix-blend-mode: color-dodge;
}
.sj-eclat { background: radial-gradient(circle at var(--mx, 50%) var(--my, 28%), rgba(255, 255, 255, .5), transparent 46%); mix-blend-mode: overlay; }
.sj-carte:hover .sj-holo, .sj-heros-carte:hover .sj-holo { opacity: .8; }
.sj-carte:hover .sj-eclat, .sj-heros-carte:hover .sj-eclat { opacity: .9; }
/* Un passage de lumière quand la carte vient de se retourner. */
.sj-ligne.est-vu .sj-carte .sj-eclat { animation: sj-lueur 1.4s var(--doux) both; animation-delay: calc(min(var(--n), 14) * 55ms + .45s); }
@keyframes sj-lueur { 0% { opacity: 0; background-position: 0 0; } 40% { opacity: .7; } 100% { opacity: 0; } }

.sj-carte-pied { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; font-size: 13px; }
.sj-carte-pied b {
  flex: none; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px;
  font: 600 14px var(--titre); color: var(--sj-or); border: 1px solid rgba(245, 196, 81, .45); background: rgba(245, 196, 81, .08);
}
.sj-carte-pied span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; letter-spacing: .01em; }
.sj-carte-pied small { font-weight: 600; color: var(--texte-2); margin-right: 4px; }
.sj-carte-pied em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 750; color: var(--texte-2); padding: 2px 7px; border-radius: 7px; background: var(--surface-2); }

/* Un joueur sans carte : une vignette sobre, au format de la carte. */
.sj-vide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px;
  background: radial-gradient(120% 80% at 50% 0%, #1b3f9a 0%, #0a1846 55%, #060d2b 100%);
}
.sj-vide::before { content: ""; position: absolute; inset: 7px; border-radius: 8px; border: 1px solid rgba(245, 196, 81, .32); }
.sj-vide-logo { position: absolute; width: 64%; top: 50%; left: 50%; transform: translate(-50%, -54%); opacity: .1; filter: grayscale(.3); }
.sj-vide-num { position: relative; font: 600 clamp(48px, 5vw, 70px)/1 var(--titre); color: var(--sj-or); text-shadow: 0 6px 24px rgba(245, 196, 81, .35); }
.sj-vide-nom { position: relative; font: 600 16px/1.15 var(--titre); text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.sj-vide-nom small { display: block; font: 700 11px var(--corps); letter-spacing: .08em; color: var(--texte-2); text-transform: none; }
.sj-vide-lib { position: relative; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }

.sj-source { margin: 38px 0 0; font-size: 12px; color: var(--texte-3); line-height: 1.6; }

/* ============================================================
   LA FICHE — plein écran par-dessus la planche
   ============================================================ */
.sj-fiche {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background:
    radial-gradient(110% 70% at 18% 0%, rgba(30, 70, 175, .5), transparent 62%),
    radial-gradient(70% 55% at 100% 8%, rgba(199, 40, 45, .22), transparent 62%),
    rgba(3, 6, 16, .95);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  opacity: 0; transition: opacity .38s var(--doux);
}
.sj-fiche.est-ouvert { opacity: 1; }
.sj-fiche.est-sortie { opacity: 0; transform: scale(.99); transition: opacity .36s var(--doux), transform .36s var(--doux); pointer-events: none; }
.sj-fiche-barre {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  background: linear-gradient(180deg, rgba(4, 8, 22, .97), rgba(4, 8, 22, .88)); border-bottom: 1px solid rgba(143, 179, 255, .1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sj-fiche-nav { display: flex; align-items: center; gap: 6px; }
.sj-fiche-rang { min-width: 52px; text-align: center; font-size: 12px; font-weight: 750; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.sj-fiche-titre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
.sj-fiche-titre b { color: var(--texte); font-weight: 800; }
.sj-rond {
  flex: none; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--ligne-2); background: rgba(255, 255, 255, .05); color: var(--texte); transition: background .2s, transform .2s, border-color .2s;
}
.sj-rond svg { width: 18px; height: 18px; }
.sj-rond:hover { background: rgba(255, 255, 255, .1); border-color: rgba(143, 179, 255, .45); }
.sj-rond:active { transform: scale(.94); }
.sj-site { flex: none; }
.sj-fiche-in { max-width: 1200px; margin: 0 auto; padding: 4px 28px 90px; }

/* ---------------- Le héros ---------------- */
.sj-heros { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 46px; align-items: center; padding: 34px 0 34px; }
.sj-heros-fond { position: absolute; inset: 0 -28px; z-index: -1; overflow: hidden; pointer-events: none; }
.sj-heros-fond img {
  position: absolute; right: 0; bottom: -6%; height: 118%; width: auto; max-width: none; opacity: .2; filter: saturate(1.1);
  -webkit-mask-image: linear-gradient(270deg, #000 35%, transparent 92%); mask-image: linear-gradient(270deg, #000 35%, transparent 92%);
  animation: sj-fondu 1.2s var(--doux) both .15s;
}
.sj-heros-fond i { position: absolute; left: 4%; top: 6%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .35), transparent 65%); filter: blur(10px); }
@keyframes sj-fondu { from { opacity: 0; transform: translateX(40px); } }
.sj-heros-carte { position: relative; width: 100%; }
.sj-heros-carte::before { /* le halo qui tourne derrière la carte */
  content: ""; position: absolute; inset: -16px; z-index: -1; border-radius: 26px; opacity: .75; filter: blur(22px);
  background: conic-gradient(from var(--sj-a, 0deg), rgba(245, 196, 81, .55), rgba(47, 107, 255, .55), rgba(199, 40, 45, .45), rgba(245, 196, 81, .55));
  animation: sj-halo 9s linear infinite;
}
@property --sj-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sj-halo { to { --sj-a: 360deg; } }
.sj-heros-carte .sj-carte-cadre { border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1); }
.sj-heros-carte:hover .sj-carte-cadre { transition: transform .14s linear; }
.sj-heros-carte.est-retour { animation: sj-retourne .75s var(--doux) both; }
.sj-heros-carte .sj-vide-num { font-size: 92px; }
.sj-heros-id { min-width: 0; }
.sj-heros-poste { display: inline-flex; align-items: center; gap: 12px; animation: sj-monte .6s var(--doux) both .1s; }
.sj-heros-poste b {
  min-width: 52px; height: 52px; padding: 0 10px; display: grid; place-items: center; border-radius: 15px; font: 600 28px var(--titre); color: #1a1205;
  background: linear-gradient(160deg, #ffe7a3, var(--sj-or) 55%, #d39a1f); box-shadow: 0 12px 30px -10px rgba(245, 196, 81, .6);
}
.sj-heros-poste span { font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--texte-2); }
.sj-heros-nom { margin: 16px 0 10px; font: 600 clamp(42px, 6vw, 92px)/.9 var(--titre); text-transform: uppercase; letter-spacing: .005em; overflow-wrap: anywhere; }
.sj-heros-nom small { display: block; margin-bottom: 6px; font: 700 clamp(14px, 1.5vw, 19px) var(--corps); letter-spacing: .2em; color: var(--ciel); animation: sj-monte .6s var(--doux) both .16s; }
.sj-heros-nom span { display: inline-block; background: linear-gradient(180deg, #fff 35%, #a8c3ff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: sj-monte .7s var(--doux) both .22s; }
.sj-heros-club { display: flex; align-items: center; gap: 10px; color: var(--texte-2); font-weight: 650; animation: sj-monte .6s var(--doux) both .3s; }
.sj-heros-club img { width: 34px; height: 34px; object-fit: contain; }
.sj-puces { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sj-puce {
  display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--ligne);
  font-weight: 800; font-size: 15px; animation: sj-monte .55s var(--doux) both; animation-delay: calc(.34s + var(--j, 0) * 60ms);
}
.sj-puce:nth-child(2) { --j: 1; } .sj-puce:nth-child(3) { --j: 2; } .sj-puce:nth-child(4) { --j: 3; }
.sj-puce small { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.sj-puce.est-jiff { border-color: rgba(54, 210, 122, .35); background: rgba(54, 210, 122, .08); }
@keyframes sj-monte { from { opacity: 0; transform: translate3d(0, 16px, 0); } }

/* ---------------- Identité · Parcours · Analyse ---------------- */
.sj-trio { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 16px; }
.sj-bloc {
  min-width: 0; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--ligne);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  animation: sj-monte .6s var(--doux) both; animation-delay: .35s;
}
.sj-bloc:nth-child(2) { animation-delay: .42s; } .sj-bloc:nth-child(3) { animation-delay: .49s; }
.sj-bloc h3, .sj-titre-bloc { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--bleu-2); }
.sj-id { margin: 0; }
.sj-id div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--ligne); }
.sj-id div:last-child { border-bottom: 0; }
.sj-id dt { color: var(--texte-2); font-size: 13.5px; }
.sj-id dd { margin: 0; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.sj-id .est-ailleurs dd { color: #ff8d93; }
.sj-id .est-co dd { color: var(--vert); }
.sj-muet { margin: 0 0 10px; color: var(--texte-3); font-size: 14px; }
.sj-parcours { list-style: none; margin: 0; padding: 0; }
.sj-parcours li { position: relative; padding: 0 0 15px 24px; font-weight: 650; animation: sj-monte .5s var(--doux) both; animation-delay: calc(.5s + var(--i) * 80ms); }
.sj-parcours li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bleu-2); box-shadow: 0 0 0 4px rgba(91, 140, 255, .15); }
.sj-parcours li::after { content: ""; position: absolute; left: 4.5px; top: 18px; bottom: 0; width: 1px; background: linear-gradient(var(--ligne-2), transparent); }
.sj-parcours li:last-child { padding-bottom: 0; }
.sj-parcours li:last-child::after { display: none; }
.sj-parcours li.est-dernier::before { background: var(--sj-or); box-shadow: 0 0 0 4px rgba(245, 196, 81, .18), 0 0 18px rgba(245, 196, 81, .6); }
.sj-com { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--sj-or); border-radius: 0 12px 12px 0; background: rgba(245, 196, 81, .07); font-style: italic; color: var(--texte); }
.sj-grille-titre { margin: 2px 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sj-or); }
.sj-criteres { list-style: none; margin: 0; padding: 0; }
.sj-criteres li {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; align-items: center; gap: 10px; padding: 6px 0;
  animation: sj-monte .45s var(--doux) both; animation-delay: calc(.5s + var(--i) * 35ms);
}
.sj-criteres li span { min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj-criteres li b { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; color: var(--texte-2); }
.sj-criteres li i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(245, 196, 81, .7), rgba(245, 196, 81, .05)); transform-origin: 0 50%; transform: scaleX(var(--p)); animation: sj-trace 1s var(--doux) both; animation-delay: calc(.6s + var(--i) * 35ms); }
@keyframes sj-trace { from { transform: scaleX(0); } }
.sj-criteres .etoiles { display: inline-flex; gap: 2px; }
.sj-criteres .etoiles svg path.p { fill: var(--sj-or); }
.sj-criteres .etoiles svg path.v { fill: rgba(255, 255, 255, .14); }

/* ---------------- La bande « Carrière » ---------------- */
.sj-carriere {
  margin-top: 18px; padding: 22px; border-radius: 22px; border: 1px solid var(--ligne-2);
  background: linear-gradient(135deg, rgba(47, 107, 255, .13), rgba(255, 255, 255, .02) 60%);
  animation: sj-monte .6s var(--doux) both .55s;
}
.sj-attrs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sj-attr { --t: var(--sj-or); min-width: 0; padding: 14px; border-radius: 16px; background: rgba(4, 8, 22, .55); border: 1px solid var(--ligne); }
.sj-attr.est-vert { --t: var(--vert); }
.sj-attr.est-rouge { --t: #ff6b72; }
.sj-attr-titre { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sj-attr-val { margin: 6px 0 8px; font: 600 clamp(28px, 2.8vw, 40px)/1 var(--titre); color: var(--t); font-variant-numeric: tabular-nums; }
.sj-jauge { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.sj-jauge i { display: block; height: 100%; width: var(--l); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--t) 55%, transparent), var(--t)); transform-origin: 0 50%; animation: sj-trace 1.1s var(--doux) both .7s; }
.sj-sous { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.sj-sous li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: 11.5px; }
.sj-sous span { color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj-sous b { font-weight: 750; font-variant-numeric: tabular-nums; }
.sj-sous i { grid-column: 1 / -1; height: 3px; width: var(--l); border-radius: 3px; background: color-mix(in srgb, var(--t) 60%, transparent); transform-origin: 0 50%; animation: sj-trace 1s var(--doux) both .8s; }

/* ---------------- Bascule Statistiques / Vidéo ---------------- */
.sj-bascule { display: flex; justify-content: center; margin: 32px 0 18px; }
.sj-bascule .segments button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; }
.sj-bascule .segments svg { width: 17px; height: 17px; }
.sj-vue.est-cache { display: none; }
.sj-vue.est-entree { animation: sj-monte .45s var(--doux) both; }
.sj-message {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px;
  background: rgba(47, 107, 255, .08); border: 1px solid rgba(91, 140, 255, .3); color: var(--texte-2);
}
.sj-message svg { flex: none; width: 22px; height: 22px; color: var(--ciel); }

/* ---------------- Statistiques AIA par compétition ---------------- */
.sj-comp { --c: var(--sj-or); margin-top: 16px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--ligne); border-top: 3px solid var(--c); }
.sj-titre-comp { font-weight: 800; }
.sj-frise { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.sj-frise-col { flex: 1 0 96px; min-width: 96px; max-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.sj-frise-annee { text-align: center; font-size: 12px; font-weight: 800; color: var(--texte-2); }
.sj-frise-barre { position: relative; height: 176px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .04); border: 1px solid var(--ligne); }
.sj-frise-barre > i {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); transform-origin: 50% 100%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--c) 75%, transparent), color-mix(in srgb, var(--c) 18%, transparent));
  animation: sj-pousse 1s var(--doux) both; animation-delay: calc(var(--i) * 70ms);
}
@keyframes sj-pousse { from { transform: scaleY(0); } }
.sj-frise-infos { position: absolute; inset: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.sj-frise-infos b { font: 600 24px/1 var(--titre); }
.sj-frise-infos span { font-size: 11.5px; color: var(--texte-2); }
.sj-frise-infos small { font-size: 11px; font-weight: 750; color: var(--vert); }
.sj-sbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 4px; }
.sj-sbar-lab { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); margin-right: 4px; }
.sj-sbtn { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--ligne-2); background: transparent; font-size: 12.5px; font-weight: 750; color: var(--texte-2); transition: background .2s, border-color .2s, color .2s; }
.sj-sbtn.est-actif { color: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 28%, transparent); }
.sj-saison-bloc { margin-top: 16px; animation: sj-monte .45s var(--doux) both; }
.sj-saison-bloc.est-cache { display: none; }
.sj-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.sj-tuile { min-width: 0; padding: 14px; border-radius: 16px; background: rgba(4, 8, 22, .5); border: 1px solid var(--ligne); animation: sj-monte .45s var(--doux) both; animation-delay: calc(var(--i) * 45ms); }
.sj-tuile-titre { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); }
.sj-tuile-val { margin: 6px 0 4px; font: 600 30px/1 var(--titre); }
.sj-tuile-detail { font-size: 12.5px; color: var(--texte-2); }
.sj-tuile-second { margin-top: 2px; font-size: 12px; color: var(--texte-3); }

/* ---------------- Vidéo ---------------- */
.sj-v-etat { min-height: 18px; margin-bottom: 10px; font-size: 12.5px; color: var(--texte-3); }
.sj-v-matchs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.sj-v-lab { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); margin-right: 4px; }
.sj-v-m {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--ligne-2);
  background: var(--surface-2); color: var(--texte-2); font-size: 13px; font-weight: 800; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.sj-v-m span { font-size: 11px; font-weight: 750; opacity: .75; }
.sj-v-m:hover { color: #fff; border-color: rgba(143, 179, 255, .45); }
.sj-v-m.est-actif { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--bleu), #2149c4); box-shadow: 0 8px 22px -10px var(--bleu); }
.sj-v-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sj-v-cat, .sj-v-top {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px;
  border: 1px solid var(--ligne); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018));
  transition: opacity .25s, border-color .25s, transform .25s, box-shadow .25s; animation: sj-monte .45s var(--doux) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.sj-v-cat.est-vide, .sj-v-top.est-vide { opacity: .42; }
.sj-v-lib { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); }
.sj-v-chiffres { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.sj-v-tout { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; }
.sj-v-n { display: inline-block; font: 600 44px/1 var(--titre); font-variant-numeric: tabular-nums; }
.sj-v-n.est-saut { animation: sj-saut .35s var(--ressort); }
@keyframes sj-saut { from { transform: scale(.7); opacity: .3; } }
.sj-v-play { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--bleu), #1d47c9); box-shadow: 0 8px 20px -8px var(--bleu); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ressort); }
.sj-v-play svg { width: 13px; height: 13px; margin-left: 2px; color: #fff; }
.sj-v-pl {
  flex: none; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(245, 196, 81, .45); background: rgba(245, 196, 81, .12);
  color: var(--sj-or); font-size: 13px; font-weight: 800; white-space: nowrap; transition: background .2s, transform .2s;
}
.sj-v-pl.est-vide { opacity: .4; }
.sj-v-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.sj-v-role { padding: 4px 9px; border-radius: 9px; border: 1px solid var(--ligne); background: var(--surface-2); color: var(--texte); font-size: 12px; font-weight: 750; transition: background .2s, border-color .2s; }
.sj-v-role.est-vide { opacity: .4; }
.sj-v-top { border-color: rgba(245, 196, 81, .42); background: linear-gradient(140deg, rgba(245, 196, 81, .2), rgba(245, 196, 81, .03)); text-align: left; color: inherit; font: inherit; }
.sj-v-top .sj-v-lib { color: var(--sj-or); }
.sj-v-top small { font-size: 12px; color: var(--texte-2); }
.sj-v-top .sj-v-play { position: absolute; right: 14px; bottom: 14px; }
.sj-v button:disabled { cursor: default; color: inherit; }
.sj-v-pied { margin: 16px 0 0; font-size: 12.5px; color: var(--texte-3); }
/* Sur le Mac, avec le serveur vidéo : chaque chiffre ouvre le lecteur. */
.sj-v.est-lisible .sj-v-ouvre:not(.est-vide) { cursor: pointer; }
.sj-v.est-lisible .sj-v-cat:not(.est-vide):hover, .sj-v.est-lisible .sj-v-top:not(.est-vide):hover { border-color: rgba(143, 179, 255, .4); transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(47, 107, 255, .8); }
.sj-v.est-lisible .sj-v-cat:not(.est-vide):hover .sj-v-play, .sj-v.est-lisible .sj-v-top:not(.est-vide):hover .sj-v-play,
.sj-v.est-lisible .sj-v-tout:focus-visible .sj-v-play { opacity: 1; transform: none; }
.sj-v.est-lisible .sj-v-pl:not(.est-vide):hover { background: rgba(245, 196, 81, .24); transform: translateY(-1px); }
.sj-v.est-lisible .sj-v-role:not(.est-vide):hover { background: var(--surface-3); border-color: rgba(143, 179, 255, .45); }

/* ---------------- Écrans moyens ---------------- */
@media (max-width: 1180px) {
  .sj-trio { grid-template-columns: 1fr 1fr; }
  .sj-analyse { grid-column: 1 / -1; }
  .sj-attrs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------- Téléphone ---------------- */
@media (max-width: 760px) {
  .sj-garde { flex-direction: column; align-items: stretch; min-height: 0; padding: 24px 20px 0; border-radius: 22px; }
  .sj-garde-sur { font-size: 10.5px; letter-spacing: .14em; }
  .sj-garde-chiffres { gap: 10px 22px; margin: 12px 0 8px; }
  .sj-garde-chiffres b { font-size: 44px; }
  .sj-garde-sous { font-size: 14.5px; }
  .sj-eventail { position: relative; right: auto; bottom: -22px; width: 100%; height: 132px; margin-top: -6px; }
  .sj-eventail img { width: 96px; }
  .sj-sauts { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .sj-sauts::-webkit-scrollbar { display: none; }
  .sj-sauts button { flex: none; }
  .sj-ligne { margin-top: 28px; scroll-margin-top: 72px; }
  .sj-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .sj-carte-pied { font-size: 12px; gap: 6px; }
  .sj-carte-pied small { display: none; }
  .sj-vide-num { font-size: 52px; }

  .sj-fiche-barre { padding: 10px 12px; gap: 8px; }
  .sj-fiche-rang, .sj-fiche-titre span { display: none; }
  .sj-site span { display: none; }
  .sj-site { padding: 9px 11px; }
  .sj-rond { width: 38px; height: 38px; }
  .sj-fiche-in { padding: 0 16px 70px; }
  .sj-heros { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding: 22px 0 20px; text-align: center; }
  .sj-heros-carte { width: min(230px, 64vw); }
  .sj-heros-fond { inset: 0 -16px; }
  .sj-heros-fond img { right: 50%; transform: translateX(50%); height: 70%; bottom: auto; top: 30%; opacity: .14; -webkit-mask-image: linear-gradient(0deg, transparent, #000 40%); mask-image: linear-gradient(0deg, transparent, #000 40%); animation: none; }
  .sj-heros-fond i { left: 50%; transform: translateX(-50%); width: 300px; height: 300px; }
  .sj-heros-poste, .sj-heros-club, .sj-puces { justify-content: center; }
  .sj-heros-nom { font-size: clamp(36px, 11vw, 52px); }
  .sj-puce { padding: 7px 11px; font-size: 14px; }
  .sj-trio { grid-template-columns: 1fr; gap: 12px; }
  .sj-bloc { padding: 16px; }
  .sj-carriere { padding: 16px; }
  .sj-attrs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sj-comp { padding: 14px; }
  .sj-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sj-tuile-val { font-size: 26px; }
  .sj-v-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sj-v-cat, .sj-v-top { padding: 12px; }
  .sj-v-n { font-size: 36px; }
  .sj-v-chiffres { flex-wrap: wrap; }
  .sj-bascule { margin: 24px 0 14px; }
}

/* ---------------- Mode allégé, mouvement réduit ---------------- */
.allege .sj-fiche, .allege .sj-fiche-barre { backdrop-filter: none; -webkit-backdrop-filter: none; }
.allege .sj-fiche { background: #050a1c; }
.allege .sj-garde-fond i, .allege .sj-heros-carte::before, .allege .sj-eventail img { animation: none; }
.allege .sj-holo { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sj-ligne .sj-carte { opacity: 1; }
  .sj-garde-fond i, .sj-heros-carte::before { animation: none; }
}
