/* Brokers — focus + tableau (glass), hors encarts jencart */

.jb-focus {
  --jb-glass-bg: rgba(255, 255, 255, 0.42);
  --jb-glass-edge: rgba(255, 255, 255, 0.55);
  --jb-glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --jb-ink: #0f172a;
  --jb-muted: #64748b;
  margin: 28px 0;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(226, 232, 240, 0.35) 50%, rgba(255, 255, 255, 0.4) 100%);
  box-shadow: var(--jb-glass-shadow);
}

.jb-focus__inner {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 22px 28px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--jb-glass-bg);
  border: 1px solid var(--jb-glass-edge);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: var(--jb-ink);
}

.jb-focus__media {
  min-height: 120px;
}

.jb-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(248, 250, 252, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.jb-visual__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.jb-visual--embed :is(img, svg, picture) {
  display: block;
  max-width: 100%;
  height: auto;
}

.jb-visual--empty {
  min-height: 140px;
  background: linear-gradient(160deg, rgba(241, 245, 249, 0.9), rgba(226, 232, 240, 0.45));
}

.jb-focus__title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.jb-focus__body-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 28px;
}

.jb-focus__specs {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 14px;
  row-gap: 10px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.jb-focus__specs dt {
  margin: 0;
  font-weight: 700;
  color: var(--jb-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.jb-focus__specs dd {
  margin: 0;
  min-width: 0;
}

.jb-focus__spec {
  color: #334155;
}

.jb-focus__actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: stretch;
}

.jb-focus__actions .jb-actions {
  align-items: flex-end;
}

/* Boutons site + démo (focus & tableau) */
.jb-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  min-width: 11.5rem;
}

.jb-action__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 11.5rem;
  padding: 0.52rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  border: 1px solid rgba(15, 23, 42, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-sizing: border-box;
}

.jb-action__btn--site {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 4px 14px rgba(15, 23, 42, 0.15);
}

.jb-action__btn--site:hover {
  transform: translateY(-1px);
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 22px rgba(15, 23, 42, 0.2);
}

.jb-action__btn--demo {
  background: rgba(255, 255, 255, 0.55);
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.jb-action__btn--demo:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.75);
  color: #0f172a !important;
}
/* --- Tableau comparatif dynamique --- */
.jb-table-wrap {
  margin: 28px 0;
  padding: 2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(226, 232, 240, 0.35));
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.jb-table {
  width: 100%;
  min-width: 52rem;  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.jb-table thead th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #475569;
  background: rgba(248, 250, 252, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.jb-table thead .jb-th--rank {
  width: 4.5rem;
  text-align: center;
}

.jb-table thead .jb-th--actions {
  width: 12.5rem;
  min-width: 12.5rem;
  text-align: right;
  vertical-align: bottom;
}
.jb-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  color: #334155;
}

.jb-table tbody tr:last-child td {
  border-bottom: none;
}

.jb-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.35);
}

.jb-td--rank {
  text-align: center;
}

.jb-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.jb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jb-brand__name {
  font-weight: 700;
  color: #0f172a;
}

.jb-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(248, 250, 252, 0.8);
  flex-shrink: 0;
}

.jb-thumb__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jb-thumb--embed :is(img, svg) {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.jb-thumb--empty {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.jb-td--spec {
  max-width: 16rem;
  font-size: 0.88rem;
  color: #475569;
}

.jb-td--cta {
  text-align: right;
  vertical-align: middle;
  white-space: normal;
}

.jb-td--cta .jb-actions {
  margin-left: auto;
  align-items: flex-end;
}

.jb-td--cta .jb-action__btn {
  font-size: 0.78rem;
  min-width: 10.5rem;
  padding: 0.42rem 0.75rem;
}

@media (max-width: 720px) {
  .jb-focus__inner {
    grid-template-columns: 1fr;
  }

  .jb-focus__body-row {
    flex-direction: column;
  }

  .jb-focus__actions {
    width: 100%;
    margin-left: 0;
  }

  .jb-focus__actions .jb-actions {
    width: 100%;
    align-items: stretch;
  }

  .jb-actions .jb-action__btn {
    min-width: 0;
  }

  .jb-focus__specs {
    grid-template-columns: 1fr;
  }

  .jb-focus__specs dt {
    white-space: normal;
  }
}