/* Grille services « Solutions » — panneau coloré + image, style éditorial */

.boreal-services-solutions {
  --service-accent: var(--brand-primary, #333);
}

.boreal-services-solutions__heading {
  margin-bottom: 48px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--brand-border, rgba(0, 0, 0, 0.12));
}

.boreal-services-solutions__heading .sec-title {
  margin-bottom: 0;
}

.boreal-services-solutions__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--brand-font-body, var(--tj-ff-body));
  font-size: 15px;
  font-weight: var(--tj-fw-medium, 500);
  letter-spacing: var(--ls-button, 0.01em);
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.35s ease, transform 0.35s ease;
}

.boreal-services-solutions__more-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.boreal-services-solutions__more:hover,
.boreal-services-solutions__more:focus-visible {
  color: var(--brand-dark, var(--tj-color-theme-dark));
}

.boreal-services-solutions__more:hover .boreal-services-solutions__more-arrow,
.boreal-services-solutions__more:focus-visible .boreal-services-solutions__more-arrow {
  transform: translateX(4px);
}

.boreal-services-solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 991px) {
  .boreal-services-solutions__grid {
    grid-template-columns: 1fr;
  }
}

.boreal-services-solutions__card {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  column-gap: 1px;
  min-height: 168px;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  background: transparent;
  box-shadow: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 575px) {
  .boreal-services-solutions__card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    min-height: 148px;
  }
}

.boreal-services-solutions__card:hover,
.boreal-services-solutions__card:focus-visible {
  transform: translateY(-3px);
}

.boreal-services-solutions__card:hover .boreal-services-solutions__panel,
.boreal-services-solutions__card:focus-visible .boreal-services-solutions__panel,
.boreal-services-solutions__card:hover .boreal-services-solutions__media,
.boreal-services-solutions__card:focus-visible .boreal-services-solutions__media {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.boreal-services-solutions__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px 22px;
  background: var(--service-accent);
  color: var(--brand-bg-white, #fff);
  border-radius: var(--brand-card-radius, 16px) 0 0 var(--brand-card-radius, 16px);
  transition: filter 0.45s ease, box-shadow 0.45s ease;
}

.boreal-services-solutions__card:hover .boreal-services-solutions__panel,
.boreal-services-solutions__card:focus-visible .boreal-services-solutions__panel {
  filter: brightness(1.06);
}

.boreal-services-solutions__card-title {
  margin: 0;
  font-family: var(--brand-font-heading, var(--tj-ff-heading));
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--tj-fw-sbold, 600);
  color: inherit;
}

.boreal-services-solutions__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--brand-font-body, var(--tj-ff-body));
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0.92;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.boreal-services-solutions__card:hover .boreal-services-solutions__cta,
.boreal-services-solutions__card:focus-visible .boreal-services-solutions__cta {
  transform: translateX(4px);
  opacity: 1;
}

.boreal-services-solutions__media {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 0 var(--brand-card-radius, 16px) var(--brand-card-radius, 16px) 0;
  transition: box-shadow 0.45s ease;
}

.boreal-services-solutions__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.boreal-services-solutions__card:hover .boreal-services-solutions__media img,
.boreal-services-solutions__card:focus-visible .boreal-services-solutions__media img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .boreal-services-solutions__card,
  .boreal-services-solutions__panel,
  .boreal-services-solutions__media img,
  .boreal-services-solutions__cta,
  .boreal-services-solutions__more,
  .boreal-services-solutions__more-arrow {
    transition: none;
  }

  .boreal-services-solutions__card:hover,
  .boreal-services-solutions__card:focus-visible {
    transform: none;
  }

  .boreal-services-solutions__card:hover .boreal-services-solutions__media img,
  .boreal-services-solutions__card:focus-visible .boreal-services-solutions__media img {
    transform: none;
  }
}
