/* ==========================================================================
   Somachir — Trois Piliers Widget
   ========================================================================== */

.smch-pillars {
  background: #0B1F3A;
  padding: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Inner — 3-column flex
   -------------------------------------------------------------------------- */
.smch-pillars__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 480px;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.smch-pillars__card {
  flex: 1;
  position: relative;
  padding: 64px 52px 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: background 0.45s cubic-bezier(0.16,1,0.3,1);
  cursor: default;
}

.smch-pillars__card:first-child {
  border-left: none;
}

/* Background image layer */
.smch-pillars__card--has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.06);
  z-index: 0;
}

.smch-pillars__card--has-bg:not(.smch-pillars__card--highlight):hover::after,
.smch-pillars__card--has-bg.smch-pillars__card--highlight::after {
  transform: scale(1);
}

/* Dark overlay on top of image */
.smch-pillars__card--has-bg .smch-pillars__icon,
.smch-pillars__card--has-bg .smch-pillars__body,
.smch-pillars__card--has-bg .smch-pillars__cta,
.smch-pillars__card--has-bg .smch-pillars__num {
  position: relative;
  z-index: 2;
}

/* Non-highlight: show image on hover */
.smch-pillars__card--has-bg:not(.smch-pillars__card--highlight):hover::after {
  opacity: 0.22;
}

/* Highlight: always show image */
.smch-pillars__card--has-bg.smch-pillars__card--highlight::after {
  opacity: 0.30;
}

/* Accent left bar — slides in on hover */
.smch-pillars__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  z-index: 3;
}

.smch-pillars__card:hover::before {
  transform: scaleY(1);
}

.smch-pillars__card:hover {
  background: rgba(27,79,138,0.12);
}

/* Highlight card — slightly elevated */
.smch-pillars__card--highlight {
  background: rgba(27,79,138,0.18);
  border-left-color: rgba(255,255,255,0.1);
}

.smch-pillars__card--highlight::before {
  transform: scaleY(1);
}

/* Background number — hidden */
.smch-pillars__num { display: none; }

/* --------------------------------------------------------------------------
   Icon
   -------------------------------------------------------------------------- */
.smch-pillars__icon {
  width: 64px;
  height: 64px;
  color: #fff;
  margin-bottom: 36px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), color 0.35s ease;
}

.smch-pillars__card:hover .smch-pillars__icon {
  transform: none;
}

.smch-pillars__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */
.smch-pillars__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.smch-pillars__label {
  display: none;
}

.smch-pillars__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
}

.smch-pillars__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin: 0;
  flex: 1;
}

/* --------------------------------------------------------------------------
   CTA link
   -------------------------------------------------------------------------- */
.smch-pillars__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s ease;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition:
    color        0.3s ease,
    border-color 0.3s ease;
}

.smch-pillars__cta:hover {
  color: #fff;
  border-color: var(--color-accent);
  text-decoration: none;
}

.smch-pillars__cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.smch-pillars__cta:hover svg {
  transform: translateX(4px);
}

.smch-pillars__card--highlight .smch-pillars__cta {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}

.smch-pillars__card--highlight .smch-pillars__cta:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .smch-pillars__card {
    padding: 48px 36px 44px;
  }
}

@media (max-width: 768px) {
  .smch-pillars__inner {
    flex-direction: column;
    min-height: auto;
  }

  .smch-pillars__card {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 44px 28px 40px;
  }

  .smch-pillars__card:first-child {
    border-top: none;
  }

  .smch-pillars__card::before {
    width: 100%;
    height: 3px;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
  }

  .smch-pillars__card:hover::before,
  .smch-pillars__card--highlight::before {
    transform: scaleX(1);
  }

  .smch-pillars__num {
    font-size: 80px;
  }
}
