/* ==========================================================================
   Hub Pages — Config PC / Peripheriques / Composants
   Reuses hp- design tokens from homepage.css
   Prefix: hub-
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --hp-accent: #6366f1;
  --hp-accent-hover: #8b5cf6;
  --hp-accent-light: rgba(99,102,241,0.04);
}
body[data-theme="dark"] {
  --hp-bg-primary: #0F172A;
  --hp-bg-secondary: #1E293B;
  --hp-text-primary: #f1f5f9;
  --hp-text-secondary: #94a3b8;
  --hp-text-muted: #64748b;
  --hp-border: #334155;
  --hp-accent-light: rgba(99,102,241,0.15);
}

/* ---- Hero ---- */
.hub-hero {
  position: relative;
  background: var(--hp-bg-dark, #0F172A);
  overflow: hidden;
  padding: 140px 0 70px;
  text-align: center;
}
.hub-hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hub-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 14px;
  position: relative;
  line-height: 1.15;
}
.hub-hero__title span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hub-hero__subtitle {
  color: #94a3b8;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  line-height: 1.6;
}

/* ---- Section ---- */
.hub-section {
  padding: 70px 0;
  background: var(--hp-bg-primary, #fff);
}
.hub-section--alt {
  background: var(--hp-bg-secondary, #f8fafc);
}
.hub-section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--hp-text-primary, #0f172a);
  text-align: center;
  margin-bottom: 12px;
}
.hub-section__subtitle {
  color: var(--hp-text-secondary, #64748b);
  text-align: center;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---- Config PC Grid (8 tiers) ---- */
.hub-configs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hub-config-card {
  background: var(--hp-bg-primary, #fff);
  border: 1px solid var(--hp-border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--hp-text-primary, #0f172a);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--hp-shadow, 0 1px 3px rgba(0,0,0,0.1));
}
.hub-config-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow-lg, 0 10px 15px rgba(0,0,0,0.1));
  text-decoration: none;
  color: var(--hp-text-primary, #0f172a);
}
.hub-config-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--hp-bg-secondary, #f8fafc);
  padding: 20px;
}
.hub-config-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-config-card__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--hp-accent, #2563EB);
  margin-bottom: 4px;
}
body[data-theme="dark"] .hub-config-card__price {
  color: #60a5fa;
}
.hub-config-card__specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hub-config-card__specs li {
  font-size: 0.85rem;
  color: var(--hp-text-secondary, #64748b);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-config-card__specs li i {
  color: var(--hp-accent, #2563EB);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.hub-config-card__btn {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--hp-transition, 0.25s ease);
}
.hub-config-card__btn:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ---- Category Cards (Peripheriques / Composants) ---- */
.hub-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hub-cat-card {
  background: var(--hp-bg-primary, #fff);
  border: 1px solid var(--hp-border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--hp-text-primary, #0f172a);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--hp-shadow, 0 1px 3px rgba(0,0,0,0.1));
}
.hub-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow-lg, 0 10px 15px rgba(0,0,0,0.1));
  text-decoration: none;
  color: var(--hp-text-primary, #0f172a);
}
.hub-cat-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--hp-bg-secondary, #f8fafc);
  padding: 24px;
}
.hub-cat-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hub-cat-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--hp-text-primary, #0f172a);
}
.hub-cat-card__desc {
  font-size: 0.88rem;
  color: var(--hp-text-secondary, #64748b);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub-cat-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--hp-accent, #2563EB);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--hp-transition, 0.25s ease);
  align-self: flex-start;
}
.hub-cat-card__btn:hover {
  background: var(--hp-accent-hover, #1d4ed8);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

/* ---- Intro text block (for periph/composant pages) ---- */
.hub-intro {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 20px;
  text-align: center;
}
.hub-intro p {
  color: var(--hp-text-secondary, #64748b);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- Dark mode ---- */
body[data-theme="dark"] .hub-config-card,
body[data-theme="dark"] .hub-cat-card {
  background: var(--hp-bg-secondary);
  border-color: var(--hp-border);
}
body[data-theme="dark"] .hub-config-card__img,
body[data-theme="dark"] .hub-cat-card__img {
  background: #0f172a;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hub-configs,
  .hub-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .hub-hero {
    padding: 120px 20px 50px;
  }
  .hub-section {
    padding: 50px 0;
  }
  .hub-configs,
  .hub-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hub-config-card__body,
  .hub-cat-card__body {
    padding: 14px;
  }
  .hub-config-card__price {
    font-size: 1.1rem;
  }
  .hub-cat-card__desc {
    -webkit-line-clamp: 3;
  }
}
@media (max-width: 480px) {
  .hub-configs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hub-categories {
    grid-template-columns: 1fr;
  }
  .hub-config-card__specs li {
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   Sidebar — Shared navigation for config/periph/composant detail pages
   ========================================================================== */
.hub-sidebar {
  background: var(--hp-bg-primary, #fff);
  border: 1px solid var(--hp-border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
.hub-sidebar--desktop {
  position: sticky;
  top: 90px;
  width: 260px;
  flex-shrink: 0;
}
.hub-sidebar--mobile {
  display: none;
  margin: 24px auto;
  max-width: 600px;
}
.hub-sidebar__group {
  border-bottom: 1px solid var(--hp-border, #e2e8f0);
}
.hub-sidebar__group:last-child {
  border-bottom: none;
}
.hub-sidebar__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
  letter-spacing: 0.01em;
}
.hub-sidebar__toggle:focus {
  outline: none;
  box-shadow: none;
}
.hub-sidebar__toggle:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
  color: #6366f1;
}
.hub-sidebar__toggle i:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.1));
  color: #6366f1;
  font-size: 0.75rem;
  border-radius: 8px;
  flex-shrink: 0;
}
.hub-sidebar__arrow {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--hp-text-muted, #94a3b8);
  transition: transform 0.25s ease;
}
.hub-sidebar__group--open .hub-sidebar__arrow {
  transform: rotate(180deg);
}
.hub-sidebar__group--open .hub-sidebar__toggle {
  color: #6366f1;
}
.hub-sidebar__group--open .hub-sidebar__toggle i:first-child {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.hub-sidebar__list {
  list-style: none;
  padding: 0 10px 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.hub-sidebar__group--open .hub-sidebar__list {
  max-height: 500px;
  padding: 0 10px 12px;
}
.hub-sidebar__list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hub-sidebar__list li a:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.06));
  color: #6366f1;
  text-decoration: none;
  transform: translateX(3px);
}
.hub-sidebar__list li a i {
  font-size: 0.7rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.hub-sidebar__list li a:hover i {
  opacity: 1;
  color: #6366f1;
}
/* Active link in sidebar */
.hub-sidebar__list li a.hub-sidebar__link--active {
  background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(139,92,246,0.08));
  color: #6366f1;
  font-weight: 700;
}
.hub-sidebar__list li a.hub-sidebar__link--active i {
  opacity: 1;
  color: #6366f1;
}
body[data-theme="dark"] .hub-sidebar__list li a.hub-sidebar__link--active {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.12));
  color: #a78bfa;
}
body[data-theme="dark"] .hub-sidebar__list li a.hub-sidebar__link--active i {
  color: #a78bfa;
}

/* Sidebar dark mode */
body[data-theme="dark"] .hub-sidebar {
  background: var(--hp-bg-secondary, #1e293b);
  border-color: var(--hp-border, #334155);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.1);
}
body[data-theme="dark"] .hub-sidebar__toggle {
  color: var(--hp-text-primary, #f1f5f9);
}
body[data-theme="dark"] .hub-sidebar__toggle:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  color: #a78bfa;
}
body[data-theme="dark"] .hub-sidebar__toggle i:first-child {
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.14));
  color: #a78bfa;
}
body[data-theme="dark"] .hub-sidebar__group--open .hub-sidebar__toggle i:first-child {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
body[data-theme="dark"] .hub-sidebar__group--open .hub-sidebar__toggle {
  color: #a78bfa;
}
body[data-theme="dark"] .hub-sidebar__list li a {
  color: var(--hp-text-secondary, #94a3b8);
}
body[data-theme="dark"] .hub-sidebar__list li a:hover {
  color: #a78bfa;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.06));
}
body[data-theme="dark"] .hub-sidebar__list li a:hover i {
  color: #a78bfa;
}

/* ==========================================================================
   Detail page layout (config/periph/composant detail with sidebar)
   ========================================================================== */
.hub-detail-layout {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: flex-start;
}
.hub-detail-main {
  flex: 1;
  min-width: 0;
}

/* ---- Modern section banner (replaces .liste-composants) ---- */
.hub-banner {
  background: linear-gradient(135deg, var(--hp-bg-dark, #0F172A), #1e293b);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 40px 0 24px;
  text-align: center;
}
.hub-banner__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}
.hub-banner__sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* ---- Modern table ---- */
.hub-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 12px;
  border: 1px solid var(--hp-border, #e2e8f0);
}
.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hub-table thead th {
  background: var(--hp-bg-secondary, #f8fafc);
  color: var(--hp-accent, #2563EB);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 2px solid var(--hp-border, #e2e8f0);
}
.hub-table tbody td {
  padding: 12px 16px;
  text-align: center;
  color: var(--hp-text-primary, #0f172a);
  border-bottom: 1px solid var(--hp-border, #e2e8f0);
  vertical-align: middle;
}
.hub-table tbody tr:last-child td {
  border-bottom: none;
}
.hub-table tbody tr:hover {
  background: var(--hp-accent-light, rgba(37,99,235,0.04));
}
.hub-table__comp {
  font-weight: 700;
  text-align: left !important;
  white-space: nowrap;
}
.hub-table__discount {
  color: #16a34a;
  font-weight: 700;
}
.hub-table__price {
  font-weight: 700;
}
.hub-table__buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #ff9900;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.hub-table__buy:hover {
  background: #e68a00;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,153,0,0.4);
}

/* Dark mode table */
body[data-theme="dark"] .hub-table-wrap {
  border-color: var(--hp-border, #334155);
}
body[data-theme="dark"] .hub-table thead th {
  background: #0f172a;
  color: #60a5fa;
}
body[data-theme="dark"] .hub-table tbody td {
  color: var(--hp-text-primary, #f1f5f9);
  border-color: var(--hp-border, #334155);
}

/* ---- Cart & total row ---- */
.hub-cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
}
.hub-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff9900, #e68a00);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255,153,0,0.3);
}
.hub-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,153,0,0.4);
  color: #fff;
  text-decoration: none;
}
.hub-cart-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--hp-accent, #2563EB);
}
body[data-theme="dark"] .hub-cart-total {
  color: #60a5fa;
}

/* ---- Intro card (description + image) ---- */
.hub-intro-card {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--hp-bg-secondary, #f8fafc);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}
.hub-intro-card__img {
  flex-shrink: 0;
  width: 180px;
}
.hub-intro-card__img img {
  width: 100%;
  height: auto;
}
.hub-intro-card__text {
  flex: 1;
}
.hub-intro-card__text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hp-text-primary, #0f172a);
  margin: 0 0 16px;
}
.hub-intro-card__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hub-intro-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid var(--hp-accent, #2563EB);
  color: var(--hp-accent, #2563EB);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.hub-intro-card__cta:hover {
  background: var(--hp-accent, #2563EB);
  color: #fff;
  text-decoration: none;
}
body[data-theme="dark"] .hub-intro-card {
  background: #0f172a;
}
body[data-theme="dark"] .hub-intro-card__text p {
  color: var(--hp-text-primary, #f1f5f9);
}

/* ---- YouTube embed ---- */
.hub-video {
  margin: 32px 0;
  text-align: center;
}
.hub-video iframe {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: none;
  box-shadow: var(--hp-shadow-md, 0 4px 6px rgba(0,0,0,0.1));
}

/* ---- FAQ accordion ---- */
.hub-faq {
  margin: 32px 0;
}
.hub-faq__item {
  border: 1px solid var(--hp-border, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.hub-faq__item:hover {
  border-color: var(--hp-accent, #2563EB);
}
.hub-faq__q {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hp-text-primary, #0f172a);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}
.hub-faq__q i {
  color: var(--hp-accent, #2563EB);
  transition: transform 0.2s;
}
.hub-faq__item--open .hub-faq__q i {
  transform: rotate(180deg);
}
.hub-faq__a {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--hp-text-secondary, #64748b);
}
.hub-faq__item--open .hub-faq__a {
  display: block;
}
body[data-theme="dark"] .hub-faq__item {
  border-color: var(--hp-border, #334155);
}
body[data-theme="dark"] .hub-faq__q {
  color: var(--hp-text-primary, #f1f5f9);
}

/* ---- Price disclaimer ---- */
.hub-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--hp-text-muted, #94a3b8);
  margin: 16px 0 32px;
}

/* ==========================================================================
   Legacy class overrides — modernize old config/periph/composant detail
   content when used inside .hub-detail-main
   ========================================================================== */
.hub-detail-main .container-cfg {
  background: var(--hp-bg-secondary, #f8fafc);
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 32px;
}
body[data-theme="dark"] .hub-detail-main .container-cfg {
  background: #0f172a;
}
.hub-detail-main .description_cfg {
  display: flex;
  gap: 28px;
  align-items: center;
}
.hub-detail-main .description_cfg p {
  color: var(--hp-text-primary, #0f172a);
}
body[data-theme="dark"] .hub-detail-main .description_cfg p {
  color: var(--hp-text-primary, #f1f5f9);
}
.hub-detail-main .liste-composants {
  background: linear-gradient(135deg, var(--hp-bg-dark, #0F172A), #1e293b);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0 20px;
  text-align: center;
}
.hub-detail-main .liste-composants h2 {
  font-size: 1.2rem;
  margin: 0;
}
.hub-detail-main .table {
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.9rem;
}
.hub-detail-main .table thead th {
  background: var(--hp-bg-secondary, #f8fafc);
  color: var(--hp-accent, #2563EB);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--hp-border, #e2e8f0);
}
body[data-theme="dark"] .hub-detail-main .table thead th {
  background: #0f172a;
  color: #60a5fa;
}
.hub-detail-main .table tbody td {
  color: var(--hp-text-primary, #0f172a);
  vertical-align: middle;
}
body[data-theme="dark"] .hub-detail-main .table tbody td {
  color: var(--hp-text-primary, #f1f5f9);
}
.hub-detail-main .table tbody tr:hover {
  background: var(--hp-accent-light, rgba(37,99,235,0.04));
}
.hub-detail-main .button-commander {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #ff9900;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
}
.hub-detail-main .button-commander:hover {
  background: #e68a00;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,153,0,0.4);
}
.hub-detail-main .btn-order-amazon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff9900, #e68a00);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(255,153,0,0.3);
  transition: all 0.2s;
  border: none;
}
.hub-detail-main .btn-order-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,153,0,0.4);
  color: #fff;
  background: linear-gradient(135deg, #e68a00, #cc7a00);
}
.hub-detail-main .prix_config {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--hp-accent, #2563EB) !important;
}
body[data-theme="dark"] .hub-detail-main .prix_config {
  color: #60a5fa !important;
}
.hub-detail-main .bloc-btn-amazon-prix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
}
.hub-detail-main .lecteur-youtube {
  margin: 28px 0;
}
.hub-detail-main .lecteur-youtube iframe,
.hub-detail-main .video-youtube {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: none;
  box-shadow: var(--hp-shadow-md, 0 4px 6px rgba(0,0,0,0.1));
  height: auto;
}
.hub-detail-main .button-head-cfg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.hub-detail-main .button-head-cfg:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
/* Scroll offset pour header fixe */
#faq-config,
#perf-config,
#config-complete {
  scroll-margin-top: 100px;
}
/* ---- Related configs (next/prev) ---- */
.cfg-related {
  margin: 30px 0 10px;
  padding: 20px;
  background: var(--hp-surface, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--hp-border, #e2e8f0);
}
body[data-theme="dark"] .cfg-related {
  background: var(--hp-surface, #1e293b);
  border-color: var(--hp-border, #334155);
}
.cfg-related__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hp-text-primary, #0f172a);
  margin-bottom: 12px;
}
body[data-theme="dark"] .cfg-related__title {
  color: var(--hp-text-primary, #f1f5f9);
}
.cfg-related__links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cfg-related__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.cfg-related__link:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
@media (max-width: 576px) {
  .cfg-related__links {
    flex-direction: column;
  }
  .cfg-related__link {
    justify-content: center;
  }
}
.hub-detail-main .faq-setup {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
  background: transparent;
}
body[data-theme="dark"] .hub-detail-main .faq-setup {
  background: transparent;
}
/* Section subtitle in H2 headers */
.cfg-section-sub {
  font-size: 0.65em;
  font-weight: 400;
  opacity: 0.8;
}
/* FAQ H3 reset (was H2) */
.hub-detail-main h3.mb-0 {
  margin-bottom: 0;
}
.hub-detail-main .faq-btn-setup {
  font-weight: 600;
  color: #1e293b !important;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
  padding: 14px 18px;
  text-decoration: none !important;
}
.hub-detail-main .faq-btn-setup:focus,
.hub-detail-main .faq-btn-setup:active,
.hub-detail-main .faq-btn-setup.collapsed {
  color: #1e293b !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.hub-detail-main .faq-btn-setup::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  margin-left: auto;
  color: var(--hp-text-muted, #94a3b8);
  transition: transform 0.25s ease;
}
.hub-detail-main .faq-btn-setup:not(.collapsed)::after {
  transform: rotate(180deg);
}
body[data-theme="dark"] .hub-detail-main .faq-btn-setup,
body[data-theme="dark"] .hub-detail-main .faq-btn-setup:focus,
body[data-theme="dark"] .hub-detail-main .faq-btn-setup:active,
body[data-theme="dark"] .hub-detail-main .faq-btn-setup.collapsed {
  color: #f1f5f9 !important;
}
.hub-detail-main .faq-btn-setup:hover {
  color: #6366f1 !important;
  text-decoration: none;
}
body[data-theme="dark"] .hub-detail-main .faq-btn-setup:hover {
  color: #a78bfa !important;
}
.hub-detail-main .card {
  border: 1px solid var(--hp-border, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--hp-bg-primary, #fff);
}
.hub-detail-main .card:hover {
  border-color: var(--hp-accent, #2563EB);
  box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}
.hub-detail-main .card:has(.collapse.show),
.hub-detail-main .card:has(.collapsing) {
  border-left: 3px solid var(--hp-accent, #2563EB);
}
body[data-theme="dark"] .hub-detail-main .card {
  background: var(--hp-bg-secondary, #1e293b);
  border-color: var(--hp-border, #334155);
}
body[data-theme="dark"] .hub-detail-main .card:hover {
  border-color: #60a5fa;
  box-shadow: 0 2px 12px rgba(96,165,250,0.1);
}
body[data-theme="dark"] .hub-detail-main .card:has(.collapse.show),
body[data-theme="dark"] .hub-detail-main .card:has(.collapsing) {
  border-left-color: #60a5fa;
}
.hub-detail-main .card-body {
  animation: cfg-faq-fadein 0.3s ease;
}
@keyframes cfg-faq-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.hub-detail-main .card-body p {
  color: var(--hp-text-secondary, #64748b);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ---- Detail page responsive ---- */
@media (max-width: 1024px) {
  .hub-sidebar--desktop {
    width: 220px;
  }
  .hub-detail-layout {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .hub-sidebar--desktop {
    display: none;
  }
  .hub-sidebar--mobile {
    display: block;
  }
  .hub-detail-layout {
    flex-direction: column;
    padding: 0 10px;
  }
  .hub-detail-main {
    width: 100%;
    overflow-x: hidden;
  }
  .hub-detail-main .container,
  .hub-detail-main .container-cfg,
  .hub-detail-main .container_product_amazon,
  .hub-detail-main .container-composant,
  .hub-detail-main .container-peripherique {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .hub-detail-main .description_cfg p {
    text-align: left !important;
  }
  .hub-detail-main .description_cfg {
    flex-direction: column;
    text-align: center;
  }
  .hub-detail-main .description_cfg .col-md-3,
  .hub-detail-main .description_cfg .col-md-8 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .hub-detail-main .table {
    font-size: 0.78rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hub-detail-main .table thead th {
    padding: 10px 8px;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .hub-detail-main .table tbody td {
    padding: 8px 6px;
  }
  .hub-detail-main .button-commander {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
  .hub-detail-main .btn-order-amazon {
    padding: 12px 24px;
    font-size: 0.88rem;
  }
  .hub-detail-main .prix_config {
    font-size: 1.1rem;
  }
  .hub-detail-main .bloc-btn-amazon-prix {
    gap: 12px;
  }
  .hub-detail-main .liste-composants {
    padding: 16px;
    margin: 20px 0 14px;
    border-radius: 10px;
  }
  .hub-detail-main .liste-composants h2 {
    font-size: 1rem;
  }
  .hub-detail-main .lecteur-youtube iframe,
  .hub-detail-main .video-youtube {
    border-radius: 10px;
    max-width: 100%;
  }
  .hub-detail-main .img_composant,
  .hub-detail-main .img_peripherique,
  .hub-detail-main .prix_composant,
  .hub-detail-main .prix_peripherique {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .hub-detail-main .style_titre_composant,
  .hub-detail-main .style_titre_peripherique {
    padding: 16px;
    border-radius: 10px;
  }
  .hub-detail-main .style_titre_composant h2,
  .hub-detail-main .style_titre_peripherique h2 {
    font-size: 1rem;
  }
  .hub-detail-main .amazon_choice {
    flex-direction: column;
    gap: 20px;
  }
  .hub-intro-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .hub-intro-card__img {
    width: 140px;
  }
  .hub-intro-card__ctas {
    justify-content: center;
  }
  .hub-banner {
    padding: 20px;
    border-radius: 10px;
  }
  .hub-banner__title {
    font-size: 1.1rem;
  }
  .hub-cart-row {
    flex-direction: column;
    text-align: center;
  }
  /* Slick slider fix on mobile */
  .hub-detail-main .multiple-items {
    padding: 0;
  }
  .hub-detail-main .multiple-items li {
    padding: 0 5px;
  }
}

/* ==========================================================================
   Config PC — Component List, Promo Badges, FPS Bars, Cart Action
   Style inspire de GamerTech.fr
   ========================================================================== */

/* ---- Component list (flex rows, not table) ---- */
.cfg-components {
  margin: 16px 0 0;
  border: 1px solid var(--hp-border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  background: var(--hp-bg-primary, #fff);
}
body[data-theme="dark"] .cfg-components {
  background: var(--hp-bg-secondary, #1e293b);
  border-color: var(--hp-border, #334155);
}
.cfg-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hp-border, #e2e8f0);
  transition: background 0.15s;
}
body[data-theme="dark"] .cfg-row {
  border-color: var(--hp-border, #334155);
}
.cfg-row:last-child {
  border-bottom: none;
}
.cfg-row:not(.cfg-row--header):not(.cfg-row--total):hover {
  background: var(--hp-accent-light, rgba(37,99,235,0.03));
}
.cfg-row--header {
  background: var(--hp-bg-secondary, #f8fafc);
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hp-text-secondary, #64748b);
}
body[data-theme="dark"] .cfg-row--header {
  background: #0f172a;
}
.cfg-row--total {
  background: var(--hp-bg-secondary, #f8fafc);
  padding: 18px 20px;
}
body[data-theme="dark"] .cfg-row--total {
  background: #0f172a;
}
.cfg-col--icon {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cfg-col--icon i {
  font-size: 1.2rem;
  color: var(--hp-accent, #2563EB);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(167,139,250,0.08));
  border-radius: 10px;
}
body[data-theme="dark"] .cfg-col--icon i {
  color: #60a5fa;
  background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(167,139,250,0.1));
}
.cfg-col--ref {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cfg-row--header .cfg-col--ref {
  flex-direction: row;
}
.cfg-ref__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--hp-text-secondary, #64748b);
}
.cfg-ref__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hp-accent, #2563EB);
}
body[data-theme="dark"] .cfg-ref__name {
  color: #60a5fa;
}
.cfg-ref__name--muted {
  color: var(--hp-text-muted, #94a3b8);
  font-style: italic;
  font-weight: 400;
}
body[data-theme="dark"] .cfg-ref__name--muted {
  color: #64748b;
}
.cfg-col--price {
  width: 120px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cfg-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hp-text-primary, #0f172a);
}
body[data-theme="dark"] .cfg-price {
  color: var(--hp-text-primary, #f1f5f9);
}
.cfg-price--muted {
  color: var(--hp-text-muted, #94a3b8);
  font-weight: 400;
}
.cfg-col--buy {
  width: 140px;
  flex-shrink: 0;
  text-align: center;
}
.cfg-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
}
.cfg-buy-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.cfg-buy-btn i {
  font-size: 0.75rem;
}
.cfg-total__label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hp-text-primary, #0f172a);
}
body[data-theme="dark"] .cfg-total__label {
  color: var(--hp-text-primary, #f1f5f9);
}
.cfg-total__amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hp-accent, #2563EB);
}
body[data-theme="dark"] .cfg-total__amount {
  color: #60a5fa;
}

/* ---- Promo badge ---- */
.cfg-promo-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

/* ---- Cart action button (full width) ---- */
.cfg-cart-action {
  margin: 20px 0 16px;
  text-align: center;
}
.cfg-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.cfg-cart-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  color: #fff !important;
  text-decoration: none;
}

/* ---- FPS Benchmark bars ---- */
.cfg-benchmarks {
  margin: 24px 0 32px;
  padding: 0 4px;
}
.cfg-benchmarks__note {
  font-size: 0.88rem;
  color: var(--hp-text-muted, #94a3b8);
  margin-bottom: 20px;
  font-weight: 600;
}
.cfg-benchmarks__note i {
  color: var(--hp-accent, #2563EB);
  margin-right: 6px;
}
.cfg-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cfg-bar-row__game {
  width: 140px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--hp-text-primary, #0f172a);
  flex-shrink: 0;
  text-align: right;
}
body[data-theme="dark"] .cfg-bar-row__game {
  color: var(--hp-text-primary, #f1f5f9);
}
.cfg-bar-row__track {
  flex: 1;
  height: 30px;
  background: var(--hp-bg-secondary, #f1f5f9);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
body[data-theme="dark"] .cfg-bar-row__track {
  background: #1e293b;
}
.cfg-bar-row__fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  min-width: 50px;
  transition: width 1s ease-out;
}
.cfg-bar-row__fps {
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.cfg-bar-row__quality {
  font-size: 0.75rem;
  color: var(--hp-text-muted, #94a3b8);
  width: 55px;
  flex-shrink: 0;
}

/* Bar colors */
.cfg-bar--green {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}
.cfg-bar--orange {
  background: linear-gradient(90deg, #ea580c, #f59e0b);
}
.cfg-bar--red {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

/* Legend */
.cfg-benchmarks__legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hp-border, #e2e8f0);
}
body[data-theme="dark"] .cfg-benchmarks__legend {
  border-color: var(--hp-border, #334155);
}
.cfg-legend {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hp-text-secondary, #64748b);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cfg-legend--green i { color: #22c55e; font-size: 0.5rem; }
.cfg-legend--orange i { color: #f59e0b; font-size: 0.5rem; }
.cfg-legend--red i { color: #ef4444; font-size: 0.5rem; }

/* ---- Responsive config components ---- */
@media (max-width: 768px) {
  .cfg-row {
    padding: 12px 14px;
    gap: 8px;
  }
  .cfg-col--icon {
    width: 36px;
  }
  .cfg-col--icon i {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  .cfg-ref__name {
    font-size: 0.82rem;
  }
  .cfg-col--price {
    width: 80px;
  }
  .cfg-price {
    font-size: 0.82rem;
  }
  .cfg-col--buy {
    width: auto;
    flex-shrink: 1;
  }
  .cfg-buy-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
  }
  .cfg-buy-btn span { display: none; }
  .cfg-cart-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
  .cfg-bar-row__game {
    width: 90px;
    font-size: 0.75rem;
  }
  .cfg-bar-row__track {
    height: 26px;
  }
  .cfg-bar-row__fps {
    font-size: 0.7rem;
    padding-right: 6px;
  }
  .cfg-bar-row__fill {
    padding-right: 6px;
    min-width: 40px;
  }
  .cfg-bar-row__quality {
    display: none;
  }
  .cfg-benchmarks__legend {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .cfg-row--header {
    display: none;
  }
  .cfg-col--buy {
    width: auto;
  }
  .cfg-buy-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}
