/* =====================================================
   GLOBAL SETTINGS
===================================================== */
/* ================================
   CFA PAGE — SCROLL OVERRIDE (FINAL)
================================ */

/* override global scroll lock */
html[data-page="cfa-slides"],
html[data-page="cfa-slides"] body {
  overscroll-behavior: auto;
  overflow-y: auto;
  height: auto;
}

html[data-page="cfa-slides"] {
  overscroll-behavior-y: contain;
}

/* let content grow normally */
html[data-page="cfa-slides"] main {
  min-height: unset;
  padding-bottom: 0;
  overflow: visible;
}

/* html {
  scroll-behavior: smooth;
} */

/* body[data-page="cfa-slides"] layout fix */
body[data-page="cfa-slides"] {

  /* Light Theme */
  background: var(--bg);
  color: var(--ink);
}



/* CFA SERVICE GROUPS */
.cfa-service-group {
  margin-top: 18px;
}

.cfa-service-group h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0b5e92;
  margin-bottom: 6px;
}

.cfa-service-group ul {
  padding-left: 16px;
}

.cfa-service-group li {
  margin-bottom: 4px;
  color: #334155;
}

/* =====================================================
   CAROUSEL CONTAINER (Original Flex Logic)
===================================================== */
.cfa-carousel-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 60px 0;
  /* Premium Background for Glass Effect */
  background: radial-gradient(circle at 50% 50%, rgba(56, 133, 175, 0.08) 0%, rgba(2, 6, 23, 0) 70%);
}

.cfa-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible;
}

.cfa-carousel {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 20px;
  /* Slight gap for spacing */
  padding: 20px 0;
  /* Space for shadow */
}

.cfa-carousel::-webkit-scrollbar {
  display: none;
}

.cfa-card {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  opacity: 1;
  visibility: visible;

  /* GLASSMORPHISM */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);

  border-radius: 24px;
  /* Premium Shadow */
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Active state for styling only (not visibility) */
.cfa-card.is-active {
  z-index: 2;
}

/* Ensure inner content fits */
.cfa-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  width: 100%;
  padding: 40px;
  align-items: center;
}


.cfa-slide-content {
  width: 100%;
  max-width: 1250px;
  padding: 60px 40px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cfa-slide-content--single {
  grid-template-columns: 1fr;
  text-align: center;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

.cfa-slide-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  /* Gradient Text */
  background: linear-gradient(90deg, #0b5e92, #3885af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cfa-slide h1 {
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 22px;
}

.cfa-slide h2 {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.cfa-slide-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  opacity: 0.9;
  margin-bottom: 22px;
}

.cfa-slide-list {
  margin-top: 12px;
  padding-left: 20px;
  line-height: 1.65;
}

.cfa-slide--intro h1,
.cfa-slide--intro .cfa-slide-desc {
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.22);
}

/* =====================================================
   TAGS
===================================================== */

.cfa-slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

/* =====================================================
   CTA BUTTONS
===================================================== */

.cfa-btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  /* transition: 0.25s ease; -- REMOVED */
}

.cfa-btn--primary {
  background: linear-gradient(90deg, #0B5E92, #3885AF);
  color: #fff;
  border-color: #0B5E92;
}

.cfa-btn--primary:hover {
  /* transform: translateY(-2px); -- REMOVED */
  box-shadow: 0 10px 26px rgba(11, 94, 146, 0.45);
}

.cfa-btn--ghost {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.6);
}

.cfa-btn--ghost:hover {
  /* transform: translateY(-2px); -- REMOVED */
  border-color: #0B5E92;
}

.cfa-slide-cta-bar {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: inline-flex;
  gap: 14px;
}

/* =====================================================
   WHITE BOX
===================================================== */

.cfa-whitebox {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 32px;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.04);
  width: 100%;
  box-sizing: border-box;
}

/* =====================================================
   MEDIA IMAGE
===================================================== */

.cfa-media-image {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  /* Stronger Shadow */
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.4);
}

.cfa-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================
   ARROWS
===================================================== */

/* =====================================================
   CAROUSEL HEADER
===================================================== */
.cfa-carousel-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.cfa-carousel-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
}

.cfa-carousel-header p {
  color: #475569;
  margin-left: auto;
  /* Center the description */
  margin-right: auto;
  /* Center the description */
}

/* =====================================================
   ARROWS (Light Theme Fix)
===================================================== */
/* ... arrows ... no changes here, skipping block ... */
/* NOTE: User content skipped for brevity, replacing relevant sections below */

.cfa-slide-arrow,
.cfa-carousel-arrow {
  position: absolute;
  width: 56px;
  /* Matched previous outside arrow size */
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  /* transition: all 0.2s ease; -- REMOVED */
}

.cfa-carousel-arrow:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  /* transform: translateY(-50%) scale(1.05); -- REMOVED */
}

.cfa-carousel-arrow--prev {
  left: -80px;
  /* Matched previous outside arrow position */
}

.cfa-carousel-arrow--next {
  right: -80px;
  /* Matched previous outside arrow position */
}

@media (max-width: 1350px) {

  /* Matched responsive fix */
  .cfa-carousel-arrow--prev {
    left: 16px;
  }

  .cfa-carousel-arrow--next {
    right: 16px;
  }
}

/* =====================================================
   DOTS (Premium Pill Design)
===================================================== */
.cfa-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.cfa-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cfa-carousel-dot:hover {
  background: #94a3b8;
}

.cfa-carousel-dot.is-active {
  width: 32px;
  /* Pill Expansion */
  border-radius: 99px;
  background: linear-gradient(90deg, #0b5e92, #3885af);
  box-shadow: 0 4px 10px rgba(11, 94, 146, 0.25);
}


.cfa-slide-arrow:hover,
.cfa-slide-arrow--prev:hover {
  opacity: 1;
  /* transform: translateY(-2px); -- REMOVED */
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

/* HERO : flèche en bas au centre */
.cfa-slide--intro .cfa-slide-arrow {
  left: 50%;
  right: auto;
  bottom: 32px;
  top: auto;
  transform: translateX(-50%);
}

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

@media (max-width: 1200px) {
  .cfa-carousel-wrapper {
    padding: 0 70px;
  }

  .cfa-glass {
    inset: 10px 70px;
  }
}

@media (max-width: 1024px) {
  .cfa-carousel-wrapper {
    padding: 0 40px;
  }

  .cfa-glass {
    inset: 10px 40px;
  }

  .cfa-card-inner {
    grid-template-columns: 1fr;
  }

  .cfa-card-media {
    justify-content: center;
    order: -1;
    margin-bottom: 10px;
  }
}

@media (max-width: 1000px) {
  .cfa-slide-content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cfa-slide-content--single {
    text-align: center;
  }

  .cfa-media-image {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {

  /* CAROUSEL WRAPPER & GLASS */
  .cfa-carousel-wrapper {
    padding: 0 18px;
    position: relative;
    overflow: visible;
  }

  .cfa-glass {
    display: none !important;
  }

  /* CARD LAYOUT & STYLES */
  .cfa-card {
    height: auto;
    display: flex;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .cfa-card-inner {
    padding: 0;
    /* Remove padding for full-bleed image */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
  }

  .cfa-card-text {
    padding: 24px 24px 32px 24px;
    /* Add padding to text wrapper instead */
    order: 2;
    /* Text below */
  }

  .cfa-card-media {
    order: 1;
    /* Image on top */
    width: 100%;
    margin: 0;
  }

  /* Reset media image styles for mobile */
  .cfa-media-image {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    /* Top corners only */
    box-shadow: none;
    /* Simplify shadow on mobile */
    aspect-ratio: 16/10;
    /* Better mobile ratio */
  }

  .cfa-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ARROWS */
  .cfa-carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
  }

  .cfa-carousel-arrow--prev {
    left: 8px;
  }

  .cfa-carousel-arrow--next {
    right: 8px;
  }

  /* SECTION & BACKGROUNDS */
  .cfa-carousel-section {
    background: transparent;
  }

  .cfa-carousel {
    background: transparent;
    padding-left: 16px;
    padding-right: 16px;
    align-items: stretch;
  }

  /* BACKGROUND REMOVAL */
  .cfa-carousel::before,
  .cfa-carousel::after,
  .cfa-carousel-section::before,
  .cfa-carousel-section::after {
    content: none !important;
    display: none !important;
  }

  .cfa-carousel,
  .cfa-carousel-section {
    background: transparent !important;
  }
}


/* Using global animation system */