/* ============================================================
   bsd-comparatif — Tableau comparatif produits
   Figma: node 1-378
   ============================================================ */

.bsd-comparatif {
  overflow: hidden;
  color: var(--bsd-navy-dark, #17285a);
}

.bsd-comparatif__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px;
  box-sizing: border-box;
}

.bsd-comparatif__title {
  margin: 0 0 40px;
  font-family: var(--bsd-font-label, 'Poppins', sans-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--bsd-navy-dark, #17285a);
  text-align: left;
}

.bsd-comparatif__card {
  background: var(--bsd-bg-blue-pale, #f2f7fd);
  border-radius: 8px;
  overflow: hidden;
}

/* ============================================================
   Zone haute : cartes produits
   ============================================================ */

.bsd-comparatif__products-row {
  display: grid;
  grid-template-columns: 162px repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 32px 24px 28px;
  background: var(--bsd-bg-blue-pale, #f2f7fd);
}

.bsd-comparatif__label-spacer {
  min-height: 1px;
}

.bsd-comparatif__product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  text-align: center;
}

.bsd-comparatif__product-card--sep {
  border-right: 1px solid var(--bsd-navy-light, #475ea7);
}

.bsd-comparatif__product-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 151px;
  height: 151px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(86, 111, 174, 0.2);
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}

.bsd-comparatif__product-img-wrap--empty {
  background: #fff;
}

.bsd-comparatif__product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsd-comparatif__product-france-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 56px;
  height: auto;
  pointer-events: none;
}

.bsd-comparatif__product-name {
  display: block;
  font-family: var(--bsd-font-label, 'Poppins', sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--bsd-navy-dark, #17285a);
  text-decoration: none;
  max-width: 150px;
}

.bsd-comparatif__product-name:hover {
  text-decoration: underline;
}

/* ============================================================
   Zone basse : critères
   ============================================================ */

.bsd-comparatif__criteria {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 0 24px 36px;
  background: var(--bsd-bg-blue-pale, #f2f7fd);
}

.bsd-comparatif__row {
  display: grid;
  grid-template-columns: 162px repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 21px;
}

.bsd-comparatif__cell {
  padding: 0 16px;
  font-family: var(--bsd-font-label, 'Poppins', sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--bsd-navy-dark, #17285a);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.bsd-comparatif__cell--label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.24;
  padding-left: 0;
  padding-right: 20px;
}

.bsd-comparatif__cell--value {
  font-weight: 500;
  justify-content: flex-start;
}

.bsd-comparatif__cell--vsep {
  border-right: 1px solid var(--bsd-navy-light, #475ea7);
}

.bsd-comparatif__cell--icon {
  justify-content: center;
}

.bsd-comparatif__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.bsd-comparatif__badge svg {
  display: block;
}

.bsd-comparatif__row--price .bsd-comparatif__cell--label {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.bsd-comparatif__price-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.24;
}

.bsd-comparatif__price-suffix {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.24;
}

.bsd-comparatif__cell--price {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1023px) {
  .bsd-comparatif__inner {
    padding: 48px 16px;
  }

  .bsd-comparatif__products-row,
  .bsd-comparatif__row {
    grid-template-columns: 140px repeat(4, minmax(0, 1fr));
  }

  .bsd-comparatif__product-img-wrap {
    width: 120px;
    height: 120px;
  }

  .bsd-comparatif__product-france-badge {
    width: 48px;
  }

  .bsd-comparatif__product-name {
    font-size: 14px;
    max-width: 120px;
  }

  .bsd-comparatif__cell--label {
    font-size: 14px;
  }

  .bsd-comparatif__criteria {
    gap: 28px;
    padding: 0 16px 28px;
  }
}

@media (max-width: 767px) {
  .bsd-comparatif__inner {
    padding: 32px 12px;
  }

  .bsd-comparatif__title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .bsd-comparatif__card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bsd-comparatif__products-row,
  .bsd-comparatif__criteria {
    min-width: 640px;
  }

  .bsd-comparatif__products-row,
  .bsd-comparatif__row {
    grid-template-columns: 120px repeat(4, minmax(120px, 1fr));
  }

  .bsd-comparatif__products-row {
    padding: 24px 12px 20px;
  }

  .bsd-comparatif__criteria {
    gap: 24px;
    padding: 0 12px 24px;
  }

  .bsd-comparatif__product-img-wrap {
    width: 88px;
    height: 88px;
    border-radius: 10px;
  }

  .bsd-comparatif__product-france-badge {
    width: 40px;
    right: 4px;
    bottom: 4px;
  }

  .bsd-comparatif__product-name {
    font-size: 12px;
    max-width: 88px;
  }

  .bsd-comparatif__cell {
    padding: 0 10px;
    font-size: 12px;
  }

  .bsd-comparatif__cell--label {
    font-size: 12px;
  }

  .bsd-comparatif__price-label {
    font-size: 14px;
  }
}
