/* =========================================
   CONTACT SPLIT SECTION
   Institutional / premium split layout
   ONT mood: restrained glass, ONT mark motif, chart accent
========================================= */

.section-contact-split {
  --sc-font-display: "Manrope", "Avenir Next", "Avenir", sans-serif;
  --sc-font-body: "Roboto", system-ui, sans-serif;

  --sc-brown: #391a00;
  --sc-orange: #ef8e01;
  --sc-teal: #009e96;
  --sc-text: #17120e;
  --sc-muted: rgba(30, 24, 20, 0.78);

  /* parallax variable controlled by GSAP */
  --sc-right-bg-shift: 0px;

  position: relative;
  isolation: isolate;
  overflow: clip;
  font-family: var(--sc-font-body);
  background: linear-gradient(180deg, #faf8f3 0%, #f3f1ea 100%);
  padding-block: 0;
}

/* Desktop full-bleed split backgrounds (pseudo halves) */
.section-contact-split::before,
.section-contact-split::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50vw;
  z-index: 0;
  display: none;
  pointer-events: none;
}

/* Left half background */
.section-contact-split::before {
  left: 50%;
  transform: translateX(-100%);
  background:
    radial-gradient(circle at 14% 18%, rgba(239, 142, 1, 0.10), transparent 45%),
    radial-gradient(circle at 80% 82%, rgba(0, 158, 150, 0.08), transparent 42%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f2eb 100%);
}

/* Right half background (mountains + overlays, parallax-ready) */
.section-contact-split::after {
  left: 50%;
  background-image:
    linear-gradient(180deg, rgba(8, 14, 20, 0.28), rgba(8, 14, 20, 0.38)),
    url("../images/Paysage_du_territoire_de_Masisi.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: center, center calc(50% + var(--sc-right-bg-shift));
}

.split-contact__container {
  position: relative;
  z-index: 1;
}

.split-contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.split-contact__pane {
  position: relative;
  min-width: 0;
}

/* Mobile stacked backgrounds */
.split-contact__pane--left {
  background:
    radial-gradient(circle at 14% 18%, rgba(239, 142, 1, 0.09), transparent 42%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f2eb 100%);
}

.split-contact__pane--right {
  background-image:
    linear-gradient(180deg, rgba(8, 14, 20, 0.30), rgba(8, 14, 20, 0.42)),
   url("../images/Paysage_du_territoire_de_Masisi.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: center, center calc(50% + var(--sc-right-bg-shift));
}

.split-contact__content {
  position: relative;
  min-width: 0;
}

/* =========================
   LEFT SIDE CONTENT
========================= */

.split-contact__content--left {
  min-height: 340px;
  display: grid;
  align-content: center;
  padding-block: 1.15rem;
  color: var(--sc-text);
}

.split-contact__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .65rem;
}

.split-contact__eyebrow {
  font-family: var(--sc-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(57, 26, 0, 0.76);
}

.split-contact__mark {
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  opacity: .92;
}

.split-contact__title {
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.03;
  color: #120f0c;
  font-size: clamp(1.35rem, 2vw, 2.25rem);
  max-width: 14ch;
  text-wrap: balance;
}

.split-contact__text {
  margin-top: .85rem;
  display: grid;
  gap: .7rem;
  max-width: 60ch;
}

.split-contact__text p {
  margin: 0;
  color: var(--sc-muted);
  font-size: .96rem;
  line-height: 1.72;
}

.split-contact__cta {
  margin-top: .95rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;

  border-radius: 999px;
  padding: .42rem .75rem;
  border: 1px solid rgba(0, 158, 150, .20);
  background: rgba(255,255,255,.52);
  color: var(--sc-teal);

  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: .75rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.split-contact__cta:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.78);
  border-color: rgba(0, 158, 150, .28);
}

.split-contact__cta i {
  font-size: 1rem;
}

/* Chart accent (visual continuity with GM section) */
.split-contact__chart-accent {
  position: relative;
  margin-top: 1rem;
  width: min(240px, 58%);
  height: 22px;
  opacity: .92;
}

.split-contact__chart-accent .line {
  position: absolute;
  inset: 9px 0 auto 0;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(239, 142, 1, .25) 0%,
      rgba(239, 142, 1, .65) 28%,
      rgba(0, 158, 150, .55) 68%,
      rgba(0, 158, 150, .25) 100%);
}

.split-contact__chart-accent .dot {
  position: absolute;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--sc-orange);
  box-shadow: 0 0 0 3px rgba(239, 142, 1, .10);
}

.split-contact__chart-accent .dot-1 { left: 14%; }
.split-contact__chart-accent .dot-2 { left: 48%; }
.split-contact__chart-accent .dot-3 {
  left: 82%;
  border-color: var(--sc-teal);
  box-shadow: 0 0 0 3px rgba(0, 158, 150, .10);
}

/* =========================
   RIGHT SIDE CONTENT
========================= */

.split-contact__content--right {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding-block: 1.15rem;
}

/* Subtle overlays for brand color and readability */
.split-contact__content--right::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 142, 1, .14), transparent 42%),
    radial-gradient(circle at 82% 20%, rgba(0, 158, 150, .12), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(0,0,0,.10));
}

/* Outer stage = receives scroll scale/y */
.split-contact__logo-stage {
  position: relative;
  z-index: 1;
  width: min(360px, 78%);
  display: grid;
  place-items: center;
  transform-origin: center center;
  will-change: transform;
}

/* Inner wrap = no card, just logo support/aura/ring */
.split-contact__logo-wrap {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  transform-origin: center center;
  will-change: transform;
}

/* Soft glow behind logo */
.split-contact__logo-wrap::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 115%;
  aspect-ratio: 1.9 / 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 50%, rgba(239, 142, 1, 0.20), transparent 58%),
    radial-gradient(circle at 72% 50%, rgba(0, 158, 150, 0.17), transparent 62%),
    radial-gradient(circle, rgba(255,255,255,0.07), transparent 72%);
  filter: blur(12px);
  opacity: .95;
  pointer-events: none;
  transition: filter 320ms ease, opacity 240ms ease;
}

/* Thin premium ring (not a card) */
.split-contact__logo-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 112%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 0 1px rgba(57, 26, 0, 0.05);
  background:
    linear-gradient(90deg,
      rgba(239, 142, 1, 0.07),
      rgba(255,255,255,0.03),
      rgba(0, 158, 150, 0.07));
  pointer-events: none;
  transform-origin: center center;
  transition: transform 320ms ease, opacity 240ms ease, border-color 240ms ease;
}

.split-contact__logo-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border-top: 1px solid rgba(255,255,255,0.34);
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  opacity: .7;
}

/* Monochrome logo recommended */
.split-contact__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 24px rgba(0,0,0,.22))
    drop-shadow(0 2px 8px rgba(0,0,0,.12));
  transition: transform 320ms ease, filter 320ms ease;
  will-change: transform;
}

/* ONT ghost motif */
.split-contact__mark--ghost {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 86px;
  height: 64px;
  opacity: .16;
  z-index: 0;
  pointer-events: none;
}


/* ================================================ */
/* ++++++++++++++++++++++++++++++++++++++++++++++++ */

/* Hover details (restrained, desktop only) */
@media (hover: hover) and (pointer: fine) {
  .split-contact__logo-wrap:hover .split-contact__logo-ring {
    transform: translate(-50%, -50%) rotate(-2.2deg) scale(1.01);
    border-color: rgba(255,255,255,0.28);
  }

  .split-contact__logo-wrap:hover::before {
    filter: blur(13px);
    opacity: 1;
  }

  .split-contact__logo-wrap:hover .split-contact__logo {
    transform: scale(1.012);
  }
}

/* =========================
   BREAKPOINTS
========================= */

@media (min-width: 576px) {
  .split-contact__content--left,
  .split-contact__content--right {
    padding-block: 1.45rem;
  }

  .split-contact__content--left { min-height: 380px; }
  .split-contact__text p { font-size: 1rem; }
}

@media (min-width: 768px) {
  .split-contact__content--left { min-height: 420px; }
  .split-contact__content--right { min-height: 340px; }

  .split-contact__title {
    font-size: clamp(1.5rem, 1.5vw + .95rem, 2.35rem);
  }

  .split-contact__text p {
    line-height: 1.75;
  }

  .split-contact__logo-stage {
    width: min(420px, 72%);
  }
}

@media (min-width: 992px) {
  .section-contact-split {
    background: none;
  }

  .section-contact-split::before,
  .section-contact-split::after {
    display: block;
  }

  .split-contact__layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  /* Let section pseudo-elements own the full split background */
  .split-contact__pane--left,
  .split-contact__pane--right {
    background: transparent;
  }

  .split-contact__content--left,
  .split-contact__content--right {
    min-height: 470px;
    padding-block: 2rem;
  }

  .split-contact__content--left {
    padding-right: 1rem;
  }

  .split-contact__content--right {
    padding-left: 1rem;
  }

  .split-contact__title {
    max-width: 13ch;
  }

  .split-contact__text {
    max-width: 58ch;
  }

  .split-contact__text p {
    font-size: .98rem;
  }

  .split-contact__logo-stage {
    width: min(470px, 68%);
  }

  .split-contact__mark--ghost {
    width: 96px;
    height: 72px;
    right: 18px;
    bottom: 14px;
  }
}

@media (min-width: 1200px) {
  .split-contact__content--left,
  .split-contact__content--right {
    min-height: 520px;
    padding-block: 2.4rem;
  }

  .split-contact__content--left {
    padding-right: 1.25rem;
  }

  .split-contact__content--right {
    padding-left: 1.25rem;
  }

  .split-contact__title {
    font-size: clamp(1.65rem, 1.2vw + .98rem, 2.6rem);
  }

  .split-contact__text p {
    font-size: 1.02rem;
    line-height: 1.78;
  }

  .split-contact__logo-stage {
    width: min(530px, 66%);
  }

  .split-contact__logo-ring {
    width: 116%;
    height: 74%;
  }

  .split-contact__chart-accent {
    width: 250px;
  }
}

@media (min-width: 1400px) {
  .split-contact__content--left,
  .split-contact__content--right {
    min-height: 560px;
    padding-block: 2.8rem;
  }

  .split-contact__text p {
    font-size: 1.04rem;
  }

  .split-contact__logo-stage {
    width: min(570px, 64%);
  }
}



/* added +++++++++++++++++++++++++++++++++++++ */

/* Base (0 - 575.98px) */
.split-contact__content--right{
  /* responsive knobs */
  --pad: 1rem;
  --stage-max: 520px;
  --stage-percent: 92%;

  --wrap-max: 360px;
  --wrap-percent: 78%;

  --logo-max: 260px;
  --logo-percent: 70%;

  --ring-inset: 8%;

  --ghost-w: 140px;
  --ghost-h: 100px;
  --ghost-offset: 18px;

  display: grid;
  place-items: center;
  padding: var(--pad);
}

.split-contact__logo-stage{
  position: relative;
  display: grid;
  place-items: center;
  width: min(var(--stage-max), var(--stage-percent));
  aspect-ratio: 1 / 1;
  transform-origin: center center;
}

.split-contact__logo-wrap{
  position: relative;
  display: grid;
  place-items: center;
  width: min(var(--wrap-max), var(--wrap-percent));
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.08), transparent 62%),
    radial-gradient(circle at 30% 25%, rgba(0,158,150,0.12), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(239,142,1,0.10), transparent 64%);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.split-contact__logo-ring{
  position: absolute;
  inset: var(--ring-inset);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(0,158,150,0.08) inset;
  opacity: .8;
}

.split-contact__logo{
  width: min(var(--logo-max), var(--logo-percent));
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.35));
}

.split-contact__mark--ghost{
  position: absolute;
  width: var(--ghost-w);
  height: var(--ghost-h);
  opacity: .08;
  bottom: var(--ghost-offset);
  right: var(--ghost-offset);
  transform: rotate(12deg);
}


/* ≥ 576px */
@media (min-width: 576px){
  .split-contact__content--right{
    --pad: 1.25rem;
    --stage-max: 560px;
    --wrap-max: 390px;
    --logo-max: 280px;
    --ring-inset: 7.5%;
    --ghost-w: 155px;
    --ghost-h: 110px;
    --ghost-offset: 20px;
  }
}

/* ≥ 768px */
@media (min-width: 768px){
  .split-contact__content--right{
    --pad: 1.5rem;
    --stage-max: 620px;
    --wrap-max: 430px;
    --logo-max: 310px;
    --ring-inset: 7%;
    --ghost-w: 175px;
    --ghost-h: 125px;
    --ghost-offset: 22px;
  }
}

/* ≥ 992px */
@media (min-width: 992px){
  .split-contact__content--right{
    --pad: 2rem;
    --stage-max: 700px;
    --wrap-max: 480px;
    --logo-max: 350px;
    --ring-inset: 6.5%;
    --ghost-w: 200px;
    --ghost-h: 140px;
    --ghost-offset: 24px;
  }
}

/* ≥ 1200px */
@media (min-width: 1200px){
  .split-contact__content--right{
    --pad: 2.25rem;
    --stage-max: 760px;
    --wrap-max: 520px;
    --logo-max: 380px;
    --ring-inset: 6%;
    --ghost-w: 220px;
    --ghost-h: 155px;
    --ghost-offset: 26px;
  }
}

/* ≥ 1400px */
@media (min-width: 1400px){
  .split-contact__content--right{
    --pad: 2.5rem;
    --stage-max: 820px;
    --wrap-max: 560px;
    --logo-max: 410px;
    --ring-inset: 5.5%;
    --ghost-w: 240px;
    --ghost-h: 170px;
    --ghost-offset: 28px;
  }
}