/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
  }
  
  /* Conteneur principal */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  /* Header */
  header {
    text-align: center;
    margin-bottom: 20px;
  }
  
  #page-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  #page-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
  }
  
  /* Formulaire de filtres */
  .filter-form {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  
  .search-bar {
    padding: 8px;
    width: 200px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
  }
  
  .select-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 5px;
  }
  
  .select-filter {
    padding: 8px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
  }
  
  /* Boutons */
  .filter-submit,
  .reset-button {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    border-radius: 3px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .filter-submit:hover,
  .reset-button:hover {
    background-color: #0056b3;
  }
  
  /* Disposition principale : deux colonnes */
  main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  /* Colonne gauche : liste des champions récents */
  .champion-list {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
  }
  
  .champion-list h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .role-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: center;
  }
  
  .role-button2 {
    padding: 5px;
    border: none;
    border-radius: 3px;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .role-button2.active {
    background-color: #007bff;
    color: #fff;
  }
  
  .role-button2 img {
    width: 20px;
    height: 20px;
  }
  
  /* Grille des champions */
  .champion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .champion {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-align: center;
  }
  
  .champion:hover {
    transform: scale(1.05);
    background-color: #e9e9e9;
  }
  
  .champion.selected {
    background-color: #007bff;
    color: #fff;
  }
  
  /* Colonne droite : tableau principal */
  .champion-table {
    flex: 2;
    min-width: 500px;
    overflow-x: auto;
  }
  
  .champion-table .filters {
    margin-bottom: 10px;
    text-align: center;
  }
  
  .filter-button {
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 3px;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .filter-button.active {
    background-color: #007bff;
    color: #fff;
  }
  
  .champion-table table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .champion-table th,
  .champion-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
  }
  
  .champion-table th {
    background-color: #f2f2f2;
    cursor: pointer;
    user-select: none;
  }
  
  .sort-asc::after {
    content: " ▲";
  }
  
  .sort-desc::after {
    content: " ▼";
  }
  
  /* Classes de coloration pour le winrate */
  .winrate-5-above {
    background-color: #c8e6c9; /* vert clair */
  }
  
  .winrate-2-above {
    background-color: #dcedc8; /* vert très clair */
  }
  
  .winrate-around {
    background-color: #fff9c4; /* jaune pâle */
  }
  
  .winrate-2-below {
    background-color: #ffccbc; /* orange clair */
  }
  
  .winrate-5-below {
    background-color: #ffcdd2; /* rouge clair */
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    main {
      flex-direction: column;
    }
  }
  