/* Cartes type comparateur — logo à gauche, détail, note, atouts, CTA */

.offer-card {
  display: grid;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #f9fafb 0%, #f1f5f9 100%);
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.offer-card--featured {
  border-color: #d4a72c;
  box-shadow: 0 0 0 1px rgba(212, 167, 44, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.offer-card__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  min-height: 140px;
}

.offer-logo-box {
  width: 100%;
  max-width: 200px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #0a0a0a;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.offer-logo-box img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.offer-card__detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1rem;
  border-right: 1px solid #e2e8f0;
  min-width: 0;
}

.offer-welcome {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.offer-name {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e40af;
}

.offer-bonus {
  margin: 0 0 0.5rem;
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  font-weight: 800;
  line-height: 1.35;
  color: #1d4ed8;
}

.offer-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.offer-card .stars {
  color: #eab308;
  font-size: 0.95rem;
}

.offer-review-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.offer-review-link:hover {
  color: #1d4ed8;
}

.offer-card__score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid #e2e8f0;
  text-align: center;
}

.offer-card__score-col .score {
  font-size: 2.1rem;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1;
}

.btn-ghost {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.btn-ghost:hover {
  background: #eff6ff;
}

.offer-card__features {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #334155;
  border-right: 1px solid #e2e8f0;
}

.offer-card__features li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.35;
}

.offer-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 800;
}

.offer-features--mobile {
  display: none;
}

.offer-card__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.75rem;
  gap: 0.45rem;
  background: #fff;
}

.offer-card__action .btn-cta {
  width: 100%;
  max-width: 168px;
  text-align: center;
  font-size: 0.72rem;
  padding: 0.65rem 0.75rem;
}

.offer-visit-link {
  font-size: 0.72rem;
  color: #64748b;
  text-decoration: underline;
}

.offer-visit-link:hover {
  color: #1d4ed8;
}

.offer-disclaimer {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: -0.2rem 0 0.65rem 0.25rem;
}

@media (min-width: 900px) {
  .offer-card {
    grid-template-columns: 200px minmax(0, 1.15fr) 108px minmax(150px, 0.95fr) 172px;
  }

  .offer-features--desktop {
    display: flex;
  }

  .offer-meta-mobile {
    display: none;
  }

  .offer-card__score-col {
    display: flex;
  }

  .score-label,
  .score-method {
    display: none;
  }
}

@media (max-width: 899px) {
  .offer-card {
    grid-template-columns: 40% 60%;
    grid-template-rows: auto auto auto;
    border-radius: 12px 6px 12px 6px;
    margin-bottom: 0.45rem;
  }

  .offer-card__brand {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 132px;
    padding-top: 1.65rem;
    padding-bottom: 0.5rem;
  }

  .offer-card__detail {
    grid-column: 2;
    grid-row: 1;
    border-right: none;
    padding: 0.5rem 0.55rem 0.25rem;
  }

  .offer-name {
    display: none;
  }

  .offer-bonus {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }

  .offer-rating-row {
    display: flex;
  }

  .offer-review-link {
    font-size: 0.7rem;
  }

  .offer-card__score-col {
    display: none;
  }

  .offer-features--desktop {
    display: none;
  }

  .offer-features--mobile {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0.2rem 0 0;
    padding: 0;
    border: none;
    font-size: 0.62rem;
  }

  .offer-features--mobile li {
    padding-left: 0.95rem;
  }

  .offer-meta-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
  }

  .score--mobile {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1d4ed8;
  }

  .offer-card__action {
    grid-column: 2;
    grid-row: 2;
    padding: 0 0.55rem 0.5rem;
    background: transparent;
    align-items: stretch;
  }

  .offer-card__action .btn-cta {
    max-width: none;
    width: 100%;
  }

  .offer-visit-link {
    text-align: center;
  }

  .offer-ribbon {
    font-size: 0.55rem;
    max-width: calc(100% - 2.5rem);
  }

  .offer-logo-box {
    min-height: 72px;
    padding: 8px 10px;
  }

  .offer-logo-box img {
    max-height: 52px;
  }
}
