/* ============================
   PAGE GÉNÉRALE
   ============================ */

.couleurs_page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

.couleurs_title {
  font-size: 2.4em;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
}

.couleurs_count {
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 25px;
  color: #444;
}

.back_btn {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  font-weight: 600;
  color: #0a66ff;
}

/* ============================
   RECHERCHE + LISTE USERS
   ============================ */

.search_input {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  font-size: 1.1em;
  border: 2px solid #ddd;
  border-radius: 6px;
  margin-bottom: 25px;
  box-sizing: border-box;
}

.users_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user_item {
  padding: 14px 18px;
  background: #f7f7f7;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.user_item:hover {
  background: #eaeaea;
}

.user_name {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
}

/* ============================
   TABLEAUX COULEURS
   ============================ */

.couleur_table {
  margin-bottom: 30px;
}

.couleur_table h2 {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: 700;
}

.couleur_table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.couleur_table th,
.couleur_table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.couleur_table tr:last-child td {
  border-bottom: none;
}

/* Bordure double au-dessus de TRIO */
tr.row_trio {
  border-top: 4px double #000;
}

/* ============================
   BADGES
   ============================ */

.badge_color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #ccc;
}

/* Couleurs simples */
.badge_mauve   { background: #b57edc; }
.badge_orange  { background: #ff8c00; }
.badge_vert    { background: #3cb371; }
.badge_bleu    { background: #1e90ff; }
.badge_blanc   { background: #ffffff; }
.badge_rouge   { background: #ff0000; }
.badge_jaune   { background: #ffd700; }
.badge_rose    { background: #ff69b4; }
.badge_bronze  { background: #cd7f32; }
.badge_argent  { background: #c0c0c0; }
.badge_or      { background: #ffd700; }
.badge_platine { background: #e5e4e2; }

/* Couleurs de catégorie (pour trio) */
.badge_base    { background: #b57edc; }
.badge_bronze  { background: #cd7f32; }
.badge_silver  { background: #c0c0c0; }
.badge_gold    { background: #ffd700; }
.badge_platine { background: #e5e4e2; }

/* ============================
   BOUTONS DE NAVIGATION CATÉGORIES
   ============================ */

.categories_nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  justify-content: center;
}

.cat_btn {
  padding: 8px 14px;
  background: #f0f0f0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  transition: 0.2s;
}

.cat_btn:hover {
  background: #e0e0e0;
}

/* Scroll doux */
html {
  scroll-behavior: smooth;
}

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

@media (max-width: 900px) {
  .couleurs_page { padding: 15px; }
  .couleurs_title { font-size: 2.1em; }
  .search_input { font-size: 1.05em; padding: 10px 14px; }
  .user_name { font-size: 1.15em; }
}

@media (max-width: 600px) {
  .couleurs_page { padding: 10px; margin: 20px auto; }
  .couleurs_title { font-size: 1.8em; }
  .couleurs_count { font-size: 1em; margin-bottom: 20px; }
  .search_input { padding: 10px 12px; font-size: 1em; }
  .user_item { padding: 12px 14px; }
  .user_name { font-size: 1.05em; }

  .categories_nav {
  display: flex;
  flex-wrap: wrap;        /* permet de s'ajuster */
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.cat_btn {
  padding: 6px 10px;      /* plus petit */
  font-size: 0.85em;      /* texte réduit */
  background: #f0f0f0;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  white-space: nowrap;    /* empêche de casser */
  flex: 0 1 auto;         /* autorise la compression */
  transition: 0.2s;
}

.cat_btn:hover {
  background: #e0e0e0;
}

/* Mobile */
@media (max-width: 600px) {
  .cat_btn {
    padding: 5px 8px;     /* encore plus compact */
    font-size: 0.78em;    /* texte plus petit */
  }
}



}
