@charset "utf-8";
/* Styles de base et réinitialisation */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333333;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Structure principale verrouillée à 990px */
.stats-container {
    width: 100%;
    max-width: 990px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e1e4e8;
}

/* En-tête de la ligue */
.stats-header {
    background: linear-gradient(135deg, #e6ecf2 0%, #f0f4f8 100%);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d0d7de;
}

.logo-area {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 22px;
    font-weight: 900;
    color: #1b2735;
    letter-spacing: -0.5px;
    border-right: 2px solid #b3c0ce;
    padding-right: 14px;
}

.title-text {
    font-size: 16px;
    font-weight: 700;
    color: #4a5568;
    letter-spacing: 0.5px;
}

.sub-logo {
    background-color: #cc0000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Section des menus déroulants (Filtres) */
.filters-section {
    background-color: #fafbfc;
    padding: 7px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 2px solid #d0d7de;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 110px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: #57606a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    color: #24292f;
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.filter-group select:focus {
    border-color: #0969da;
}

.search-action-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
/* Bouton de recherche épuré */
.btn-search {
    background-color: #0969da; /* Bleu signature accent */
    color: #ffffff;
    border: 1px solid rgba(27, 31, 36, 0.15);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1);
    transition: background-color 0.15s cubic-bezier(0.3, 0, 0.5, 1);
}

.btn-search:hover {
    background-color: #0c5bc6;
}

.btn-search:active {
    background-color: #0a4fa9;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* Remplacement de la loupe textuelle via code CSS sécurisé */
.search-icon::before {
    content: "\26B2"; /* Code universel sécurisé pour la loupe */
    font-size: 14px;
    display: inline-block;
    transform: rotate(-45deg); /* Aligne la loupe vers la droite */
}
/* Zone de défilement horizontal si débordement de colonnes */
.table-wrapper {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
}

/* En-têtes de colonnes */
.stats-table th {
    background-color: #f6f8fa;
    color: #57606a;
    font-weight: 600;
    padding: 4px 3px;
    border-bottom: 1px solid #d0d7de;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
th.sortable {
    position: relative;
    padding-right: 20px !important; /* Laisse la place pour la flèche */
    user-select: none;
}

th.sortable::after {
    content: " ↕";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #b3c0ce;
    font-size: 10px;
    opacity: 1;
}

th.sortable.asc::after {
    content: " ↑";
    color: #0969da;
    opacity: 1;
}

th.sortable.desc::after {
    content: " ↓";
    color: #0969da;
    opacity: 1;
}

th.sortable:hover {
    background-color: #eaeef2 !important;
    color: #24292f;
}
th.sortable .highlight-header { color: #0969da; font-weight:800;}

/* Alignements spécifiques des headers */
.stats-table th.col-stat {
    text-align: right;
}
.stats-table th.col-time {
    text-align: center;
}

/* Lignes du tableau */
.stats-table tbody tr {
    border-bottom: 1px solid #eff1f3;
    transition: background-color 0.1s ease;
}

.stats-table tbody tr:hover {
    background-color: #f2f7fc;
}

.stats-table td {
    padding: 4px 3px;
    vertical-align: middle;
}

/* Configuration des cellules */
.col-rank { width: 35px; text-align: center; }
.rank-cell { text-align: center; color: #57606a; font-weight: 600; }

.col-avatar { width: 30px; }
.avatar-cell { width: 45px; 
    padding-right: 0 !important; 
    text-align: center;
	}
	
.avatar-placeholder { 
    width: 42px; 
    height: 42px; 
    background-color: #e1e4e8; 
    border-radius: 50%; 
    border: 1px solid #d0d7de; 
    overflow: hidden; /* Obligatoire : coupe tout ce qui dépasse du rond */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Règle à ajouter pour cibler l'image à l'intérieur du conteneur */
.avatar-placeholder img {
    width: 60px;
    height: 60px;
    object-fit: cover; /* Conserve les proportions de la photo */
    object-position: center 20%; /* Centre le visage légèrement vers le haut */
    transform: scale(1.35); /* Ajustez cette valeur pour zoomer plus (ex: 1.45) ou moins */
}

.player-cell { color: #24292f; }
.team-cell { font-weight: 500; color: #444950; font-size: 12px; }
.pays-cell { display: flex;
  flex-direction: column;  /* Keeps elements stacked vertically */
  align-items: center;     /* Centers the image horizontally */
  justify-content: center;
   width: 50px; text-align: center; }
.pos-cell { color: #57606a; }

/* Cellules numériques */
.stat-cell {
    text-align: left;
    font-variant-numeric: tabular-nums;
}
.time-cell {
    text-align: left;
    font-variant-numeric: tabular-nums;
    color: #444950;
}

/* Classes utilitaires */
.text-center { text-align: center !important; }
.font-bold { font-weight: 700; }
.text-success { color: #1a7f37; font-weight: 600; }
.text-fail { color: #e1393e; font-weight: 600; }

/* Mise en valeur de la colonne PTS */
.text-primary {
    color: #0969da;
    font-size: 14px;
}
