/*--------------------------------------------------------------
  OPUX360 — Feature Cards Alternating Styles (Dark/Light)
  Version 3: Dark section full-width + Image full-height
  Ajouter après premium-features.css
--------------------------------------------------------------*/

/* ============================================================
   SECTION WRAPPER
   ============================================================ */

.cs_features_section {
  position: relative;
}

/* ============================================================
   CARD DARK VARIANT — FULL WIDTH BACKGROUND
   ============================================================ */

.cs_card.cs_style_1 .row.cs_heading_bg {
  background: var(--premium-primary, #0d1b2a);
  position: relative;
  padding: 0; /* Remove padding, handled differently now */
  min-height: 600px;
  
  /* Étendre sur toute la largeur */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Subtle gradient overlay for dark card */
.cs_card.cs_style_1 .row.cs_heading_bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 10% 80%, rgba(96, 196, 227, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(96, 196, 227, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* Top accent line */
.cs_card.cs_style_1 .row.cs_heading_bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--premium-accent, #60c4e3) 20%,
    var(--premium-accent, #60c4e3) 80%,
    transparent 100%
  );
  opacity: 0.3;
  z-index: 2;
}

/* ============================================================
   DARK CARD — IMAGE FULL HEIGHT
   ============================================================ */

.row.cs_heading_bg .col-xl-5,
.row.cs_heading_bg .col-lg-5 {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  padding: 0;
  width: 45%;
  max-width: 45%;
}

.row.cs_heading_bg .cs_card_thumbnail {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border-radius: 0 !important;
  overflow: hidden;
}

.row.cs_heading_bg .cs_card_thumbnail::before,
.row.cs_heading_bg .cs_card_thumbnail::after {
  display: none; /* Remove decorative frames for full-height image */
}

.row.cs_heading_bg .cs_card_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  box-shadow: none;
}

/* Subtle gradient overlay on image for better text contrast */
.row.cs_heading_bg .cs_card_thumbnail::before {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--premium-primary, #0d1b2a) 0%,
    rgba(13, 27, 42, 0.3) 30%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}

/* Accent line on left edge of image */
.row.cs_heading_bg .cs_card_thumbnail::after {
  display: block;
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  width: 3px;
  background: var(--premium-accent, #60c4e3);
  opacity: 0.6;
  z-index: 2;
}

/* ============================================================
   DARK CARD — Content Column
   ============================================================ */

.row.cs_heading_bg .col-xl-6,
.row.cs_heading_bg .col-lg-7 {
  position: relative;
  z-index: 2;
  padding: 5rem calc(50vw - 50%) 5rem calc(50vw - 50% + 15px);
  width: 55%;
  max-width: 55%;
}

/* ============================================================
   DARK CARD — Typography
   ============================================================ */

.row.cs_heading_bg .cs_card_content::before {
  color: var(--premium-accent, #60c4e3);
}

.row.cs_heading_bg .cs_section_title {
  color: var(--premium-white, #fafaf8);
}

.row.cs_heading_bg .cs_section_text {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   DARK CARD — Feature List
   ============================================================ */

.row.cs_heading_bg .cs_list.cs_style_1 li {
  border-color: rgba(255, 255, 255, 0.1);
}

.row.cs_heading_bg .cs_list.cs_style_1 li:first-child {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.row.cs_heading_bg .cs_list.cs_style_1 li:hover {
  background: linear-gradient(
    90deg,
    rgba(96, 196, 227, 0.1) 0%,
    transparent 100%
  );
}

/* Number boxes on dark bg */
.row.cs_heading_bg .cs_list_icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.row.cs_heading_bg .cs_list_icon::before {
  color: rgba(255, 255, 255, 0.5);
}

.row.cs_heading_bg .cs_list.cs_style_1 li:hover .cs_list_icon {
  background: var(--premium-accent, #60c4e3);
  border-color: var(--premium-accent, #60c4e3);
}

.row.cs_heading_bg .cs_list.cs_style_1 li:hover .cs_list_icon::before {
  color: var(--premium-primary, #0d1b2a);
}

/* Feature text on dark bg */
.row.cs_heading_bg .cs_list.cs_style_1 li > span:last-child,
.row.cs_heading_bg .cs_heading_color {
  color: var(--premium-white, #fafaf8);
}

/* ============================================================
   DARK CARD — CTA Button
   ============================================================ */

.row.cs_heading_bg .cs_card_content .cs_btn.cs_style_1 {
  background: transparent;
  color: var(--premium-white, #fafaf8);
  border-color: rgba(255, 255, 255, 0.3);
}

.row.cs_heading_bg .cs_card_content .cs_btn.cs_style_1::before {
  background: var(--premium-accent, #60c4e3);
}

.row.cs_heading_bg .cs_card_content .cs_btn.cs_style_1:hover {
  color: var(--premium-primary, #0d1b2a);
  border-color: var(--premium-accent, #60c4e3);
}

/* ============================================================
   LIGHT CARD — Default styling (unchanged)
   ============================================================ */

.cs_card.cs_style_1 > .row:not(.cs_heading_bg) {
  background: transparent;
  padding: 4rem 0;
}

.cs_card.cs_style_1 > .row:not(.cs_heading_bg) .cs_card_content::before {
  color: var(--premium-accent, #60c4e3);
}

/* ============================================================
   REMOVE DEFAULT SEPARATOR
   ============================================================ */

.cs_card.cs_style_1::after {
  display: none;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 1199px) {
  .row.cs_heading_bg .col-xl-6,
  .row.cs_heading_bg .col-lg-7 {
    padding: 4rem calc(50vw - 50%) 4rem calc(50vw - 50% + 15px);
    width: 55%;
    max-width: 55%;
  }
  
  .row.cs_heading_bg .col-xl-5,
  .row.cs_heading_bg .col-lg-5 {
    width: 45%;
    max-width: 45%;
  }
}

@media (max-width: 991px) {
  .cs_card.cs_style_1 .row.cs_heading_bg {
    min-height: auto;
    flex-direction: column;
  }
  
  /* Reset image positioning for mobile */
  .row.cs_heading_bg .col-xl-5,
  .row.cs_heading_bg .col-lg-5 {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 350px;
    order: 1;
  }
  
  .row.cs_heading_bg .cs_card_thumbnail {
    position: relative;
    height: 350px;
  }
  
  .row.cs_heading_bg .cs_card_thumbnail::before {
    background: linear-gradient(
      180deg,
      transparent 50%,
      var(--premium-primary, #0d1b2a) 100%
    );
  }
  
  .row.cs_heading_bg .cs_card_thumbnail::after {
    display: none;
  }
  
  /* Reset content positioning for mobile */
  .row.cs_heading_bg .col-xl-6,
  .row.cs_heading_bg .col-lg-7 {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 1.5rem;
    order: 2;
  }
}

@media (max-width: 767px) {
  .row.cs_heading_bg .col-xl-5,
  .row.cs_heading_bg .col-lg-5 {
    height: 280px;
  }
  
  .row.cs_heading_bg .cs_card_thumbnail {
    height: 280px;
  }
  
  .row.cs_heading_bg .col-xl-6,
  .row.cs_heading_bg .col-lg-7 {
    padding: 2rem 1rem;
  }
}

/* ============================================================
   REMOVE HEIGHT SPACER IN DARK SECTION
   ============================================================ */

.row.cs_heading_bg .cs_height_136,
.row.cs_heading_bg .cs_height_lg_80 {
  display: none;
}