/* =============================================================================
   STELLA TEAM CARDS — plugin stella-team-card
   Classes générées par le shortcode [stella_equipe]
   Valeurs hex directes (pas de var() — variables thème non accessibles depuis plugin)
   basilic #003F2D | basilic-dk #002A20 | creme #FFF3DE | spritz #FF4300
   terre #A63E26   | terre-dk #723327
   ============================================================================= */

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

/* --- Carte --- */
.stc-carte {
    background: transparent;
    border-radius: 10px;
    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);
}

/* =============================================================================
   RECTO
   ============================================================================= */

.stc-recto {
    background: #002A20; /* basilic-dk par défaut */
}

/* Variantes par univers */
.stc-carte[data-univers="societe"] .stc-recto { background: #002A20; }
.stc-carte[data-univers="padel"]   .stc-recto { background: #002A20; }
.stc-carte[data-univers="pilates"] .stc-recto { background: #1a1a1a; }
.stc-carte[data-univers="bistrot"] .stc-recto { background: #002A20; }

/* Couleur pied de carte par univers */
.stc-carte[data-univers="societe"] .stc-pied { background: #A63E26; }
.stc-carte[data-univers="padel"]   .stc-pied { background: #A63E26; }
.stc-carte[data-univers="pilates"] .stc-pied { background: #A63E26; }
.stc-carte[data-univers="bistrot"] .stc-pied { background: #723327; }

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

.stc-lbl {
    font-family: '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: #FF4300;
    font-size: 13px;
}

/* --- Photo --- */
.stc-photo {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    flex-shrink: 0;
    background: #A63E26;
    background-size: cover;
    background-position: top center;
}

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

.stc-photo--vide {
    background: #002A20;
}

/* Overlay dégradé photo → fond */
.stc-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, #002A20 100%);
    pointer-events: none;
}

/* Numéro #01 #02... */
.stc-numero {
    position: absolute;
    top: 10px;
    left: 11px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 243, 222, 0.6);
}

/* Univers badge */
.stc-univers-badge {
    position: absolute;
    top: 10px;
    right: 11px;
    background: #FF4300;
    color: #FFF3DE;
    font-family: '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-recto__infos {
    padding: 7px 14px 4px;
}

.stc-nom {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFF3DE;
    line-height: 1.05;
    margin: 0;
}

.stc-poste {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF4300;
    margin: 3px 0 0 0;
}

.stc-univers {
    display: none; /* affiché via badge en position absolue sur la photo */
}

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

/* --- Stats FIFA grille 3×2 --- */
.stc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 6px 14px 12px;
    flex: 1;
}

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

.stc-stat__val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFF3DE;
    line-height: 1;
}

.stc-stat__label {
    font-family: '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;
}

/* --- Pied recto --- */
.stc-pied {
    background: #A63E26;
    padding: 7px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.stc-pied__num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    color: #FFF3DE;
    letter-spacing: 0.08em;
}

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

/* =============================================================================
   VERSO
   ============================================================================= */

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

.stc-verso__entete {
    background: #A63E26;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Variante pied verso par univers */
.stc-carte[data-univers="bistrot"] .stc-verso__entete { background: #723327; }

.stc-verso__nom {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFF3DE;
    line-height: 1.05;
    margin: 0;
}

.stc-verso__poste {
    font-family: '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: 3px 0 0 0;
}

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

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

.stc-quote {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    color: #003F2D;
    border-left: 3px solid #FF4300;
    padding-left: 12px;
    margin: 0;
}

.stc-bio {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #003F2D;
    opacity: 0.8;
    margin: 0;
}

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

.stc-tag {
    font-family: '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: #003F2D;
}

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

.stc-verso__pied {
    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-verso__club {
    font-family: '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-verso__star {
    color: #FF4300;
    font-size: 13px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 980px) {
    .stc-grille {
        gap: 18px;
        padding: 1.5rem;
    }
}

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

    .stc-carte {
        max-width: 360px;
        margin: 0 auto;
    }

    .stc-scene {
        height: 500px;
    }

    .stc-photo {
        height: 200px;
    }

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

    .stc-stat__val {
        font-size: 30px;
    }

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

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

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