/* =========================
   Carte Classement
========================= */

/* --- Objectif Card --- */
.athlete-profile-objective-card-para {
    background-color: #faf3fd !important;
    border: 1px solid var(--ffbad-blue) !important;
    border-radius: 6px !important;
    padding: 0.8rem 0.8rem !important;
    box-sizing: border-box !important;

    overflow-x: auto !important;   /* scroll horizontal */
    overflow-y: hidden !important; /* pas de scroll vertical */
    max-width: 100% !important;
}

.criteria-cards-container {
    display: flex !important;
    flex-wrap: wrap !important;              /* 🔑 retour à la ligne */
    gap: 2rem !important;
    justify-content: center !important;
    align-items: stretch !important;         /* cartes de même hauteur */
    margin-top: 0.5rem !important;
}


.criteria-card-athlete-profile {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0.6rem 0.8rem !important;
    background: #FFFFFF !important;
    border-radius: 6px !important;
    min-width: 120px !important;
    max-width: 220px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
}

.criteria-card-athlete-profile.active {
    border: 2px solid var(--ffbad-blue-light);
    box-shadow: 0 4px 10px rgba(47, 128, 237, 0.25);
    transform: translateY(-2px);
}

.criteria-card-athlete-profile-large {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0.6rem 0.8rem !important;
    background: #FFFFFF !important;
    border-radius: 6px !important;
    min-width: 200px !important;
    max-width: 220px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
}

.criteria-card-athlete-profile-large.active {
    border: 2px solid var(--ffbad-blue-light);
    box-shadow: 0 4px 10px rgba(47, 128, 237, 0.25);
    transform: translateY(-2px);
}

.criteria-card-title {
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: var(--ffbad-blue-light) !important;
    margin-bottom: 0.25rem !important;
}

.criteria-card-target {
    font-size: 11px !important;
    font-weight: normal;
    color: var(--ffbad-blue-light) !important;
}

.criteria-card-value {
    font-size: 14px !important;
    font-weight: bold;
    color: var(--ffbad-blue) !important;
}

.criteria-card-sub-value {
    font-size: 14px !important;
    font-weight: bold;
    color: var(--ffbad-blue) !important;
    margin-top: 0.2rem !important;
    margin-bottom : 0.4rem !important;
}

.criteria-card-value-large {
    font-size: 16px !important;
    font-weight: bold;
    color: var(--ffbad-blue) !important;
}
.criteria-card-weeks {
    font-size: 12px;
    font-weight: bold;
    color: var(--ffbad-blue, #101F69);
    margin-top: 2px;
}

.criteria-card-icon {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.criteria-card-bar {
    width: 70%;
    height: 8px;
    margin: 6px auto 0 auto;
    border-radius: 6px;
}

.criteria-card-sub-title {
    font-size: 13px !important;
    font-weight: bold !important;
    color: var(--ffbad-blue-light) !important;
    margin-bottom: 0.25rem !important;
}

.criteria-card-sub-rule {
    font-size: 10px !important;
    font-weight: normal;
    text-align : center;
    color: var(--ffbad-blue-light) !important;
}

.criteria-card-star {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* ================================
   LISTE ADVERSAIRES PARA
   ================================ */

.athlete-profile-opponents-para-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

/* Ligne adversaire */
.athlete-profile-opponents-para-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #ffffff !important;
    font-size: 12px !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    gap: 1rem !important;
}

/* Nom adversaire (ellipsis) */
.athlete-profile-opponents-para-name {
    flex: 1 1 auto !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-right: 0.6rem !important;
}

/* Bloc stats V / D */
.athlete-profile-opponents-para-stats {
    display: flex !important;
    gap: 0.5rem !important;
    min-width: 60px !important;
    justify-content: center !important;
}

/* Victoires */
.athlete-profile-opponents-para-win {
    color: #4CAF50 !important;
    font-weight: bold !important;
}

/* Défaites */
.athlete-profile-opponents-para-loss {
    color: var(--ffbad-red, #D52B1E) !important;
    font-weight: bold !important;
}

/* Icône à droite */
.athlete-profile-opponents-para-icon {
    width: 26px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Icônes image */
.athlete-profile-opponents-para-icon-img {
    width: 18px !important;
    height: 18px !important;
}

/* Tiret si aucun match */
.athlete-profile-opponents-para-icon-dash {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--ffbad-blue, #101F69) !important;
}

/* Cas vide */
.athlete-profile-opponents-para-empty {
    text-align: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: var(--ffbad-blue, #101F69) !important;
}

/* ===== LISTE ===== */
.athlete-profile-funding-para-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ===== LIGNE ===== */
.athlete-profile-funding-para-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid rgb(112, 118, 172, 0.08);
}

/* ===== TEXTE GAUCHE ===== */
.athlete-profile-funding-para-text {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

/* Section (haut) */
.athlete-profile-funding-para-section {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Descriptif (bas) */
.athlete-profile-funding-para-descriptif {
    font-size: 11px;
    color: rgb(112, 118, 172);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== COST ===== */
.athlete-profile-funding-para-cost {
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* ===== TOTAL ===== */
.athlete-profile-funding-para-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding: 1rem 1rem;
    background-color: var(--ffbad-red, #D52B1E)29;
    border: 2px solid var(--ffbad-red, #D52B1E);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.athlete-profile-funding-para-total-label {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.athlete-profile-funding-para-total-cost {
    font-size: 14px;
    font-weight: bold;
}