h1 {
    text-align: center;
    margin-bottom: 10px;
}

.controls {
    text-align: center;
    font-size: 13px;
}

.controls input[type="range"] {
    width: 150px;
}

.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 30px 0 5px 0 ;
    background: #222;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tax-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tax-wrapper label {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#taxSlider {
    width: 150px;
    accent-color: #2d80ff;
    background-color: #1a1a1a;
    border: none;
    border-radius: 10px;
    height: 6px;
    outline: none;
    transition: 0.2s;
}

#taxSlider:hover {
    box-shadow: 0 0 6px #2d80ff88;
}

#taxInput {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #111;
    color: #eee;
    font-size: 14px;
    text-align: center;
}

.filters {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filters section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tier-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tier-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background: #222;
}

thead
{

}

th, td {
    padding: 4px 6px;
    border: 1px solid #333;
    text-align: center;
}

th {
    background-color: #333;
    color: #fff;
    cursor: pointer;
    position: sticky;
    top:208px;
    height: 40px;
}

.tier-T2 { color: #ffffff; }
.tier-T3 { color: #00ff00; }
.tier-T4 { color: #0088ff; }
.tier-T5 { color: #aa00ff; }
.tier-T6 { color: #ff8800; }
.tier-T7 { color: #ff4444; }
.tier-T8 { color: #ffff00; }


.filter-btn {
	background-color: #222;
	color: #ccc;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.filter-btn:hover {
	background-color: #2d80ff33;
	border-color: #2d80ff;
	color: #fff;
}

.filter-btn.active {
	background-color: #2d80ff;
	color: #fff;
	border-color: #2d80ff;
	box-shadow: 0 0 6px #2d80ff88;
}

.tier-filters-grouped {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-top: 10px;
}

.tier-block {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 10px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 6px #00000055;
}

.tier-label {
  font-weight: 600;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tier-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tier-filters-dropdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.tier-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tier-toggle {
  background-color: #1a1a1a;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
}

.tier-toggle:hover {
  background-color: #2d80ff;
  color: white;
  box-shadow: 0 0 6px #2d80ff88;
}

.tier-toggle.active {
  background-color: #2d80ff;
  color: #fff;
  border-color: #2d80ff;
  box-shadow: 0 0 6px #2d80ff88;
}


.tier-sub {
  display: none; /* caché par défaut */
  flex-direction: row; /* ✅ horizontal */
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tier-group.show .tier-sub {
  display: flex !important;
}

.tier-filters-dropdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.tier-submenu-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 10px;
  background-color: transparent;
  border: none;
}

/* Quand on a des sous-tiers à afficher */
.tier-submenu-bar.visible {
  padding: 8px;
  max-height: 200px;
  opacity: 1;
}


.alert-warning {
    background: rgba(255, 50, 50, 0.8);
    border: 1px solid rgba(255, 100, 100, 0.2);
    color: #fff;
    padding: 10px 16px;
    margin: 12px auto;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    max-width: 800px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(255, 50, 50, 0.15);
}
