/* Sessions BGP — hero surface + cards type VPS Linux */

@import url('./transit-ip.css');

:root {
  --hc-primary: #2563eb;
  --hc-accent: #fbbf24;
  --hc-dark: #0f172a;
  --hc-text-main: #1e293b;
  --hc-text-muted: #64748b;
}

/* ——— Offres BGP (même langage visuel que .vps-gl-offer) ——— */
.bgp-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.bgp-offer {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.bgp-offer:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
  transform: translateY(-3px);
}

.bgp-offer.is-popular {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.bgp-offer-ribbon {
  position: absolute;
  top: 14px;
  left: -34px;
  width: 120px;
  background: #2563eb;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  z-index: 2;
}

.bgp-offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-height: 1.6rem;
}

.bgp-offer.is-popular .bgp-offer-top {
  padding-left: 1.1rem;
}

.bgp-offer-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: left;
}

.bgp-offer-price {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.bgp-offer-currency {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 0.35rem;
  color: #1e3a8a;
}

.bgp-offer-value {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.bgp-offer-unit {
  align-self: flex-end;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.bgp-offer-term {
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: left;
  line-height: 1.45;
}

.bgp-offer-cta {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 2px solid #2563eb;
  border-radius: 6px;
  background: #fff;
  color: #2563eb !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background .15s, color .15s, box-shadow .15s;
  margin-bottom: 1.15rem;
}

.bgp-offer-cta:hover {
  background: #2563eb;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.bgp-offer.is-popular .bgp-offer-cta {
  background: #2563eb;
  color: #fff !important;
}

.bgp-offer.is-popular .bgp-offer-cta:hover {
  background: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.bgp-offer-features {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid #e2e8f0;
  flex: 1;
}

.bgp-offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.4;
}

.bgp-offer-features li i {
  color: #60a5fa;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.bgp-offer-features li b {
  color: #0f172a;
  font-weight: 700;
}

.bg-protocols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bg-protocol-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--hc-line);
  background: #fff;
  border-top: 2px solid rgba(37, 99, 235, 0.35);
}

.bg-protocol-card h3 {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hc-ink);
}

.bg-protocol-card p {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 991px) {
  .bgp-offers-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .bg-protocols {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .bgp-offers-grid {
    gap: 1rem;
  }

  .bgp-offer {
    padding: 1.25rem 1.1rem 1.15rem;
  }

  .bgp-offer-value {
    font-size: 2rem;
  }
}
