@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

/* ---------------------------------------------------
   COULEURS
----------------------------------------------------- */
:root {
  --main-bg-color: #1D81A2;
  --second-bg-color: #FFD700;
}

/* ---------------------------------------------------
   GENERAL
----------------------------------------------------- */
body {
  font-family: 'Poppins', sans-serif;
  background: #fafafa;
}

/* ---------------------------------------------------
   TITRES FILTRES
----------------------------------------------------- */
.filter-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
}

.title_box,
.title_box_none {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

/* ---------------------------------------------------
   BASE UNIFIÉE (League + Club + Player)
----------------------------------------------------- */
.dropdown-selected,
.club-input,
.filter-input {
  height: 30px;
  width: 140px;

  border: 1px solid #ced4da;
  border-radius: 3px;

  background: white;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0 6px;

  font-size: 13px;
}

/* hover */
.dropdown-selected:hover,
.club-input:hover,
.filter-input:hover {
  border-color: var(--main-bg-color);
}

/* focus */
.filter-input:focus,
.club-input:focus {
  outline: none;
  border-color: var(--main-bg-color);
}

/* ---------------------------------------------------
   LEAGUE DRPDOWN
----------------------------------------------------- */
.custom-dropdown {
  position: relative;
  width: 140px;
}

.dropdown-selected {
  cursor: pointer;
}

.dropdown-selected::after {
  content: "▼";
  font-size: 9px;
  margin-left: auto;
  opacity: 0.6;
}

/* image */
.dropdown-selected img {
  position: relative;
  top: -1px;
}

/* ---------------------------------------------------
   CLUB AUTOCOMPLETE
----------------------------------------------------- */
.club-autocomplete {
  position: relative;
}

/* ---------------------------------------------------
   MENU (League + Club)
----------------------------------------------------- */
.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;

  background: white;
  border: 1px solid #ced4da;
  border-radius: 3px;

  max-height: 200px;
  overflow-y: auto;

  display: none;
  z-index: 1000;

  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* items */
.dropdown-option {
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.dropdown-option:hover {
  background-color: #e0f0f6;
}

/* ---------------------------------------------------
   TABLE
----------------------------------------------------- */
.tabulator {
  border: 1px solid #ddd;
  font-size: 13px;
}

.tabulator-header {
  background-color: var(--main-bg-color);
  color: white;
  font-weight: bold;
}

.tabulator-cell {
  padding: 6px 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tabulator-row:nth-child(even) {
  background: white;
}

.tabulator-row:hover {
  background: #e0f0f6;
}

/* ---------------------------------------------------
   TEXTE SECONDAIRE
----------------------------------------------------- */
.detail-text {
  font-size: 0.8em;
  color: var(--main-bg-color);
  opacity: 1;
  margin-left: 4px;
  margin:0;
}

/* ---------------------------------------------------
   JAUGE
----------------------------------------------------- */
.price-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-text {
  min-width: 95px;
}

.jauge {
  flex: 0 0 60px;   
  height: 14px;      

  background: transparent;  
}

.jauge-fill {
  height: 100%;
  border-radius: 0;  
}


/* ---------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */
@media (max-width: 527px) {

  .dropdown-selected,
  .club-input,
  .filter-input,
  .custom-dropdown {
    width: 100%;
  }

}

/* ---------------------------------------------------
   FLÈCHE POUR CLUB 
----------------------------------------------------- */
.club-autocomplete {
  position: relative;
}

.club-autocomplete::after {
  content: "▼";
  font-size: 9px;
  opacity: 0.6;

  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);

  pointer-events: none; 
}

/* pour éviter que le texte passe sous la flèche */
.club-input {
  padding-right: 18px;
}

/* ---------------------------------------------------
   CONTAINER
----------------------------------------------------- */
.container {
  max-width: 900px;
  margin: auto;
  background: white;
}

/* ---------------------------------------------------
   HEADER
----------------------------------------------------- */
.row-full {
  background: var(--main-bg-color);
  padding: 10px;
}

.first-title {
  color: white;
  font-size: 14px;
}

.second-title {
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.last-update {
  color: white;
  font-size: 12px;
  text-align: right;
}

/* ---------------------------------------------------
   PANEL FILTRE
----------------------------------------------------- */
.row-filter {
  background: #e8f2f6;
  padding: 10px;
}

.filter-panel {
  background: white;
  padding: 15px; 
  border-radius: 4px;
}

.filtre_box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

/* ---------------------------------------------------
   INFO TEXT
----------------------------------------------------- */
.info-text {
  font-size: 12px;
  margin: 10px 0;
  color: #333;
}

/* ---------------------------------------------------
   TABLE
----------------------------------------------------- */
#table {
  margin-top: 10px;
}
/* ---------------------------------------------------
   FOOTER GLOBAL
----------------------------------------------------- */
.footer-top {
  display: flex;
  justify-content: space-between;

  padding: 14px 20px;
  background: var(--main-bg-color);
  color: white;
}

/* colonnes */
.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;

  justify-content: space-between; 

  height: 70px; 
  font-size: 12px;
}

/* droite alignée */
.footer-right {
  text-align: right;
  align-items: flex-end;
}

/* lignes */
.footer-line {
  line-height: 1.3;
}

/* liens */
.footer-top a {
  color: white;
  text-decoration: none;
}

.footer-top a:hover {
  text-decoration: underline;
}

/* JAUNE uniquement sur "on subscriptionm" */
.link-yellow {
  color: var(--second-bg-color);
  font-weight: 500;
}

.link-yellow:hover {
  opacity: 0.9;
}
/* ---------------------------------------------------
   CLEAR FILTER BUTTON 
----------------------------------------------------- */
.btn-clear {
  height: 30px;
  width: 140px; 

  display: flex;
  justify-content: center;   
  align-items: center;      
  gap: 6px;

  border: none;
  border-radius: 4px;

  background: var(--main-bg-color);
  color: var(--second-bg-color);

  font-size: 13px;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* hover */
.btn-clear:hover {
  background: var(--second-bg-color);
  color: var(--main-bg-color);
}

.btn-clear i {
  font-size: 14px;
  display: flex;
  align-items: center;
}

/* ligne input + bouton */
.filter-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* petite poubelle */
.btn-mini {
  height: 30px;
  width: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 4px;

  background: transparent;
  color: var(--main-bg-color);

  cursor: pointer;
}

/* hover */
.btn-mini:hover {
  background: #e0f0f6;
}

/* footer filtres */
.filter-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* conteneur principal */
.filtre_box {
  display: flex;
  justify-content: space-between;  
  align-items: flex-end;
}

/* zone filtres */
.filters-left {
  display: flex;
  gap: 20px;   
}

/* bouton à droite */
.filters-right {
  display: flex;
  align-items: flex-end;
}

/* espace vertical */
.filter-panel {
  padding: 15px 20px;
}

.fairprice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-icon {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* vraie bulle */
.info-bubble {
  position: fixed;

  background: #333;
  color: white;

  padding: 6px 8px;
  border-radius: 4px;

  font-size: 11px;
  white-space: nowrap;

  display: none;

  z-index: 9999;
}

.fairprice-header {
  display: inline-flex;
  align-items: flex-start; 
  gap: 4px;
}

.info-icon {
  width: 10px;
  height: 10px;
  margin-top: 2px;   
  cursor: pointer;
}

.unit {
  margin-left: 2px;
}

#table {
  margin-top: 10px;
}