/* Homepage — hero */
.nx-hero {
  background: #fff;
  padding: 2rem 0 2.5rem;
}

@media (min-width: 1024px) {
  .nx-hero {
    padding-top: 2.75rem;
  }
}

.nx-hero__inner {
  max-width: 1438px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .nx-hero__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}

.nx-hero__media {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nx-hero__media {
    width: 58.333%;
  }
}

.nx-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nx-hero__content {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .nx-hero__content {
    width: 41.667%;
    flex: 1;
  }
}

/* Cartes avantages — style original, grille fiable */
.nx-hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .nx-hero-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.nx-hero-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1px solid #3e66f0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(62, 102, 240, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.nx-hero-card:hover {
  box-shadow: 0 8px 24px rgba(62, 102, 240, 0.12);
  transform: translateY(-1px);
}

.nx-hero-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(62, 102, 240, 0.1);
  color: #3e66f0;
  flex-shrink: 0;
}

.nx-hero-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nx-hero-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f0f0f;
  margin: 0 0 0.5rem;
}

@media (min-width: 1280px) {
  .nx-hero-card__title {
    font-size: 1.25rem;
  }
}

.nx-hero-card__text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(15, 15, 15, 0.55);
  font-weight: 500;
  margin: 0;
}

/* Homepage — bloc écosystème */
.nx-ecosystem {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.nx-ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .nx-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-ecosystem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nx-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nx-product-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 32px rgba(0, 22, 87, 0.08);
  transform: translateY(-2px);
}

.nx-product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.nx-product-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0f40c5;
  background: #e6ecff;
}

.nx-product-card__badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: #d1fae5;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nx-product-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem;
}

.nx-product-card:hover .nx-product-card__title {
  color: #0f40c5;
}

.nx-product-card__desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  flex: 1;
  margin: 0 0 1rem;
}

.nx-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.nx-product-card__tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background: #f3f4f6;
  color: #4b5563;
}

.nx-product-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f40c5;
  margin-top: auto;
}

.nx-product-card:hover .nx-product-card__link {
  text-decoration: underline;
}
