/* Fiche Club V1 — premium visual polish (shell tokens) */

.fc-sheet {
  min-width: 0;
  overflow-x: hidden;
}

/* ---------- Hero ---------- */

.fc-hero {
  position: relative;
  margin: 0 0 14px;
  padding: 16px 14px 14px;
  border-radius: 20px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  box-shadow: var(--m-shadow);
}

.fc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.75), transparent);
  opacity: 0.85;
  z-index: 2;
}

.fc-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05);
  pointer-events: none;
}

.fc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.28) 0%, rgba(7, 11, 20, 0.58) 52%, rgba(7, 11, 20, 0.9) 100%),
    radial-gradient(420px 160px at 0% 100%, rgba(59, 130, 246, 0.2), transparent 70%),
    radial-gradient(280px 120px at 100% 0%, rgba(250, 204, 21, 0.1), transparent 60%);
  pointer-events: none;
}

.fc-hero-inner {
  position: relative;
  z-index: 1;
}

.fc-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fc-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(7, 11, 20, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 4px rgba(11, 18, 32, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.fc-hero-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fc-nom {
  margin: 0;
  font-family: var(--m-display);
  font-size: clamp(1.32rem, 5.1vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.fc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
}

.fc-div-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.38);
}

.fc-manager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  max-width: 100%;
  min-width: 0;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 500;
}

.fc-manager-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Badge Premium — mêmes tokens que Accueil (public/css/mobile/accueil.css) */
.m-home-premium-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #fde68a;
  background:
    linear-gradient(145deg, rgba(250, 204, 21, 0.24), rgba(250, 204, 21, 0.08));
  border: 1px solid rgba(250, 204, 21, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fc-rating {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.fc-stars {
  color: #facc15;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.fc-rating-label {
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 0;
}

/* ---------- Saison ---------- */

.fc-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.fc-kpi-tile {
  min-width: 0;
  padding: 10px 8px 9px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid var(--m-border);
  text-align: center;
}

.fc-kpi-value {
  display: block;
  font-family: var(--m-display);
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fc-kpi-tile--rank .fc-kpi-value {
  color: var(--m-gold);
}

.fc-kpi-label {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-muted);
}

.fc-saison-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fc-vnd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fc-v { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.fc-n { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.fc-d { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }

.fc-goals {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.fc-goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
  min-width: 0;
}

.fc-goal + .fc-goal {
  border-left: 1px solid var(--m-border);
}

.fc-goal-k {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-muted);
}

.fc-goal-v {
  margin-top: 2px;
  font-family: var(--m-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  line-height: 1.1;
}

.fc-goal-v.is-pos { color: #86efac; }
.fc-goal-v.is-neg { color: #fca5a5; }

/* ---------- Forme ---------- */

.fc-forme-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--m-border);
}

.fc-forme-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fc-forme-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m-muted);
  flex-shrink: 0;
}

.fc-forme {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fc-form-V { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.fc-form-N { background: rgba(148, 163, 184, 0.18); color: #e2e8f0; }
.fc-form-D { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.fc-forme-empty {
  color: var(--m-muted);
  font-size: 0.84rem;
}

.fc-serie {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--m-muted);
  letter-spacing: 0.01em;
}

/* ---------- Coupe ---------- */

.fc-coupe {
  position: relative;
  overflow: hidden;
  margin: 10px 0 8px;
  padding: 14px 16px;
  min-height: 76px;
  border-radius: 16px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background:
    linear-gradient(145deg, rgba(18, 28, 48, 0.92) 0%, rgba(10, 16, 28, 0.96) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.fc-coupe-art {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(42%, 150px);
  height: 130%;
  transform: translateY(-48%);
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.05) contrast(1.05);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
  pointer-events: none;
}

.fc-coupe-inner {
  position: relative;
  z-index: 1;
  max-width: 72%;
}

.fc-coupe-kicker {
  margin: 0 0 4px;
  font-family: var(--m-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.9);
  font-weight: 700;
}

.fc-coupe-libelle {
  margin: 0;
  font-family: var(--m-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 4.2vw, 1.28rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- Stade & campus ---------- */

.fc-stade {
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
    var(--m-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fc-stade-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fc-stade-kicker {
  margin: 0 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}

.fc-stade-niv {
  margin: 0;
  font-family: var(--m-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fc-stade-facts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
}

.fc-fill {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 12px;
}

.fc-fill-bar {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3b82f6, #facc15);
}

.fc-campus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.fc-bat {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 76px;
  padding: 12px 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--m-border);
  background: #0f172a;
}

.fc-bat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  pointer-events: none;
}

.fc-bat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.35) 0%, rgba(11, 18, 32, 0.82) 100%);
  pointer-events: none;
}

.fc-bat-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fc-bat-k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  line-height: 1.25;
}

.fc-bat-v {
  font-family: var(--m-display);
  font-size: 1.12rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- Effectif ---------- */

.fc-effectif {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-poste-head {
  margin: 10px 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m-muted);
}

.fc-effectif > .fc-poste-head:first-child {
  margin-top: 0;
}

.fc-joueur {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--m-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--m-border);
}

.fc-joueur-main {
  flex: 1;
  min-width: 0;
}

.fc-joueur-nom {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-joueur-nom .club-fiche-link {
  font-weight: inherit;
}

.fc-joueur-sub {
  margin-top: 1px;
  color: var(--m-muted);
  font-size: 0.75rem;
}

.fc-joueur-niv {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 1.1;
}

.fc-joueur-niv-k {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-muted);
}

.fc-joueur-niv-v {
  font-family: var(--m-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--m-gold);
}

.poste-badge.poste-G,
.m-badge.poste-G {
  background: #a16207;
  color: #fffbeb;
}

.poste-badge.poste-D,
.m-badge.poste-D {
  background: #1d4ed8;
  color: #eff6ff;
}

.poste-badge.poste-M,
.m-badge.poste-M {
  background: #15803d;
  color: #ecfdf5;
}

.poste-badge.poste-A,
.m-badge.poste-A {
  background: #b91c1c;
  color: #fef2f2;
}

@media (max-width: 380px) {
  .fc-saison-detail {
    flex-direction: column;
    align-items: flex-start;
  }

  .fc-coupe-inner {
    max-width: 78%;
  }

  .fc-stade-top {
    flex-direction: column;
  }

  .fc-stade-facts {
    align-items: flex-start;
    text-align: left;
  }
}
