/* === CONTENEUR PRINCIPAL === */
.top100-widget {
  border: 0;
  padding: 70px 0;
  font-family: "Roboto", sans-serif;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    transform: translate(-50%, 0);
    height: 100%;
    background-color: #f8f3f5;
    z-index: -1;
  }
}

/* === FILTRES === */
.cluster-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  background: #fff;
  border-radius: 20px;
  padding: 12px 28px;
  color: #1e293b;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
}

.filter-btn.active {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

/* === TABLEAU === */
.top100-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 12px;
  border: 0;
}

.top100-table thead th {
  font-weight: 700;
  font-size: 13px;
  padding: 10px 10px;
}

.top100-table tbody tr:first-child td {
  border-top: 1px solid #e5e7eb;
}

.top100-table th,
.top100-table td {
  padding: 20px 12px;
  border-bottom: 1px solid #e5e7eb;
  border-left: 0;
  border-right: 0;
}

.top100-table th {
  font-weight: 600;
  border: 0;
}

.top100-table .group-title {
  background: #1e293b0a;
}

.top100-table .hcm-header th {
  font-weight: 800;
  background: #1e293b0a;
}

.top100-table .hcm-header th:first-child {
  background: white;
}

/* === STATUTS === */
.status {
  font-weight: 700;
  font-size: 1.1rem;
}

.status.yes { color: #16a34a; }  /* vert */
.status.no  { color: #c93126; }  /* rouge */

/* === SCROLL WRAPPER === */
.top100-scroll-container {
  position: relative;
  width: 100%;
  background: #fff;
  border: 0;
  padding: 1.5rem;
}

.top100-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  background: #fff;
  transition: mask-image 0.3s ease, -webkit-mask-image 0.3s ease;
  z-index: 11;
}

/* Scrollbar visible & discrète */
.top100-table-wrapper::-webkit-scrollbar {
  height: 8px;
}
.top100-table-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* === EFFETS DE DÉGRADÉ (scroll hints) === */
.top100-table-wrapper.fade-right {
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to right, black calc(100% - 30px), transparent 100%);
}

.top100-table-wrapper.fade-left {
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 30px);
  mask-image: linear-gradient(to right, transparent 0, black 30px);
}

.top100-table-wrapper.fade-left.fade-right {
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
}

/* === CONTRÔLES DE SCROLL (FLÈCHES) === */
.top100-scroll-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1300px;
  margin-top: 10px;
}

.top100-scroll-controls button {
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 5px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.top100-scroll-controls button:hover {
  background: #c93126;
}

.top100-scroll-controls button.hidden {
  opacity: 0;
  pointer-events: none;
}

/* === TITRE === */
.top100-title {
  font-weight: 800;
  margin-bottom: 24px;
}

/* === LEGEND SECTION === */
.top100-legend {
  margin-top: 3rem;
  color: #334155;
  max-width: 1100px;
}

.top100-legend h3 {
  margin-bottom: 1.2rem;
  color: #0f172a;
}

.top100-legend p {
  margin: 0.5rem 0 1rem 0;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legend-list > li {
  margin-bottom: 1rem;
}

.legend-list > li strong {
  font-weight: 700;
}

/* Sous-sections (indentées) */
.legend-sublist {
  margin: 0.5rem 0 1rem 1.5rem;
  padding-left: 1rem;
}

.legend-sublist li {
  margin-bottom: 0.4rem;
  position: relative;
}

.legend-sublist strong {
  color: #1e293b;
  font-weight: 600;
}