/* =============================================================================
   STELLA TEAM CARDS
   Grille de cartes recto (stats FIFA) — verso optionnel non géré ici
   ============================================================================= */

.stella-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.stella-team-card {
  background: transparent;
  border-radius: 10px;
  overflow: visible;
  box-shadow: none;
  min-width: 240px;
  width: 100%;
}

/* --- Scène flip 3D --- */
.stc-scene {
  width: 100%;
  height: 460px;
  min-width: 240px;
  perspective: 1200px;
  cursor: pointer;
}

.stc-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.stc-inner.is-flipped {
  transform: rotateY(180deg);
}

.stc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.stc-recto {
  background: var(--card-bg, var(--stella-basilic-dk, #002A20));
}

.stc-verso {
  background: var(--stella-creme, #FFF3DE);
  transform: rotateY(180deg);
}

/* --- Variantes couleur par univers (classe optionnelle sur .stella-team-card) --- */
.stella-team-card.univers-padel {
  --card-bg: var(--stella-basilic-dk, #002A20);
  --card-foot-bg: var(--stella-terrecuite, #A63E26);
  --card-accent: var(--stella-spritz, #FF4300);
}

.stella-team-card.univers-pilates {
  --card-bg: #1a1a1a;
  --card-foot-bg: var(--stella-terrecuite, #A63E26);
  --card-accent: var(--stella-spritz, #FF4300);
}

.stella-team-card.univers-bistrot {
  --card-bg: var(--stella-basilic-dk, #002A20);
  --card-foot-bg: var(--stella-terrecuite-dk, #723327);
  --card-accent: var(--stella-spritz, #FF4300);
}

/* (couleur appliquée directement sur .stc-recto via --card-bg) */

/* --- Header --- */
.stc-top {
  padding: 10px 14px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stc-lbl {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 243, 222, 0.4);
}

.stc-star {
  color: var(--card-accent, var(--stella-spritz, #FF4300));
  font-size: 13px;
}

/* --- Photo --- */
.stc-photo {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--stella-terrecuite, #A63E26);
}

.stc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.stc-photo-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, var(--card-bg, #002A20) 100%);
}

.stc-badge {
  position: absolute;
  top: 10px;
  right: 11px;
  background: var(--card-accent, var(--stella-spritz, #FF4300));
  color: var(--stella-creme, #FFF3DE);
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

/* --- Identité --- */
.stc-id {
  padding: 7px 14px 4px;
}

.stc-name {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stella-creme, #FFF3DE);
  line-height: 1.05;
}

.stc-role {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-accent, var(--stella-spritz, #FF4300));
  margin-top: 3px;
}

.stc-div {
  height: 1px;
  background: rgba(255, 243, 222, 0.08);
  margin: 6px 14px;
}

/* --- Stats FIFA (gros chiffres) --- */
.stc-fifa {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 6px 14px 12px;
  flex: 1;
}

.stc-fi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.stc-fi-val {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--stella-creme, #FFF3DE);
  line-height: 1;
}

.stc-fi-lbl {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 243, 222, 0.4);
  text-align: center;
}

/* --- Footer --- */
.stc-foot {
  background: var(--card-foot-bg, var(--stella-terrecuite, #A63E26));
  padding: 7px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.stc-fnum {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 10px;
  color: var(--stella-creme, #FFF3DE);
  letter-spacing: 0.08em;
}

.stc-fhint {
  font-family: var(--stella-font-body, 'Inter', sans-serif);
  font-size: 9px;
  color: rgba(255, 243, 222, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =============================================================================
   VERSO — storytelling (citation, bio, tags)
   ============================================================================= */

.stc-vhead {
  background: var(--card-foot-bg, var(--stella-terrecuite, #A63E26));
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.stc-vname {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stella-creme, #FFF3DE);
  line-height: 1.05;
}

.stc-vrole {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 243, 222, 0.7);
  margin-top: 3px;
}

.stc-vnum {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 243, 222, 0.2);
  line-height: 1;
  flex-shrink: 0;
}

.stc-vbody {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.stc-vquote {
  font-family: var(--stella-font-serif, 'DM Serif Display', serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--stella-basilic, #003F2D);
  border-left: 3px solid var(--card-accent, var(--stella-spritz, #FF4300));
  padding-left: 12px;
}

.stc-vbio {
  font-family: var(--stella-font-body, 'Inter', sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--stella-basilic, #003F2D);
  opacity: 0.8;
}

.stc-vtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.stc-vtag {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(0, 63, 45, 0.08);
  color: var(--stella-basilic, #003F2D);
}

.stc-vtag-accent {
  background: rgba(255, 67, 0, 0.1);
  color: var(--stella-terrecuite, #A63E26);
}

.stc-vfoot {
  padding: 10px 16px;
  border-top: 1px solid rgba(0, 63, 45, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.stc-vfclub {
  font-family: var(--stella-font-title, 'Barlow Condensed', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 63, 45, 0.4);
}

.stc-vfstar {
  color: var(--card-accent, var(--stella-spritz, #FF4300));
  font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .stella-team-grid {
    gap: 18px;
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .stella-team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 1.25rem 1rem;
  }

  .stella-team-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .stc-scene {
    height: 500px;
  }

  .stc-photo {
    height: 200px;
  }

  .stc-name {
    font-size: 22px;
  }

  .stc-fi-val {
    font-size: 30px;
  }

  .stc-fifa {
    gap: 10px;
    padding: 8px 16px 14px;
  }
}

@media (max-width: 400px) {
  .stc-photo {
    height: 180px;
  }

  .stc-fifa {
    grid-template-columns: 1fr 1fr;
  }
}