/* Partenaires — Styles & Layout Glassmorphism */

.cp-hero--partenaires .cp-hero__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.cp-hero--partenaires .cp-page__content--partenaires {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(1.1rem, 2.2vw, 1.75rem) clamp(1.1rem, 2.8vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem);
}

/* Header Intro */
.sd-partenaires-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: center;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  overflow: hidden;
}

.sd-partenaires-intro__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.65rem, 1.4vw, 0.85rem);
  border-right: 1px dashed rgba(255, 255, 255, 0.12);
}

.sd-partenaires-intro__brand img {
  display: block;
  width: clamp(3.25rem, 7vw, 4.25rem);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

.sd-partenaires-intro__body {
  min-width: 0;
}

.sd-partenaires-intro__body .section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sd-neon, #1ee6a0);
  margin-bottom: 0.35rem;
}

.sd-partenaires-intro__body h1 {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.sd-partenaires-intro__desc {
  color: var(--sd-grey, #9999a3);
  font-size: clamp(0.84rem, 1.6vw, 0.95rem);
  line-height: 1.65;
  margin: 0;
}

/* Panel Frame */
.sd-partenaires-panel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(0.85rem, 1.6vw, 1.1rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sd-partenaires-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(0.95rem, 1.6vw, 1.15rem);
  right: clamp(0.95rem, 1.6vw, 1.15rem);
  height: 2px;
  background: var(--sd-neon, #1ee6a0);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.sd-partenaires-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: clamp(0.85rem, 1.5vw, 1.1rem) clamp(1rem, 1.8vw, 1.3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.34);
}

/* Category Filters */
.sd-partenaires-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sd-partenaires-filter {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-partenaires-filter:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sd-partenaires-filter.active {
  background: rgba(30, 230, 160, 0.15);
  border-color: #1ee6a0;
  color: #1ee6a0;
  box-shadow: 0 0 12px rgba(30, 230, 160, 0.2);
}

.sd-partenaires-count {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid rgba(30, 230, 160, 0.4);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(30, 230, 160, 0.18);
  letter-spacing: 0.02em;
}

.sd-partenaires-count::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sd-neon, #1ee6a0);
  box-shadow: 0 0 8px #1ee6a0;
}

.sd-partenaires-panel__body {
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
}

/* Grid Layout */
.sd-partenaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.35rem;
}

/* Card Component */
.sd-partenaire-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 14, 18, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(30, 230, 160, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.sd-partenaire-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 230, 160, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 28px rgba(30, 230, 160, 0.25);
}

/* Card Banner / Header Media */
.sd-partenaire-card__media {
  position: relative;
  width: 100%;
  height: 8.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(30, 230, 160, 0.12) 0%, rgba(10, 10, 14, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-partenaire-card__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.sd-partenaire-card:hover .sd-partenaire-card__banner-img {
  transform: scale(1.06);
  opacity: 0.6;
}

.sd-partenaire-card__logo-wrap {
  position: relative;
  z-index: 2;
  width: 4.25rem;
  height: 4.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-partenaire-card__logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.sd-partenaire-card__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.sd-partenaire-card__badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  background: rgba(30, 230, 160, 0.12);
  border: 1px solid rgba(30, 230, 160, 0.35);
  color: var(--sd-neon, #1ee6a0);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Card Content Body */
.sd-partenaire-card__content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sd-partenaire-card__name {
  margin: 0;
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
}

.sd-partenaire-card__desc {
  margin: 0 0 1.1rem 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  flex: 1;
}

.sd-partenaire-card__actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sd-partenaire-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 120px;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(30, 230, 160, 0.12);
  border: 1px solid rgba(30, 230, 160, 0.35);
  color: #1ee6a0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sd-partenaire-card__btn--discord {
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.4);
  color: #8893f2;
}

.sd-partenaire-card__btn--discord:hover {
  background: #5865f2;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.45);
}

.sd-partenaire-card__btn--website {
  background: rgba(30, 230, 160, 0.12);
  border-color: rgba(30, 230, 160, 0.35);
  color: #1ee6a0;
}

.sd-partenaire-card__btn--website:hover {
  background: #1ee6a0;
  color: #0a0a0d;
  box-shadow: 0 0 16px rgba(30, 230, 160, 0.35);
}

.sd-partenaires-empty,
.sd-partenaires-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 3rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  width: 100%;
}

@media (max-width: 820px) {
  .sd-partenaires-intro {
    grid-template-columns: 1fr;
  }

  .sd-partenaires-intro__brand {
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    padding-bottom: 0.85rem;
  }
}

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