/* ============================================================
   TABLEAU FICHE TECHNIQUE — materiel-gamer.com
   Gaming dark theme — rouge accent #e94560 / fond sombre
   ============================================================ */

/* ── Spec Table Block ─────────────────────────────────────── */
.pr-spec-table {
  margin: 32px 0;
  background: #16213e;
  border: 1px solid rgba(233, 69, 96, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.pr-spec-table__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid #e94560;
}

.pr-spec-table__header svg {
  color: #e94560;
  flex-shrink: 0;
}

.pr-spec-table__title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.pr-spec-table__body {
  padding: 0;
}

.pr-spec-table__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 150ms ease;
}

.pr-spec-table__row:last-child {
  border-bottom: none;
}

.pr-spec-table__row:hover {
  background: rgba(233, 69, 96, 0.06);
}

.pr-spec-table__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 130px;
  flex-shrink: 0;
}

.pr-spec-table__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e6edf3;
  flex: 1;
}

.pr-spec-table__value a {
  color: #e94560;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Note globale dans le tableau ─────────────────────────── */
.pr-spec-note {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pr-spec-note__score {
  font-size: 1.375rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 46px;
  line-height: 1;
}

.pr-spec-note__track-wrap {
  flex: 1;
}

.pr-spec-note__track {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.pr-spec-note__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e94560 0%, #f97316 50%, #22c55e 100%);
  background-size: 200% 100%;
  /* position the gradient so low scores = red, high = green */
  transition: width 800ms cubic-bezier(.4,0,.2,1);
}

.pr-spec-note__label {
  font-size: 0.75rem;
  color: #8b949e;
  margin-top: 4px;
}

/* ── Rating Bar (standalone sections) ────────────────────── */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.rating-bar__label {
  font-size: 0.875rem;
  color: #8b949e;
  min-width: 140px;
  flex-shrink: 0;
}

.rating-bar__track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e94560 0%, #f97316 50%, #22c55e 100%);
  transition: width 700ms cubic-bezier(.4,0,.2,1);
}

.rating-bar__value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 36px;
  text-align: right;
}

/* ── Bouton Amazon dans le tableau ────────────────────────── */
.pr-spec-table__amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #FF9900;
  color: #111111;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 4px 14px rgba(255,153,0,0.35);
  white-space: nowrap;
}

.pr-spec-table__amazon:hover {
  background: #e68900;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,153,0,0.45);
  color: #111111 !important;
}

.pr-spec-table__amazon svg {
  flex-shrink: 0;
}

/* ── Bouton Amazon Sticky (mobile) ────────────────────────── */
.pr-sticky-amazon {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 16px;
  background: #1a1a2e;
  border-top: 2px solid #FF9900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.pr-sticky-amazon__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #FF9900;
  color: #111111;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 150ms ease;
  box-shadow: 0 4px 14px rgba(255,153,0,0.4);
}

.pr-sticky-amazon__btn:hover {
  background: #e68900;
  color: #111111 !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .pr-spec-table__header {
    padding: 14px 16px;
  }

  .pr-spec-table__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px;
  }

  .pr-spec-table__label {
    min-width: unset;
    font-size: 0.75rem;
  }

  .pr-spec-note {
    flex-direction: row;
  }

  .rating-bar {
    flex-wrap: wrap;
  }

  .rating-bar__label {
    min-width: 100%;
    margin-bottom: 4px;
  }

  /* Afficher le sticky sur mobile */
  .pr-sticky-amazon {
    display: block;
  }

  /* Padding bas pour éviter que le contenu soit masqué */
  body.has-sticky-amazon {
    padding-bottom: 80px;
  }
}

/* ── Mode sombre : alignement ─────────────────────────────── */
[data-theme="dark"] .pr-spec-table,
.pr-spec-table {
  background: #16213e;
}

[data-theme="light"] .pr-spec-table {
  background: #1a1a2e;
}
