/* Tebex · panneau boutique neutre */

.cp-hero--tebex.cp-hero--page .cp-hero__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: clamp(0.35rem, 0.75vh, 0.55rem) 0.4rem 0.4rem;
  padding: 0;
  overflow: hidden;
}

.cp-hero--tebex .cp-page__scroll {
  display: none;
}

.sd-tebex {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 0;
  flex: 1;
  height: 100%;
  --tebex-r: calc(var(--r-2xl) - 0.35rem);
  border-radius: var(--tebex-r);
  overflow: hidden;
  background: #0c0c0c;
}

.sd-tebex__visual {
  position: relative;
  min-height: clamp(16rem, 42vh, 28rem);
  overflow: hidden;
  background: #101010;
}

.sd-tebex__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sd-tebex__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(12, 12, 12, 0.92) 100%);
  pointer-events: none;
}

.sd-tebex__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 1.45rem);
  padding: clamp(1.2rem, 2.8vw, 2.1rem) clamp(1.2rem, 2.8vw, 1.9rem);
  min-width: 0;
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

.sd-tebex__intro .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.45rem;
}

.sd-tebex__intro .section-tag::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.sd-tebex__intro h1 {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.45rem;
  color: #f5f5f5;
}

.sd-tebex__lead {
  color: rgba(255, 255, 255, 0.58);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  max-width: 34rem;
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Grand panneau type CashbackPartnersCard */
.sd-tebex__panel {
  width: 100%;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111111;
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.sd-tebex__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
}

.sd-tebex__panel-title {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  text-transform: none;
}

.sd-tebex__panel-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sd-tebex__panel-go svg {
  width: 1.15rem;
  height: 1.15rem;
}

.sd-tebex__panel-go:hover,
.sd-tebex__panel-go:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sd-tebex__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sd-tebex__card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  height: 100%;
  padding: 1.05rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #161616;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.sd-tebex__card:hover,
.sd-tebex__card:focus-visible {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
  transform: translateY(-1px);
}

.sd-tebex__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.75rem;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sd-tebex__card-icon img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  display: block;
}

.sd-tebex__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.sd-tebex__card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.25;
  color: #fff;
  text-transform: none;
  letter-spacing: -0.02em;
}

.sd-tebex__card-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
  text-transform: none;
}

.sd-tebex__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-top: 0.4rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.72);
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.sd-tebex__card-link::after {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.2s, opacity 0.2s;
}

.sd-tebex__card:hover .sd-tebex__card-link,
.sd-tebex__card:focus-visible .sd-tebex__card-link {
  color: #fff;
}

.sd-tebex__card:hover .sd-tebex__card-link::after,
.sd-tebex__card:focus-visible .sd-tebex__card-link::after {
  opacity: 0.9;
  transform: rotate(45deg) translate(1px, -1px);
}

@media (max-width: 900px) {
  .sd-tebex {
    grid-template-columns: 1fr;
  }

  .sd-tebex__visual {
    min-height: clamp(12rem, 32vh, 18rem);
  }

  .sd-tebex__visual::after {
    background: linear-gradient(180deg, transparent 40%, rgba(12, 12, 12, 0.95) 100%);
  }
}

@media (max-width: 560px) {
  .sd-tebex__grid {
    grid-template-columns: 1fr;
  }
}
