/*--------------------------------------------------------------
  OPUX360 — Dark Section Full-Width + Aligned Content
  Ajouter APRÈS premium-features.css
  Ce fichier gère UNIQUEMENT les styles .cs_heading_bg
--------------------------------------------------------------*/

/* ============================================================
   DARK SECTION — FULL WIDTH BACKGROUND
   ============================================================ */

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

/* Gradient overlay */
.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 SECTION — IMAGE FULL HEIGHT
   ============================================================ */

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

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

/* Remove decorative frames for full-height image */
.row.cs_heading_bg .cs_card_thumbnail::before {
  display: block !important;
  content: '';
  position: absolute;
  inset: 0;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  border: none !important;
  background: linear-gradient(
    90deg,
    var(--premium-primary, #0d1b2a) 0%,
    rgba(13, 27, 42, 0.4) 20%,
    transparent 50%
  );
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.row.cs_heading_bg .cs_card_thumbnail::after {
  display: block !important;
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  right: auto;
  width: 3px;
  height: auto;
  border: none !important;
  background: var(--premium-accent, #60c4e3);
  opacity: 0.6;
  z-index: 2;
}

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

.row.cs_heading_bg .cs_card_thumbnail:hover img {
  transform: none !important;
}

/* ============================================================
   DARK SECTION — CONTENT COLUMN (Aligned with Bootstrap container)
   ============================================================ */

.row.cs_heading_bg .col-xl-6.order-lg-1,
.row.cs_heading_bg .col-lg-7.order-lg-1 {
  position: relative;
  z-index: 2;
  width: 55%;
  max-width: 55%;
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-right: 3rem;
  
  /* Alignement avec le container Bootstrap (max-width: 1320px) */
  padding-left: calc((100vw - min(1320px, 100vw - 3rem)) / 2 + 12px);
}

/* ============================================================
   DARK SECTION — Typography
   ============================================================ */

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

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

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

/* ============================================================
   DARK SECTION — Feature List
   ============================================================ */

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

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

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

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

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

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

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

/* 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) !important;
}

/* ============================================================
   DARK SECTION — CTA Button
   ============================================================ */

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

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

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

/* ============================================================
   DARK SECTION — Hide spacers
   ============================================================ */

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

/* ============================================================
   RESPONSIVE — XL (1200px - 1399px)
   ============================================================ */

@media (max-width: 1399px) {
  .row.cs_heading_bg .col-xl-6.order-lg-1,
  .row.cs_heading_bg .col-lg-7.order-lg-1 {
    padding-left: calc((100vw - min(1140px, 100vw - 3rem)) / 2 + 12px);
  }
}

/* ============================================================
   RESPONSIVE — LG (992px - 1199px)
   ============================================================ */

@media (max-width: 1199px) {
  .cs_card.cs_style_1 .row.cs_heading_bg {
    height: 80vh;
  }
  
  .row.cs_heading_bg .col-xl-6.order-lg-1,
  .row.cs_heading_bg .col-lg-7.order-lg-1 {
    padding-left: calc((100vw - min(960px, 100vw - 3rem)) / 2 + 12px);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* ============================================================
   RESPONSIVE — MD and below (< 992px)
   ============================================================ */

@media (max-width: 991px) {
  .cs_card.cs_style_1 .row.cs_heading_bg {
    min-height: auto;
    max-height: none;
    height: auto;
    flex-direction: column;
    display: flex;
  }
  
  /* Image en haut, pleine largeur */
  .row.cs_heading_bg .col-xl-5.order-lg-2,
  .row.cs_heading_bg .col-lg-5.order-lg-2 {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 50vh;
    max-height: 400px;
    order: 1;
  }
  
  .row.cs_heading_bg .cs_card_thumbnail {
    position: relative !important;
    height: 100% !important;
  }
  
  .row.cs_heading_bg .cs_card_thumbnail::before {
    background: linear-gradient(
      180deg,
      transparent 60%,
      var(--premium-primary, #0d1b2a) 100%
    ) !important;
  }
  
  .row.cs_heading_bg .cs_card_thumbnail::after {
    display: none !important;
  }
  
  /* Contenu en bas, aligné avec container */
  .row.cs_heading_bg .col-xl-6.order-lg-1,
  .row.cs_heading_bg .col-lg-7.order-lg-1 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2.5rem calc((100vw - min(720px, 100vw - 3rem)) / 2 + 12px);
    order: 2;
  }
}

/* ============================================================
   RESPONSIVE — SM (< 768px)
   ============================================================ */

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

/* ============================================================
   RESPONSIVE — XS (< 576px)
   ============================================================ */

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