/* ==========================================================================
   FOOT VERTICAL — joueur.css v2
   Template fv_joueur · design éditorial avec couleurs club dynamiques
   ========================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.fvj-hero {
  position: relative;
  /* --fvj-rgb et --fvj-dark injectés en PHP depuis couleur_club */
  background:
    radial-gradient(ellipse at top right, rgba(var(--fvj-rgb), 0.28) 0%, transparent 60%),
    linear-gradient(135deg, var(--fvj-dark) 0%, var(--fvj-club) 22%, var(--fv-black) 72%);
  overflow: hidden;
  isolation: isolate;
}

/* Grain subtil */
.fvj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

/* Grand numéro fantôme — Fraunces italic */
.fvj-bignum {
  position: absolute;
  top: -60px;
  right: -40px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(240px, 38vw, 480px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.fvj-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--fv-max-wide);
  margin-inline: auto;
  padding: 80px 2rem 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}

/* Eyebrow */
.fvj-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 600;
  color: rgba(var(--fvj-rgb), 0.9);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.fvj-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* Nom joueur */
.fvj-player-name {
  font-family: var(--fv-font-scoreboard);
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--fv-white);
}

.fvj-player-name .last-name {
  color: var(--fv-green);
  display: block;
}

/* Méta : club / poste / âge / taille */
.fvj-player-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #e2e8f0;
}

.fvj-player-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fvj-player-meta i {
  color: var(--fv-green);
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Carte maillot ──────────────────────────────────────────────────────── */
.fvj-jersey-card {
  aspect-ratio: 4/5;
  max-width: 340px;
  justify-self: end;
  position: relative;
  border-radius: var(--fv-radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--fvj-club) 0%, var(--fvj-dark) 100%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Diagonale style maillot */
.fvj-jersey-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0, transparent 24px,
    rgba(255, 255, 255, 0.04) 24px, rgba(255, 255, 255, 0.04) 26px
  );
  pointer-events: none;
}

.fvj-jersey-card__num {
  font-family: var(--fv-font-scoreboard);
  font-size: clamp(160px, 22vw, 240px);
  color: var(--fv-white);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.fvj-jersey-card__name {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--fv-font-scoreboard);
  font-size: 18px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

/* ── Stats bar ──────────────────────────────────────────────────────────── */
.fvj-stats {
  background: var(--fv-black);
  border-top: 1px solid var(--fv-border);
  border-bottom: 1px solid var(--fv-border);
}

.fvj-stats-inner {
  max-width: var(--fv-max-wide);
  margin-inline: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: repeat(var(--fvj-cols, 4), 1fr);
}

.fvj-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--fv-border);
  animation: fvj-fadeUp 0.6s ease-out both;
}

.fvj-stat:last-child { border-right: none; }
.fvj-stat:nth-child(1) { animation-delay: .35s; }
.fvj-stat:nth-child(2) { animation-delay: .40s; }
.fvj-stat:nth-child(3) { animation-delay: .45s; }
.fvj-stat:nth-child(4) { animation-delay: .50s; }

.fvj-stat__value {
  font-family: var(--fv-font-scoreboard);
  font-size: 40px;
  line-height: 1;
  color: var(--fv-green);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.fvj-stat__value sup,
.fvj-stat__value .unit {
  font-size: 18px;
  color: var(--fv-grey-500);
}

.fvj-stat__label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--fv-grey-500);
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Layout article 2 colonnes ──────────────────────────────────────────── */
.fvj-article-grid {
  max-width: var(--fv-max-wide);
  margin-inline: auto;
  padding: 64px 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

/* ── Lede éditorial (Fraunces italic) ───────────────────────────────────── */
.fvj-lede {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.45;
  color: var(--fv-white);
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--fv-green);
  margin-bottom: 48px;
}

/* ── Sections contenu ───────────────────────────────────────────────────── */
.fvj-section { margin-bottom: 56px; }

.fvj-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fv-border);
  position: relative;
}

.fvj-section-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--fv-green);
}

.fvj-section-head i {
  color: var(--fv-green);
  font-size: 20px;
}

.fvj-section-head h2 {
  font-family: var(--fv-font-scoreboard);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--fv-grey-700);
  font-weight: 400;
  text-transform: uppercase;
}

/* Contenu éditorial (the_content) */
.fvj-prose p {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--fv-grey-900);
  margin-bottom: 16px;
}

.fvj-prose p strong { color: var(--fv-white); font-weight: 600; }

.fvj-prose p em {
  color: var(--fv-green);
  font-style: normal;
  font-weight: 500;
}

.fvj-prose h2 {
  font-family: var(--fv-font-scoreboard);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--fv-grey-700);
  font-weight: 400;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fv-border);
  position: relative;
}

.fvj-prose h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--fv-green);
}

.fvj-prose h3 {
  font-family: var(--fv-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fv-grey-900);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1.75rem 0 .75rem;
}

.fvj-prose blockquote {
  margin: 2rem 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--fv-gold);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--fv-grey-900);
}

/* ── Timeline carrière ──────────────────────────────────────────────────── */
.fvj-timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 8px;
}

.fvj-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--fv-border);
}

.fvj-event {
  position: relative;
  padding-bottom: 28px;
}

.fvj-event:last-child { padding-bottom: 0; }

.fvj-event::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--fv-black);
  border: 2px solid var(--fv-green);
}

.fvj-event__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.fvj-event__year {
  font-family: var(--fv-font-scoreboard);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--fv-green);
}

.fvj-event__tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--fv-grey-500);
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--fv-border);
  border-radius: 12px;
}

.fvj-event__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fv-grey-900);
}

.fvj-event__text strong { color: var(--fv-white); font-weight: 600; }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.fvj-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.fvj-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.fvj-card__title {
  font-family: var(--fv-font-scoreboard);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--fv-grey-700);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fv-border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  text-transform: uppercase;
}

.fvj-card__title i { color: var(--fv-green); font-size: 16px; }

/* Lignes identité */
.fvj-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--fv-border);
}

.fvj-id-row:last-child { border-bottom: none; }

.fvj-id-row__label {
  color: var(--fv-grey-500);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fvj-id-row__value {
  color: var(--fv-white);
  font-weight: 500;
  text-align: right;
}

/* Palmarès */
.fvj-trophy {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--fv-border);
}

.fvj-trophy:last-child { border-bottom: none; }

.fvj-trophy__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--fv-radius-sm);
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fvj-trophy__icon i { font-size: 18px; }

.fvj-trophy__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fv-white);
  margin-bottom: 2px;
}

.fvj-trophy__detail {
  font-size: 12px;
  color: var(--fv-grey-500);
}

/* Carte CDM */
.fvj-cdm-card {
  background:
    linear-gradient(135deg, rgba(var(--fvj-rgb), 0.12) 0%, transparent 100%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--fvj-rgb), 0.28);
  border-radius: var(--fv-radius-md);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.fvj-cdm-tag {
  display: inline-block;
  background: var(--fvj-club);
  color: white;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--fv-radius-sm);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.fvj-cdm-title {
  font-family: var(--fv-font-scoreboard);
  font-size: 20px;
  color: var(--fv-white);
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.fvj-cdm-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fv-grey-900);
  margin-bottom: 16px;
}

.fvj-opponents {
  display: flex;
  gap: 8px;
}

.fvj-opponent {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.fvj-opponent__name {
  display: block;
  font-family: var(--fv-font-scoreboard);
  font-size: 14px;
  color: var(--fv-white);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.fvj-opponent__country {
  font-size: 10px;
  color: var(--fv-grey-500);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Partage */
.fvj-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fvj-share-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--fv-grey-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  font-family: var(--fv-font-body);
  text-decoration: none;
}

.fvj-share-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--fv-white);
  transform: translateY(-1px);
}

.fvj-share-btn--whatsapp {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

.fvj-share-btn--whatsapp:hover {
  background: #15803d;
  border-color: #15803d;
  color: white;
}

.fvj-share-btn i { font-size: 14px; }

/* ── Pied de page article ────────────────────────────────────────────────── */
.fvj-article-foot {
  max-width: var(--fv-max-wide);
  margin-inline: auto;
  padding: 24px 2rem 48px;
  border-top: 1px solid var(--fv-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--fv-grey-500);
  text-transform: uppercase;
}

/* ── Articles connexes ──────────────────────────────────────────────────── */
.fvj-related {
  background: var(--fv-surface);
  border-top: 1px solid var(--fv-border);
  padding: 64px 0;
}

.fvj-related-inner {
  max-width: var(--fv-max-wide);
  margin-inline: auto;
  padding-inline: 2rem;
}

.fvj-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fv-border);
}

.fvj-related-head h2 {
  font-family: var(--fv-font-scoreboard);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--fv-white);
  font-weight: 400;
}

.fvj-related-head .accent { color: var(--fv-green); }

.fvj-related-head a {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--fv-grey-500);
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}

.fvj-related-head a:hover { color: var(--fv-green); }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fvj-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fvj-hero-inner > div {
  animation: fvj-fadeUp 0.7s ease-out both;
}

.fvj-hero-inner > div:nth-child(1) { animation-delay: .05s; }
.fvj-hero-inner > div:nth-child(2) { animation-delay: .2s; }

/* ── Photo joueur dans le hero ──────────────────────────────────────────── */
.fvj-hero-photo {
  justify-self: center;
  align-self: center;
  max-width: 460px;
  width: 100%;
}

.fvj-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--fv-radius-lg);
  border: 1px solid rgba(var(--fvj-rgb), 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ── Chiffres clés sidebar ───────────────────────────────────────────────── */
.fvj-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fvj-kpi {
  text-align: center;
  padding: 14px 10px;
  background: rgba(var(--fvj-rgb), 0.06);
  border: 1px solid rgba(var(--fvj-rgb), 0.2);
  border-radius: var(--fv-radius-sm);
}

.fvj-kpi__value {
  font-family: var(--fv-font-scoreboard);
  font-size: 36px;
  line-height: 1;
  color: var(--fv-green);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.fvj-kpi__label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--fv-grey-500);
  text-transform: uppercase;
  line-height: 1.3;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .fvj-article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 1.5rem;
  }

  .fvj-sidebar {
    position: static;
  }

  .fvj-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .fvj-stat:nth-child(2) { border-right: none; }
  .fvj-stat:nth-child(1),
  .fvj-stat:nth-child(2) { border-bottom: 1px solid var(--fv-border); }

  .fv-related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .fvj-hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 1.5rem 40px;
    gap: 28px;
    align-items: start;
  }

  .fvj-bignum {
    font-size: clamp(160px, 45vw, 280px);
    top: -40px;
    right: -20px;
  }

  .fvj-hero-photo {
    max-width: 280px;
    justify-self: start;
  }

  .fvj-hero-photo img {
    border-radius: var(--fv-radius-md);
  }

  .fvj-jersey-card {
    max-width: 240px;
    justify-self: start;
  }

  .fvj-jersey-card__num { font-size: clamp(120px, 32vw, 180px); }

  .fvj-player-name { font-size: clamp(56px, 14vw, 88px); }

  .fvj-stats-inner { grid-template-columns: repeat(2, 1fr); }

  .fvj-stat { padding: 20px 16px; }
  .fvj-stat__value { font-size: 32px; }

  .fvj-lede { font-size: 18px; padding-left: 18px; }

  .fvj-article-foot { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .fvj-stats-inner { grid-template-columns: 1fr 1fr; }
}
