/* =====================================================================================
 *  LES FICHES DE JOUEUR ET DE STAFF (14/10/2026) — voir public/fiches.js
 *  Le style du theme « kit » : cartes violettes, onglets soulignes de vert, boutons verts.
 * ===================================================================================== */
.modal.fjx-modal { max-width: 1120px; width: min(1120px, calc(100vw - 24px)); padding: 18px 18px 20px;
    background: linear-gradient(180deg, #121a33, #0b1022); border: 2px solid #2a3a7a; border-radius: 20px; }
.fjx { color: #fff; }
.fjx-tete { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 2px 40px 12px; font-size: clamp(17px, 2.6vw, 26px); }
.fjx-nat { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9fb3ff; background: #1b2654; border: 1px solid #3a4c9a; border-radius: 20px; padding: 3px 10px; }
.fjx-nom { font-weight: 600; }
.fjx-nom b { font-weight: 900; }
.fjx-club { display: inline-flex; align-items: center; gap: 8px; color: #c9d3f5; font-weight: 600; }

.fjx-tabs { display: flex; border: 2px solid #1f8a86; border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: #0d1530; }
.fjx-tab { flex: 1; background: none; border: 0; color: #c9d3f5; font-weight: 800; font-size: 15px; padding: 12px 6px; cursor: pointer; position: relative; }
.fjx-tab.on { color: #fff; }
.fjx-tab.on::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4px; height: 4px; border-radius: 4px; background: #34e7b9; }
.fjx-pane { display: none; }
.fjx-pane.on { display: block; }

.fjx-grille { display: grid; grid-template-columns: minmax(250px, 330px) 1fr; gap: 16px; align-items: start; }
.fjx-gauche { background: #101935; border: 2px solid #26346e; border-radius: 16px; padding: 12px; }
.fjx-carte { display: flex; gap: 10px; align-items: center; border: 2px solid #5b3fd0; border-radius: 14px; padding: 8px; background: radial-gradient(circle at 30% 30%, #2a1f63, #140f33); }
.fjx-visage { width: 92px; height: 92px; flex: none; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: #0b1230; }
.fjx-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.fjx-visage .avatar-lg { width: 84px; height: 84px; }
.fjx-id { min-width: 0; flex: 1; }
.fjx-court { font-weight: 900; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjx-club2 { color: #5eead4; font-weight: 700; font-size: 12px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjx-trio { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.fjx-trio span { display: block; font-size: 10px; font-weight: 800; color: #9fb3ff; letter-spacing: .06em; }
.fjx-trio b { font-size: 18px; font-weight: 900; }
.fjx-pos { color: #ff8c5a; }
.fjx-note { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; border: 4px solid #e8c46a; background: #1a1440; }
.fjx-role { text-align: center; color: #ffb347; font-weight: 800; font-size: 14px; margin: 10px 0 6px; }
.fjx-infos { margin-top: 4px; }
.fjx-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #ffffff14; font-size: 14px; }
.fjx-ligne span { color: #dfe6ff; }
.fjx-ligne b { color: #34e7b9; font-weight: 800; text-align: right; }
.fjx-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fjx-actions .btn { width: 100%; }

.fjx-etats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fjx-etat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #101935; border: 2px solid #26346e; border-radius: 16px; padding: 12px 10px; }
.fjx-etat-t { align-self: flex-start; font-weight: 800; font-size: 14px; text-align: left; min-height: 2.4em; }
.fjx-etat-ico { width: 92px; height: 92px; display: flex; align-items: center; justify-content: center; }
.fjx-etat-ico svg { width: 100%; height: 100%; }
.fjx-etat-mot { font-weight: 800; font-size: 15px; min-height: 2.6em; display: flex; align-items: center; }
.fjx-boost { margin-top: auto; width: 100%; display: flex; align-items: stretch; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
    background: linear-gradient(180deg, #34e7b9, #14b88f); box-shadow: 0 3px 0 #0b7a5f; font-weight: 900; font-size: 14px; color: #05261f; }
.fjx-boost span { flex: 1; padding: 7px 6px; }
.fjx-boost i { font-style: normal; background: #0b1230; color: #34e7b9; padding: 7px 12px; }
.fjx-boost:disabled { filter: grayscale(.55) brightness(.6); cursor: not-allowed; box-shadow: none; }
/* pas de saut a l'appui ni de voile sombre au toucher (14/10/2026) : un leger eclaircissement suffit */
.fjx-boost, .fjx-tab, .fjx-plus, .fjx-actions .btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fjx-boost:not(:disabled):active { filter: brightness(1.12); }
.fjx-boost:focus { outline: none; }
.fjx-boost:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.fjx-bas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.fjx-bloc { background: #101935; border: 2px solid #26346e; border-radius: 16px; padding: 12px 14px; }
.fjx-bloc h4 { margin: 0 0 8px; font-size: 14px; font-weight: 900; color: #e9e7ff; text-transform: uppercase; letter-spacing: .05em; }
.fjx-pane .caracs { margin-top: 4px; }

@media (max-width: 860px) {
    .fjx-grille { grid-template-columns: 1fr; }
    .fjx-etats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fjx-tab { font-size: 13px; padding: 10px 4px; }
    .fjx-tete { padding: 2px 34px 10px; }
}
@media (max-width: 420px) {
    .fjx-etat-ico { width: 70px; height: 70px; }
    .fjx-boost { font-size: 14px; }
}

/* le stock de boosts sous les quatre cartes (14/10/2026) */
.fjx-dispo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-weight: 800; font-size: 16px; }
.fjx-dispo img { width: 34px; height: 34px; object-fit: contain; }
.fjx-dispo b { font-size: 22px; font-weight: 900; }
.fjx-plus { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c9d3f5; background: transparent; color: #fff; font-weight: 900; cursor: pointer; padding: 0; }
.fjx-dispo:empty { display: none; }

/* telephone (14/10/2026) : des cartes d'etat plus compactes, moins de defilement */
@media (max-width: 860px) {
    .fjx-etat { padding: 10px 8px; gap: 6px; }
    .fjx-etat-t { min-height: 0; font-size: 13px; }
    .fjx-etat-ico { width: 64px; height: 64px; }
    .fjx-etat-mot { min-height: 0; font-size: 14px; }
    .fjx-visage { width: 78px; height: 78px; }
    .modal.fjx-modal { padding: 12px 10px 14px; }
}

/* la jauge, le besoin et le choix du nombre de boosts (14/10/2026) */
.fjx-etat-t small { display: block; font-size: 11px; font-weight: 700; color: #7fb4ff; margin-top: 2px; }
.fjx-jauge { width: 100%; height: 8px; border-radius: 6px; background: #1b2550; overflow: hidden; }
.fjx-jauge i { display: block; height: 100%; width: 0; border-radius: 6px; background: #3ddc6b; transition: width .5s ease; }
.fjx-jauge i.moyen { background: #f5c542; }
.fjx-jauge i.mauvais { background: #ff5a6e; }
.fjx-besoin { font-size: 12px; color: #c9d3f5; min-height: 1.3em; }
.fjx-besoin b { color: #fff; font-size: 14px; }
.fjx-besoin small { color: #9fb3ff; }
.fjx-besoin .ok { color: #3ddc6b; font-weight: 800; }
.fjx-choix { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; }
.fjx-choix span { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; font-size: 15px; }
.fjx-choix span img { width: 26px; height: 26px; object-fit: contain; }
.fjx-moins, .fjx-plus2 { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid #c9d3f5; background: transparent; color: #fff; font-weight: 900; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.fjx-moins { border-color: #6b7599; color: #c9d3f5; }
@media (max-width: 860px) { .fjx-moins, .fjx-plus2 { width: 26px; height: 26px; font-size: 16px; } .fjx-choix span img { width: 22px; height: 22px; } }

/* le boost d'equipe en tete de la page Effectif (14/10/2026) */
.eff-boost-eq { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #101935; border: 2px solid #26346e; }
.eff-boost-eq:empty { display: none; }
.ebq-ico { width: 54px; height: 54px; flex: none; }
.ebq-ico svg { width: 100%; height: 100%; }
.ebq-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 5px; }
.ebq-txt > b { font-size: 15px; }
.ebq-choix { width: auto; }
.ebq-btn { width: auto; min-width: 200px; }
/* 14/10/2026 : le stock de boosts a cote du bouton d'equipe, mis a jour apres chaque appui. */
.ebq-stock { display: flex; align-items: center; gap: 6px; flex: none; font-weight: 800; }
.ebq-stock img { width: 28px; height: 28px; object-fit: contain; }
.ebq-stock img + span { display: none; }
.ebq-stock b { font-size: 20px; font-weight: 900; }
@media (max-width: 600px) { .ebq-btn { width: 100%; } }

/* 14/10/2026 (Ju : « sur cette page Ronaldo reste en rose ») : la carte rose garde sa couleur dans la fiche */
.fjx-carte.fjx-carte-rose { border-color: #ff7eb6; background: linear-gradient(150deg, #ffd1e6 0%, #ff8fc4 55%, #e0569b 100%); box-shadow: 0 0 22px #ff7eb666; color: #2a0a1c; }
.fjx-carte-rose .fjx-court { color: #2a0a1c; }
.fjx-carte-rose .fjx-club2 { color: #7a1747; }
.fjx-carte-rose .fjx-trio span { color: #7a1747; }
.fjx-carte-rose .fjx-trio b { color: #2a0a1c; }
.fjx-carte-rose .fjx-pos { color: #b0115e; }
.fjx-carte-rose .fjx-note { background: #fff; border-color: #e0569b; color: #b0115e; }
.fjx-carte-rose .fjx-visage { background: #ffe3f0; }

/* 14/10/2026 (Ju : « rendre ca plus petit a tous les niveaux sur cette page ») : bandeau du boost d'equipe compact */
.eff-boost-eq { gap: 10px; padding: 6px 10px; margin-bottom: 8px; border-width: 1px; border-radius: 10px; }
.eff-boost-eq .ebq-ico { width: 32px; height: 32px; }
.eff-boost-eq .ebq-txt { gap: 3px; min-width: 140px; }
.eff-boost-eq .ebq-txt > b { font-size: 13px; }
.eff-boost-eq .fjx-jauge { height: 5px; }
.eff-boost-eq .fjx-besoin { font-size: 11px; min-height: 0; }
.eff-boost-eq .fjx-besoin b { font-size: 12px; }
.eff-boost-eq .fjx-choix span { font-size: 13px; }
.eff-boost-eq .fjx-moins, .eff-boost-eq .fjx-plus2, .eff-boost-eq .fjx-plus { width: 22px; height: 22px; font-size: 14px; border-width: 1.5px; }
.eff-boost-eq .ebq-stock img { width: 20px; height: 20px; }
.eff-boost-eq .ebq-stock b { font-size: 15px; }
.eff-boost-eq .ebq-btn { min-width: 0; font-size: 13px; border-radius: 9px; }
.eff-boost-eq .ebq-btn span { padding: 5px 12px; }
.eff-boost-eq .ebq-btn i { padding: 5px 9px; }
@media (max-width: 600px) { .eff-boost-eq .ebq-btn { width: 100%; } }

/* 14/10/2026 (Ju : « sur mobile, le bouton boost est trop gros, reduire autour, Boost d'equipe au centre
   de la barre, le + est ovale ») : sur un ecran tactile, la regle generale des boutons (min-height 44px)
   etirait les ronds et le bouton. Le stock et le bouton partagent une ligne, le texte est centre sur toute
   la barre (l'eclair se pose a droite par-dessus). */
.eff-boost-eq .fjx-moins, .eff-boost-eq .fjx-plus2, .eff-boost-eq .fjx-plus { min-height: 0; min-width: 0; flex: none; aspect-ratio: 1; }
.eff-boost-eq .ebq-btn { min-height: 0; position: relative; }
.eff-boost-eq .ebq-btn span { flex: 1; text-align: center; padding: 6px 34px; }
.eff-boost-eq .ebq-btn i { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; }
@media (max-width: 600px) {
    .eff-boost-eq { gap: 6px 10px; padding: 6px 8px; }
    .eff-boost-eq .ebq-btn { width: auto; flex: 1; }
    .eff-boost-eq .ebq-btn span { padding: 6px 30px; }
}
@media (min-width: 601px) { .eff-boost-eq .ebq-btn { min-width: 200px; } }
