/* ===== Fiche joueur publique en cartes (SEPQ-25) : statistiques_du_joueur/… ===== */
/* Classes préfixées « fj- » : indépendantes des anciens styles de styleClassementDetail.css */
.fiche-joueur {
  color: var(--texte, #0b2a55);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  /* Sans photo d'en-tête : la fiche démarre sous la barre de navigation fixe */
  margin: 90px auto 8px;
  max-width: 760px;
  padding: 0 16px;
}
.fj-sr-only {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* --- En-tête en carte : photo à gauche, nom, âge, saison --- */
.fj-carte.fj-entete {
  gap: 16px;
  margin-bottom: 12px;
}
.fj-photo {
  background: var(--fond-carte, #fff);
  border: 1px solid var(--bordure, #e6ecf3);
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  height: 120px;
  overflow: hidden;
  width: 96px;
}
.fj-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
/* Logo du club à la place de la photo : affiché en entier */
.fj-photo--logo img {
  object-fit: contain;
  padding: 6px;
}
.fj-entete-infos {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
/* Nom sur une seule ligne : la taille est réduite par le script de _entete_fiche si le nom est trop long,
   « … » en dernier recours sous la taille minimale */
.fiche-joueur h2.fj-nom {
  color: var(--texte, #0b2a55);
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fj-entete-saison {
  align-items: center;
  display: flex;
  gap: 10px;
}
.fj-entete-saison-libelle {
  color: var(--texte-doux, #64748b);
  font-size: 14px;
}
.fj-saison {
  margin: 0;
}

/* --- Bandeau : club + équipe principale | poste --- */
.fj-carte.fj-bandeau {
  align-items: stretch;
  gap: 0;
  margin-bottom: 18px;
  padding: 12px 14px;
}
/* Club + équipe + âge à gauche (place restante) ; poste collé à droite, à 14px du bord (padding de la carte) */
.fj-bandeau-club {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
}
.fj-bandeau-logo {
  border-radius: 8px;
  flex-shrink: 0;
  height: 40px;
  width: 40px;
}
.fj-bandeau-textes {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* Une seule ligne chacune : équipe, âge (tronquées en dernier recours plutôt que de passer à la ligne) */
.fj-bandeau-ligne {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fj-bandeau-ligne.fj-age {
  color: var(--texte-doux, #64748b);
  font-size: 13px;
}
.fj-bandeau-poste {
  align-items: center;
  border-left: 1px solid var(--bordure, #e6ecf3);
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  margin-left: 12px;
  padding-left: 12px;
  white-space: nowrap;
}

/* --- Onglets « Statistiques » / « Matchs joués » (même famille que les résultats, SEPQ-22) --- */
.fj-onglets {
  border-bottom: 2px solid #dbe4f0;
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fj-onglets::-webkit-scrollbar {
  display: none;
}
/* Neutralise le style générique « button » / « button:hover » (fond rouge, coins arrondis) de styleMain.css */
.fj-onglet,
.fj-onglet:hover,
.fj-onglet:focus,
.fj-onglet:active {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--texte-doux, #64748b);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 -2px;
  padding: 10px 14px;
  text-transform: uppercase;
  transition: none;
  white-space: nowrap;
}
.fj-onglet:hover {
  color: var(--accent, #1e5fa8);
}
.fj-onglet.active {
  border-bottom-color: #1e5fa8;
  color: var(--texte, #0b2a55);
}
.fj-onglet:focus-visible {
  outline: 2px solid #1e5fa8;
  outline-offset: -2px;
}
.fj-onglet i {
  margin-right: 4px;
}
.fj-onglet-nombre {
  background: var(--fond-accent, #e8eef7);
  border-radius: 10px;
  color: var(--accent, #1e5fa8);
  font-size: 0.8em;
  margin-left: 4px;
  padding: 1px 8px;
}

/* --- Onglet « Matchs joués » : lignes cliquables vers le détail du match --- */
.fj-carte.fj-matchs {
  display: block;
  overflow: hidden;
  padding: 0;
}
/* Séparateur de compétition (SEPQ-27) */
.fj-competition {
  align-items: center;
  background: #eef1f5;
  color: var(--texte, #0b2a55);
  display: flex;
  gap: 10px;
  padding: 7px 14px;
}
.fj-competition-logo {
  height: 28px;
  object-fit: contain;
  width: 28px;
}
.fj-competition strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.fj-competition-nom {
  color: var(--texte-doux, #64748b);
  display: block;
  font-size: 12px;
}
/* Ligne de match : date | logos | équipes | actions du joueur | (tab) | score | V/N/D */
.fj-match {
  align-items: center;
  color: var(--texte, #0b2a55);
  display: flex;
  gap: 10px;
  padding: 9px 14px;
  position: relative;
  text-decoration: none;
}
.fj-match + .fj-match::before {
  border-top: 1px solid var(--bordure, #eef2f7);
  content: "";
  left: 14px;
  position: absolute;
  right: 14px;
  top: 0;
}
.fj-match:hover,
.fj-match:focus {
  background: #f4f8fe;
  color: var(--texte, #0b2a55);
  text-decoration: none;
}
.fj-match-date {
  color: var(--texte-doux, #64748b);
  flex: 0 0 40px;
  font-size: 13px;
  font-weight: 600;
}
.fj-match-logos,
.fj-match-equipes,
.fj-match-score {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fj-match-logos {
  flex: 0 0 20px;
}
.fj-match-logos img {
  height: 20px;
  object-fit: contain;
  width: 20px;
}
.fj-match-equipes {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
}
.fj-match-equipes span {
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.fj-match-equipes .fj-match-gagnant {
  font-weight: 800;
}
/* Actions du joueur : capsule claire, une icône par type, le nombre en petite pastille */
.fj-match-actions {
  align-items: center;
  background: #f1f5f9;
  border-radius: 14px;
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  padding: 4px 7px;
}
.fj-match-action {
  display: inline-flex;
  position: relative;
}
.fj-match-action img {
  height: 15px;
  object-fit: contain;
  width: 15px;
}
/* Nombre en pastille en haut à droite de l'icône : place réservée pour ne pas chevaucher l'icône suivante */
.fj-match-action--multiple {
  padding-right: 7px;
}
.fj-match-action-nb {
  background: #0b2a55;
  border-radius: 8px;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 13px;
  min-width: 13px;
  padding: 0 3px;
  position: absolute;
  right: -2px;
  text-align: center;
  top: -6px;
}
.fj-match-qualif {
  color: var(--texte-doux, #64748b);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
/* Colonne de largeur fixe, chiffres à chasse fixe et centrés : scores alignés d'une ligne à l'autre (« 1 » comme « 10 ») */
.fj-match-score {
  flex: 0 0 22px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
/* Pastille V/N/D un peu plus petite et légèrement écartée du score */
.fj-match .fj-forme {
  flex: 0 0 19px;
  font-size: 11px;
  height: 19px;
  line-height: 19px;
  margin-left: 4px;
  width: 19px;
}
.fj-forme {
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  height: 22px;
  line-height: 22px;
  text-align: center;
  width: 22px;
}
.fj-forme--V { background: #00a83f; }
.fj-forme--N { background: #f3a000; }
.fj-forme--D { background: #dc0000; }
.fj-forme--attente { background: #8f8686; }
/* Bilan sous la liste des matchs (SEPQ-27) */
.fj-carte.fj-matchs-bilan {
  display: block;
  margin-top: 16px;
}
.fj-bilan-tuiles {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fj-bilan-tuile {
  background: var(--fond-page, #f4f7fb);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.fj-bilan-tuile strong {
  color: var(--texte, #0b2a55);
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.fj-bilan-tuile span {
  color: var(--texte-doux, #64748b);
  font-size: 12px;
}
.fj-bilan-tuile--total {
  background: #0b2a55;
}
.fj-bilan-tuile--total strong,
.fj-bilan-tuile--total span {
  color: #fff;
}
.fiche-joueur p.fj-bilan-titre {
  color: var(--texte-doux, #64748b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  margin: 14px 0 8px;
  text-transform: uppercase;
}
.fj-bilan-equipes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fj-bilan-equipe,
.fj-bilan-equipe:hover,
.fj-bilan-equipe:focus {
  align-items: center;
  background: var(--fond-accent, #eef3fa);
  border-radius: 16px;
  color: var(--texte, #0b2a55);
  text-decoration: none;
  transition: background .15s;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  padding: 3px 4px 3px 6px;
}
.fj-bilan-equipe:hover {
  background: var(--fond-accent-2, #dce7f5);
  color: var(--accent, #1e5fa8);
}
.fj-bilan-equipe img {
  height: 18px;
  object-fit: contain;
  width: 18px;
}
.fj-bilan-equipe-nb {
  background: #1e5fa8;
  border-radius: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  min-width: 18px;
  padding: 0 5px;
  text-align: center;
}
.fiche-joueur p.fj-vide {
  color: var(--texte-doux, #64748b);
  font-style: italic;
  padding: 12px 4px;
}

/* --- Illustration décorative d'une carte (cage de but, penaltys arrêtés) --- */
.fj-carte-illustration {
  align-self: center;
  border-left: 1px solid var(--bordure, #e6ecf3);
  color: #c7d4e6;
  margin-left: auto;
  padding-left: 16px;
}
.fj-saison-select,
.fj-saison--seule {
  background: var(--fond-accent, #e8eef7);
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  color: var(--accent, #1e5fa8);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 16px;
}
.fj-saison-select {
  -webkit-appearance: none;
  appearance: none;
  background: #e8eef7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e5fa8' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
  height: auto;
  margin: 0;
  padding-right: 38px;
  width: auto;
}
.fj-saison-select:hover {
  border-color: #1e5fa8;
}
.fj-saison-select:focus-visible {
  outline: 2px solid #1e5fa8;
  outline-offset: 2px;
}

/* --- Grilles de cartes --- */
.fj-grille {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}
/* Une seule carte : toute la largeur */
.fj-grille > :only-child {
  grid-column: 1 / -1;
}
/* Une carte par ligne (Performance : buts, puis passes décisives, pour ne pas compresser leurs détails) */
.fj-grille--1 {
  grid-template-columns: minmax(0, 1fr);
}
/* Discipline : 2 colonnes (cartons jaunes | rouges), la dernière carte (matchs suspendus, avec son illustration)
   sur toute la largeur quand le nombre de cartes est impair */
.fj-grille--dernier-large > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* --- Carte --- */
.fj-carte {
  align-items: flex-start;
  background: var(--fond-carte, #fff);
  border: 1px solid var(--bordure, #e6ecf3);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(11, 42, 85, 0.04);
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}
.fj-pastille {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 20px;
  height: 46px;
  justify-content: center;
  width: 46px;
}
.fj-pastille img {
  height: 26px;
  width: 26px;
}
.fj-pastille .icone-svg {
  height: 24px;
  width: 24px;
}
.fj-pastille--bleu { background: #e8eef7; color: #1e5fa8; }
.fj-pastille--rose { background: #fbe7ee; color: #b0144e; }
.fj-pastille--vert { background: #dcfce7; color: #15803d; }
.fj-pastille--jaune { background: #fef3c7; color: #e0a106; }
.fj-pastille--rouge { background: #fde2e4; color: #c8102e; }
.fj-pastille--gris { background: #eef1f5; color: #64748b; }
.fj-carte-corps {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.fj-carte-libelle {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}
.fj-carte-valeur {
  color: var(--texte, #0b2a55);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.fj-carte-detail {
  color: var(--texte-doux, #64748b);
  font-size: 13px;
}
.fj-carte-detail strong {
  color: var(--texte, #0b2a55);
}
/* « Voir détail » : à droite de la carte, centré verticalement */
.fj-carte-lien {
  align-self: center;
  color: var(--accent, #1e5fa8);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  margin-left: auto;
  text-decoration: underline;
  white-space: nowrap;
}
.fj-carte-lien:hover,
.fj-carte-lien:focus {
  color: var(--texte, #0b2a55);
}
.fj-carte-lien i {
  font-size: 10px;
  margin-left: 2px;
}

/* --- Ratio de victoire : barre + anneau --- */
.fj-ratio {
  align-items: center;
  margin-bottom: 12px;
}
.fj-ratio .fj-carte-valeur {
  font-size: 34px;
}
.fj-barre {
  background: var(--fond-accent, #e8eef7);
  border-radius: 4px;
  display: block;
  height: 8px;
  margin: 6px 0;
  max-width: 320px;
  overflow: hidden;
}
.fj-barre span {
  background: #1e5fa8;
  border-radius: 4px;
  display: block;
  height: 100%;
}
.fj-anneau {
  align-items: center;
  background: conic-gradient(#1e5fa8 calc(var(--pourcentage) * 1%), #e8eef7 0);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 84px;
  justify-content: center;
  width: 84px;
}
.fj-anneau span {
  align-items: center;
  background: var(--fond-carte, #fff);
  border-radius: 50%;
  color: var(--accent, #1e5fa8);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  height: 64px;
  justify-content: center;
  width: 64px;
}
/* --- Titres de section : icône + filet --- */
.fiche-joueur h3.fj-section {
  align-items: center;
  color: var(--texte, #0b2a55);
  display: flex;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  gap: 10px;
  margin: 26px 0 12px;
}
.fj-section i {
  color: var(--accent, #1e5fa8);
}
.fj-section img {
  height: 22px;
  width: 22px;
}
.fj-section::after {
  background: #dbe4f0;
  content: "";
  flex: 1;
  height: 1px;
}

/* --- Graphique des résultats et vidéo --- */
.fj-graphique,
.fj-video {
  margin-top: 20px;
}

/* --- Mobile --- */
@media (max-width: 575px) {
  .fiche-joueur {
    margin-top: 80px;
    padding: 0 12px;
  }
  .fj-photo {
    height: 95px;
    width: 95px;
  }
  .fiche-joueur h2.fj-nom {
    font-size: 22px;
    margin: 8px 0 6px 0;
  }
  .fj-onglet,
  .fj-onglet:hover,
  .fj-onglet:focus,
  .fj-onglet:active {
    font-size: 13px;
    padding: 10px 10px;
  }
  .fj-match {
    gap: 7px;
    padding: 9px 10px;
  }
  .fj-match-date {
    flex-basis: 30px;
    font-size: 11px;
  }
  .fj-match-equipes {
    font-size: 12px;
  }
  .fj-competition {
    padding: 7px 10px;
  }
  .fj-bandeau-ligne.fj-age {
    font-size: 12px;
  }
  .fj-carte-illustration svg {
    height: 48px;
    width: 82px;
  }
  .fj-carte {
    gap: 10px;
    padding: 12px;
  }
  .fj-pastille {
    font-size: 18px;
    height: 40px;
    width: 40px;
    margin: 2px;
  }
  .fj-carte-valeur {
    font-size: 24px;
  }
  .fj-ratio .fj-carte-valeur {
    font-size: 28px;
  }
  .fj-anneau {
    height: 68px;
    width: 68px;
  }
  .fj-anneau span {
    font-size: 12px;
    height: 52px;
    width: 52px;
  }
}

/* --- Photo agrandie (visionneuse) : fond sombre, image entière, croix de fermeture --- */
.fj-photo[data-fj-agrandir] {
  cursor: zoom-in;
}
.fj-visionneuse {
  align-items: center;
  background: rgba(11, 20, 35, 0.88);
  cursor: zoom-out;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 2000;
}
.fj-visionneuse[hidden] {
  display: none;
}
.fj-visionneuse img {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
/* Neutralise le style générique « button » / « button:hover » des anciennes feuilles publiques */
.fj-visionneuse-fermer,
.fj-visionneuse-fermer:hover,
.fj-visionneuse-fermer:focus,
.fj-visionneuse-fermer:active {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  height: 44px;
  line-height: 44px;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 16px;
  text-align: center;
  top: 16px;
  transition: none;
  width: 44px;
}
.fj-visionneuse-fermer:hover {
  background: rgba(255, 255, 255, 0.3);
}
.fj-visionneuse-fermer:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Page figée derrière la photo agrandie */
body.fj-visionneuse-ouverte {
  overflow: hidden;
}

/* --- Cartes-liens « Revenir aux classements » : bordure gauche colorée + flèche --- */
.fj-carte--lien {
  align-items: center;
  border-left-width: 4px;
  color: var(--texte, #0b2a55);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.fj-carte--lien:hover,
.fj-carte--lien:focus {
  box-shadow: 0 6px 16px rgba(11, 42, 85, 0.1);
  color: var(--texte, #0b2a55);
  text-decoration: none;
  transform: translateY(-1px);
}
.fj-carte--lien:focus-visible {
  outline: 2px solid #1e5fa8;
  outline-offset: 2px;
}
.fj-carte--bleu { border-left-color: #1e5fa8; }
.fj-chevron {
  align-items: center;
  background: #f1f5f9;
  border-radius: 50%;
  color: var(--texte-doux, #64748b);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 12px;
  height: 30px;
  justify-content: center;
  margin-left: auto;
  width: 30px;
}
.fj-carte--lien:hover .fj-chevron {
  background: var(--fond-accent, #e8eef7);
  color: var(--accent, #1e5fa8);
}

/* --- « Revenir aux classements » : titre entre deux filets + cartes-liens --- */
.fiche-joueur.fiche-joueur--suite {
  margin-top: 8px;
}
.fj-liens-classements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 26px 0 30px;
}
.fiche-joueur p.fj-liens-titre {
  /*align-items: center;*/
  /*color: #64748b;*/
  /*display: flex;*/
  /*font-size: 15px;*/
  /*font-style: italic;*/
  /*gap: 14px;*/
  /*margin: 15px 0 4px;*/
  align-items: center;
  color: var(--texte, #0b2a55);
  display: flex;
  font-size: 18px;
  font-weight: 700;
  gap: 10px;
  margin: 14px 0 12px;
}
/* Cartes-liens plus discrètes que les cartes de statistiques : plus compactes, pastille et flèche réduites */
.fj-carte.fj-lien-classement {
  box-shadow: none;
  gap: 10px;
  padding: 9px 12px;
}
.fj-lien-classement .fj-pastille {
  font-size: 15px;
  height: 34px;
  width: 34px;
}
.fj-lien-classement .fj-pastille .icone-svg {
  height: 18px;
  width: 18px;
}
.fj-lien-classement .fj-chevron {
  font-size: 10px;
  height: 24px;
  width: 24px;
}
.fj-liens-titre::before,
.fj-liens-titre::after {
  background: #dbe4f0;
  content: "";
  flex: 1;
  height: 1px;
}
.fj-lien-classement-titre {
  color: var(--texte, #0b2a55);
  font-size: 14px;
  font-weight: 700;
}
.fj-lien-classement-texte {
  color: var(--texte-doux, #64748b);
  font-size: 12px;
  font-style: italic;
}

/* --- Fenêtre « Entraînements » (Bootstrap 3) au style de la fiche --- */
.fj-modal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(11, 42, 85, 0.25);
  color: var(--texte, #0b2a55);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}
.fj-modal .modal-header {
  border-bottom: 1px solid var(--bordure, #e6ecf3);
  padding: 14px 18px;
}
.fj-modal .fj-modal-titre {
  align-items: center;
  color: var(--texte, #0b2a55);
  display: flex;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  gap: 10px;
  line-height: 1.3;
  margin: 0;
}
.fj-modal-titre i {
  color: #15803d;
}
.fj-modal .modal-body {
  padding: 16px 18px 6px;
}
.fj-modal .fj-modal-total {
  align-items: center;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 6px 10px;
  margin: 14px 0 0;
}
.fj-modal-total strong {
  color: var(--texte, #0b2a55);
}
.fj-modal-presence {
  background: #dcfce7;
  border-radius: 12px;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
}
.fj-modal .modal-footer {
  border-top: none;
  padding: 8px 18px 16px;
}
/* Neutralise le style générique « button » / « button:hover » des anciennes feuilles publiques */
.fj-modal-fermer,
.fj-modal-fermer:hover,
.fj-modal-fermer:focus,
.fj-modal-fermer:active {
  background: var(--fond-accent, #e8eef7);
  border: none;
  border-radius: 18px;
  box-shadow: none;
  color: var(--accent, #1e5fa8);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  padding: 7px 18px;
  transition: none;
  width: auto;
}
.fj-modal-fermer:hover {
  background: var(--fond-accent-2, #dbe6f5);
}
.fj-modal-fermer:focus-visible {
  outline: 2px solid #1e5fa8;
  outline-offset: 2px;
}

/* --- Illustrations des cartes Performance : le détail (gant, coche, ballon, passe) prend la couleur de la carte --- */
.fj-carte-illustration .fj-illustration-accent {
  color: var(--accent, #1e5fa8);
}
.fj-carte-illustration--vert .fj-illustration-accent {
  color: #16a34a;
}
.fj-carte-illustration--rose .fj-illustration-accent {
  color: #b0144e;
}
/* Présence faible (24 % ou moins) : pastille rouge rosé */
.fj-modal-presence--faible {
  background: #fde2e4;
  color: #c8102e;
}

/* Bouton de partage du profil, à droite du nom (même script que le partage des filtres, SEPQ-16) */
.fj-entete-ligne {
  align-items: center;
  display: flex;
  gap: 8px;
}
.fj-entete-ligne .fj-nom {
  flex: 1 1 auto;
  min-width: 0;
}
.fiche-joueur button.fj-partage,
.fiche-joueur button.fj-partage:hover,
.fiche-joueur button.fj-partage:focus {
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(180deg, #edf4fe 0%, #dce9fb 100%);
  border: 1px solid #cfe0f7;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(30, 95, 168, .15);
  color: #0b3a8c;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 14px;
  height: 28px;
  justify-content: center;
  margin: 0;
  outline: none;
  padding: 0;
  position: relative;
  transition: box-shadow .15s, transform .15s;
  width: 28px;
}
.fiche-joueur button.fj-partage:hover {
  box-shadow: 0 4px 10px rgba(30, 95, 168, .25);
  transform: translateY(-1px);
}
.fiche-joueur button.fj-partage:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 95, 168, .3);
}
/* Infobulle « Partager le profil » sous le bouton (souris uniquement), « Lien copié » après la copie */
.fj-partage::after {
  background: #1f2937;
  border-radius: 6px;
  color: #fff;
  content: "Partager le profil";
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  padding: 4px 9px;
  pointer-events: none;
  position: absolute;
  right: -4px;
  top: calc(100% + 8px);
  transition: opacity .15s;
  white-space: nowrap;
  z-index: 5;
}
.fj-partage::before {
  border: 5px solid transparent;
  border-bottom-color: #1f2937;
  content: "";
  left: 50%;
  margin-left: -5px;
  opacity: 0;
  position: absolute;
  top: calc(100% - 2px);
  transition: opacity .15s;
}
@media (hover: hover) {
  .fj-partage:hover::after,
  .fj-partage:hover::before {
    opacity: 1;
  }
}
.fj-partage.filtres-partage--ok::after {
  content: "Lien copié";
  opacity: 1;
}
.fj-partage.filtres-partage--ok::before {
  opacity: 1;
}
.fiche-joueur button.fj-partage.filtres-partage--ok {
  background: #dcf5e5;
  border-color: #b7e8c8;
  color: #00a83f;
}

/* Match en direct dans l'onglet « Matchs joués » : point rouge clignotant à la place de V/N/D (même largeur, scores alignés) */
.fj-match .fj-forme--Live {
  align-items: center;
  background: transparent;
  display: inline-flex;
  justify-content: center;
}
.fj-point-direct {
  animation: fj-direct 1.8s infinite;
  background: #e30613;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .18);
  height: 9px;
  width: 9px;
}
@keyframes fj-direct {
  50% { opacity: .25; }
}

/* ===== Thème sombre (SEPQ-36) : fiche joueur ===== */
[data-theme="dark"] .fj-onglets {
  border-bottom-color: var(--bordure);
}
[data-theme="dark"] .fj-competition,
[data-theme="dark"] .fj-match-actions,
[data-theme="dark"] .fj-chevron {
  background: var(--fond-accent);
}
[data-theme="dark"] .fj-match:hover,
[data-theme="dark"] .fj-match:focus {
  background: var(--fond-accent);
}
[data-theme="dark"] .fj-saison--seule,
[data-theme="dark"] .fj-saison-select {
  border-color: var(--bordure-2);
}
[data-theme="dark"] .fj-saison-select {
  background-color: var(--fond-accent);
  color: var(--texte);
}
[data-theme="dark"] .fj-section::after,
[data-theme="dark"] .fj-liens-titre::after {
  background: var(--bordure);
}
/* Pastilles colorées : teinte légère sur fond sombre */
[data-theme="dark"] .fj-pastille--bleu { background: rgba(76, 155, 232, .16); color: #7db8f0; }
[data-theme="dark"] .fj-pastille--rose { background: rgba(224, 69, 138, .18); color: #f472b6; }
[data-theme="dark"] .fj-pastille--vert { background: rgba(22, 163, 74, .18); color: #4ade80; }
[data-theme="dark"] .fj-pastille--jaune { background: rgba(250, 204, 21, .16); color: #facc15; }
[data-theme="dark"] .fj-pastille--rouge { background: rgba(220, 38, 38, .2); color: #f87171; }
[data-theme="dark"] .fj-pastille--gris { background: var(--fond-accent); color: var(--texte-doux); }
/* Fenêtre de présence aux entraînements */
[data-theme="dark"] .fj-modal-presence {
  background: rgba(22, 163, 74, .18);
}
[data-theme="dark"] .fj-modal-presence--faible {
  background: rgba(220, 38, 38, .2);
}
/* Bouton de partage */
[data-theme="dark"] .fiche-joueur button.fj-partage,
[data-theme="dark"] .fiche-joueur button.fj-partage:hover,
[data-theme="dark"] .fiche-joueur button.fj-partage:focus {
  background: var(--fond-accent);
  border-color: var(--bordure-2);
  color: #fff;
}
[data-theme="dark"] .fiche-joueur button.fj-partage.filtres-partage--ok {
  background: rgba(22, 163, 74, .25);
}
/* Choix de la saison : flèche claire */
[data-theme="dark"] .fj-saison-select {
  background: var(--fond-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237db8f0' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
}

/* ===== Bannière d'identité (refonte SEPQ-32, maquette du 11/11/2026) : _entete_fiche.html.twig =====
   Fond bleu SEPQ comme les cartes « Leader » de l'accueil, blason en filigrane, bande diagonale (bleue ; rose pour les joueuses),
   photo détourée posée en bas à gauche (sinon photo encadrée), identité à droite, saison en pastille à cheval dessous. */
.fj-banniere {
  --fj-genre: #4c9be8;
  align-items: stretch;
  background: radial-gradient(circle at 25% 30%, #1e5fa8 0%, #0b3a75 55%, #0b2a55 100%);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(11, 42, 85, .22);
  color: #fff;
  display: flex;
  min-height: 230px;
  overflow: hidden;
  position: relative;
}
.fj-banniere--feminin {
  --fj-genre: #e0458a;
}
.fj-banniere-blason {
  height: 135%;
  opacity: .12;
  pointer-events: none;
  position: absolute;
  right: -14%;
  top: -18%;
  width: auto;
}
.fj-banniere-bande {
  background: linear-gradient(180deg, var(--fj-genre), transparent 100%);
  height: 170%;
  left: 35%;
  opacity: .9;
  pointer-events: none;
  position: absolute;
  top: -35%;
  transform: rotate(15deg);
  width: 9px;
}
/* Photo : détourée, posée en bas sans cadre ; sinon photo encadrée centrée */
.fj-banniere .fj-photo {
  align-self: center;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  flex: 0 0 auto;
  height: 165px;
  margin: 18px 0 18px 22px;
  position: relative;
  width: 132px;
  z-index: 1;
}
.fj-banniere .fj-photo.fj-photo--detouree {
  align-self: flex-end;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  height: 230px;
  margin: 0 0 0 6px;
  overflow: visible;
  width: 40%;
}
.fj-banniere .fj-photo--detouree img {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
  object-fit: contain;
  object-position: 50% 100%;
}
.fj-banniere-infos {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px 46px 26px 18px;
  position: relative;
  z-index: 1;
}
.fj-badge-genre {
  align-self: flex-start;
  background: var(--fj-genre);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 6px;
  padding: 2px 10px;
}
.fiche-joueur .fj-banniere h2.fj-nom {
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 30px;
  line-height: 1.1;
  overflow: visible;
  padding-bottom: 10px;
  position: relative;
  white-space: normal;
}
/* Trait sous le nom, couleur du badge */
.fiche-joueur .fj-banniere h2.fj-nom::after {
  background: var(--fj-genre);
  border-radius: 2px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 52px;
}
.fj-nom-ligne {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fj-banniere-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.fj-banniere-details li {
  align-items: center;
  color: rgba(255, 255, 255, .92);
  display: flex;
  font-size: 14px;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}
.fj-banniere-details i {
  color: #fff;
  flex: 0 0 18px;
  font-size: 15px;
  text-align: center;
}
/* Partage : bouton translucide en haut à droite de la bannière */
.fiche-joueur .fj-banniere button.fj-partage,
.fiche-joueur .fj-banniere button.fj-partage:hover,
.fiche-joueur .fj-banniere button.fj-partage:focus {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: none;
  color: #fff;
  height: 32px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  z-index: 2;
}
.fiche-joueur .fj-banniere button.fj-partage.filtres-partage--ok {
  background: rgba(22, 163, 74, .55);
}

/* Saison : pastille blanche centrée, à cheval sur le bas de la bannière */
.fj-banniere-saison {
  display: flex;
  justify-content: center;
  margin: -19px 0 14px;
  position: relative;
  z-index: 2;
}
.fj-banniere-saison .fj-saison-select,
.fj-banniere-saison .fj-saison--seule {
  background-color: var(--fond-carte, #fff);
  border: 1px solid var(--bordure, #e6ecf3);
  box-shadow: 0 4px 14px rgba(11, 42, 85, .16);
  color: var(--texte, #0b2a55);
  padding-bottom: 8px;
  padding-top: 8px;
}
.fj-banniere-saison .fj-saison--seule {
  margin: 0;
}

/* Onglets : barre blanche, deux onglets égaux, indicateur bleu sous l'onglet actif */
.fj-onglets {
  background: var(--fond-carte, #fff);
  border: 1px solid var(--bordure, #e6ecf3);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(11, 42, 85, .05);
  gap: 0;
  padding: 0 10px;
}
.fj-onglet,
.fj-onglet:hover,
.fj-onglet:focus,
.fj-onglet:active {
  border-bottom-width: 3px;
  flex: 1 1 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  padding: 14px 10px 12px;
  text-transform: none;
}
.fj-onglet.active {
  border-bottom-color: #1e5fa8;
  color: var(--accent, #1e5fa8);
}

/* Mobile : bannière de bord à bord sous la barre de navigation, coins arrondis en bas seulement */
@media (max-width: 575px) {
  .fj-banniere {
    border-radius: 0 0 22px 22px;
    margin: -12px -12px 0;
    min-height: 200px;
  }
  .fj-banniere .fj-photo {
    height: 130px;
    margin-left: 14px;
    width: 104px;
  }
  .fj-banniere .fj-photo.fj-photo--detouree {
    height: 200px;
    margin-left: 0;
    width: 42%;
  }
  .fj-banniere-infos {
    padding: 18px 12px 26px 10px;
  }
  .fiche-joueur .fj-banniere h2.fj-nom {
    font-size: 25px;
    margin: 0;
  }
  .fj-banniere-details li {
    font-size: 13px;
  }
  .fj-onglet,
  .fj-onglet:hover,
  .fj-onglet:focus,
  .fj-onglet:active {
    font-size: 14px;
    padding: 13px 6px 11px;
  }
}

/* Thème sombre : bannière un peu plus profonde, pastille de saison et onglets sur fond de carte */
[data-theme="dark"] .fj-banniere {
  background: radial-gradient(circle at 25% 30%, #1b4f8c 0%, #0b2f5f 55%, #06193a 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .fj-banniere-saison .fj-saison-select,
[data-theme="dark"] .fj-banniere-saison .fj-saison--seule {
  background-color: var(--fond-carte);
  border-color: var(--bordure-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  color: var(--texte);
}
[data-theme="dark"] .fj-onglets {
  border-color: var(--bordure);
}
[data-theme="dark"] .fj-onglet.active {
  color: #7db8f0;
}
[data-theme="dark"] .fiche-joueur .fj-banniere button.fj-partage,
[data-theme="dark"] .fiche-joueur .fj-banniere button.fj-partage:hover,
[data-theme="dark"] .fiche-joueur .fj-banniere button.fj-partage:focus {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
}

/* --- Ajustements du 11/11/2026 : bannière moins haute sur mobile, coin coloré, pastille de saison sous la bannière --- */
/* Coin haut gauche : bande diagonale de la couleur du genre (bleue / rose), comme sur la maquette */
.fj-banniere-coin {
  background: linear-gradient(180deg, var(--fj-genre), transparent 90%);
  height: 90px;
  left: -1%;
  opacity: .9;
  pointer-events: none;
  position: absolute;
  top: -34px;
  transform: rotate(29deg);
  width: 22px;
}
/* Pastille de saison : juste sous la bannière (légèrement descendue), fond bleu pâle, moins épaisse */
.fj-banniere-saison {
  margin: -12px 0 14px;
}
.fj-banniere-saison .fj-saison-select,
.fj-banniere-saison .fj-saison--seule {
  background-color: #e3ecf8;
  border-color: #d3e0f2;
  box-shadow: 0 3px 10px rgba(11, 42, 85, .14);
  color: #0b2a55;
  font-size: 13px;
  padding-bottom: 4px;
  padding-top: 4px;
}
@media (max-width: 575px) {
  .fj-banniere {
    min-height: 168px;
  }
  .fj-banniere-infos {
    padding: 14px 12px 20px 8px;
  }
  /* Photo détourée : bas de la photo légèrement rogné (la bannière coupe ce qui dépasse) */
  .fj-banniere .fj-photo.fj-photo--detouree {
    height: 168px;
  }
  .fj-banniere .fj-photo--detouree img {
    height: 116%;
    object-position: 50% 0;
  }
  .fj-banniere .fj-photo {
    height: 118px;
    margin-bottom: 14px;
    margin-top: 14px;
    width: 94px;
  }
  .fiche-joueur .fj-banniere h2.fj-nom {
    font-size: 23px;
    padding-bottom: 8px;
  }
  .fj-banniere-details {
    gap: 4px;
    margin-top: 10px;
  }
}
[data-theme="dark"] .fj-banniere-saison .fj-saison-select,
[data-theme="dark"] .fj-banniere-saison .fj-saison--seule {
  background-color: var(--fond-accent);
  border-color: var(--bordure-2);
  color: var(--texte);
}

/* --- Ajustements (2) : coin haut gauche bleu pâle (couleur de la pastille de saison), pastille moins à cheval,
   bannière collée à la barre de navigation sur mobile --- */
.fj-banniere-coin {
  background: linear-gradient(180deg, #e3ecf8, rgba(227, 236, 248, 0) 95%);
  opacity: .75;
}
.fj-banniere-saison {
  margin-top: -9px;
}
@media (max-width: 575px) {
  /* La barre fixe fait environ 54 px : la fiche commence à 80 px, la bannière remonte jusque sous la barre */
  .fj-banniere {
    margin-top: -26px;
  }
}
/* Photo détourée : 7 px d'air entre le haut de la bannière et la tête (cadre de la photo moins haut, toujours posé en bas) */
@media (max-width: 575px) {
  .fj-banniere .fj-photo.fj-photo--detouree {
    height: 161px;
  }
}
/* Tablette et ordinateur : même espace de 7 px au-dessus de la photo détourée (bannière de 230 px, cadre de 223 px posé en bas) */
@media (min-width: 576px) {
  .fj-banniere {
    height: 230px;
  }
  .fj-banniere .fj-photo.fj-photo--detouree {
    height: 223px;
  }
}
/* Photo cliquable : pas de cadre de focus après un clic (il reste visible à la navigation au clavier) */
.fj-banniere .fj-photo:focus:not(:focus-visible) {
  outline: none;
}
.fj-banniere .fj-photo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
/* Statistiques collectives : cartes-liens sur un très léger fond bleuté pour mieux les distinguer */
.fj-carte.fj-lien-classement {
  background: linear-gradient(90deg, #f3f7fd 0%, #f8fafd 100%);
}
.fj-carte.fj-lien-classement:hover,
.fj-carte.fj-lien-classement:focus {
  background: #ecf2fb;
}
[data-theme="dark"] .fj-carte.fj-lien-classement {
  background: var(--fond-carte-2);
}
[data-theme="dark"] .fj-carte.fj-lien-classement:hover,
[data-theme="dark"] .fj-carte.fj-lien-classement:focus {
  background: var(--fond-accent);
}
/* Photo par défaut (logo du club) : petit carré blanc centré verticalement, le logo affiché en entier */
.fj-banniere .fj-photo.fj-photo--logo {
  align-self: center;
  height: 120px;
  margin: 0 8px 0 28px;
  width: 120px;
}
.fj-banniere .fj-photo--logo img {
  object-fit: contain;
  padding: 8px;
}
@media (max-width: 575px) {
  .fj-banniere .fj-photo.fj-photo--logo {
    height: 86px;
    margin: 0 4px 0 18px;
    width: 86px;
  }
}
/* Thème sombre : petits titres des cartes (« Ratio de victoire », « Clean sheet », « Buts »…) lisibles */
[data-theme="dark"] .fj-carte-libelle {
  color: var(--texte-2);
}
/* Thème clair : cartes un peu mieux délimitées sur le fond blanc (bordure bleutée + ombre douce) */
html:not([data-theme="dark"]) .fiche-joueur .fj-carte,
html:not([data-theme="dark"]) .fiche-joueur .fj-onglets {
  border-color: #dbe4f0;
  box-shadow: 0 3px 12px rgba(11, 42, 85, .08);
}
