/* Tableau des références du Top : contenu disponible sans JavaScript. */
.harry-top-comparison {
  margin: 0 0 3rem;
  padding: 2.5rem 0;
  border-top: 2px dashed var(--harry-border-dotted, #DDE4E5);
  border-bottom: 2px dashed var(--harry-border-dotted, #DDE4E5);
}

.harry-top-comparison .harry-section-title {
  margin-top: 0;
}

.harry-top-comparison__intro,
.harry-top-comparison__note {
  max-width: none;
  color: var(--harry-text-muted, #6D7375);
  font-size: var(--harry-font-description, .875rem);
  line-height: 1.6;
}

.harry-top-comparison__intro { margin: 0 0 1.5rem; }
.harry-top-comparison__note { margin: .875rem 0 0; }

.harry-top-comparison__scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--harry-border-dotted, #DDE4E5);
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--harry-brand-teal, #007C78) var(--harry-surface-muted, #E7ECEC);
}

.harry-top-comparison__scroll:focus-visible {
  outline: 3px solid var(--harry-accent-yellow, #F4CC58);
  outline-offset: 4px;
}

.harry-top-comparison__table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--harry-text-main, #2D3032);
  font-family: inherit;
  font-size: var(--harry-font-description, .875rem);
  line-height: 1.45;
}

.harry-top-comparison__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.harry-top-comparison__table th,
.harry-top-comparison__table td {
  min-width: 160px;
  padding: .875rem .75rem;
  border: 0;
  border-bottom: 1px solid var(--harry-border-dotted, #DDE4E5);
  background: var(--harry-white, #fff);
  text-align: center;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.harry-top-comparison__table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 200px;
  min-width: 200px;
  text-align: left;
  font-weight: 500;
  box-shadow: 1px 0 0 var(--harry-border-dotted, #DDE4E5);
}

.harry-top-comparison__table thead th {
  vertical-align: middle;
  font-weight: 600;
}

.harry-top-comparison__table thead .harry-top-comparison__product {
  vertical-align: top;
}

.harry-top-comparison__product a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  color: inherit;
  text-decoration: none;
}

.harry-top-comparison__product a:hover .harry-top-comparison__reference {
  color: var(--harry-brand-teal, #007C78);
  text-decoration: underline;
}

.harry-top-comparison__product a:focus-visible {
  outline: 3px solid var(--harry-accent-yellow, #F4CC58);
  outline-offset: 4px;
  border-radius: 4px;
}

.harry-top-comparison__product img {
  display: block;
  width: 72px;
  height: 88px;
  object-fit: contain;
}

.harry-top-comparison__rank {
  color: var(--harry-brand-teal, #007C78);
  font-size: var(--harry-font-meta, .75rem);
  font-weight: 700;
}

.harry-top-comparison__brand { font-weight: 700; }
.harry-top-comparison__reference { font-weight: 500; }

.harry-top-comparison__meta {
  display: block;
  margin-top: .3rem;
  color: var(--harry-text-muted, #6D7375);
  font-size: var(--harry-font-meta, .75rem);
  font-weight: 400;
}

.harry-top-comparison__table .harry-top-comparison__median {
  background: var(--harry-surface-soft, #FAFCFC);
}

.harry-top-comparison__table .harry-top-comparison__best {
  color: var(--harry-brand-teal, #007C78);
}

.harry-top-comparison__best strong { font-weight: 700; }

.harry-top-comparison__table .harry-top-comparison__group th {
  position: static;
  padding: .6rem .75rem;
  background: var(--harry-surface-soft, #FAFCFC);
  text-align: left;
  font-weight: 700;
  box-shadow: none;
}

.harry-top-comparison__table tbody:last-child tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 868px) {
  .harry-top-comparison {
    margin-bottom: 2rem;
    padding: 2rem 0;
  }

  .harry-top-comparison__table tr > :first-child {
    width: 132px;
    min-width: 132px;
  }

  /* Le fond de la ligne reste continu ; son intitulé suit la colonne fixe. */
  .harry-top-comparison__group-label {
    position: sticky;
    left: .625rem;
    display: inline-block;
  }

  .harry-top-comparison__table th,
  .harry-top-comparison__table td {
    min-width: 164px;
    padding: .75rem .625rem;
  }
}
