#xsContact {
  --xs-accent: #7fa4b8;
  --xs-focus: rgba(127,164,184,.55);

  --_xs-white: var(--xs-white, #f6f8f7);
  --_xs-deep:  var(--xs-deep,  #1f2a32);
  --_xs-ink:   var(--xs-ink,   #0b1218);
  --_xs-accent: var(--xs-accent, #7fa4b8);

  --_xs-shadow:      var(--xs-shadow,      0 18px 50px rgba(9,15,22,.10));
  --_xs-shadow2:     var(--xs-shadow2,     0 12px 28px rgba(9,15,22,.08));
  --_xs-shadowHover: var(--xs-shadowHover, 0 22px 60px rgba(9,15,22,.14));

  --_xs-r-lg: var(--xs-r-lg, 24px);
  --_xs-pad:  var(--xs-pad,  22px);
  --_xs-header-h: var(--xs-header-h, 78px);

  --pl-surface: rgba(255,255,255,.92);
  --pl-ink: rgba(31,42,50,.86);
  --pl-muted: rgba(31,42,50,.72);
  --pl-hairline: rgba(31,42,50,.12);

  --pl-sheen: linear-gradient(135deg,
    rgba(255,255,255,.65),
    rgba(255,255,255,.22) 38%,
    rgba(255,255,255,.10) 62%,
    rgba(255,255,255,.42)
  );

  --ct-hero-img: url("/medias/aion.png");

  /* contrôlé par JS */
  --ct-panel-y: 0px;
}

/* HERO */
#xsContact .ct-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: none !important;
}

@supports not (height: 1dvh) {
  #xsContact .ct-hero {
    min-height: 100vh;
  }
}

#xsContact .ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ct-hero-img) center / cover no-repeat;
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
  transform: scale(1.03);
}

#xsContact .ct-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1200px 760px at 50% 82%,
      rgba(255,255,255,.12),
      rgba(31,42,50,.10) 55%,
      rgba(11,18,24,.28) 100%
    ),
    linear-gradient(180deg, rgba(11,18,24,.10), rgba(11,18,24,.26));
  pointer-events: none;
}

#xsContact .ct-heroInner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 36px 0 100px;
}

/* PANEL */
#xsContact .ct-heroPanel {
  width: min(980px, 100%);
  margin: 0 auto;
  border-radius: calc(var(--_xs-r-lg) + 6px);

  background: rgba(12,18,24,.24);
  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    0 28px 90px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.10);

  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);

  padding: 34px 28px 26px;

  position: relative;
  overflow: hidden;

  transform: translate3d(0, var(--ct-panel-y), 0);
  will-change: transform;
}

#xsContact .ct-heroPanel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(900px 360px at 30% 0%,
      rgba(255,255,255,.16),
      rgba(255,255,255,.06) 55%,
      transparent 75%
    ),
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 55%);
  pointer-events: none;
  opacity: .95;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #xsContact .ct-heroPanel {
    background: rgba(11,18,24,.44);
  }
}

/* Badge debug parallax */
#xsContact[data-ct-parallax="on"] .ct-heroPanel::after {
  content: "PARALLAX ON";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(127,164,184,.18);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* TYPO */
#xsContact .ct-kicker {
  margin: 0 0 10px;
  color: rgba(255,255,255,.90);
  font-weight: 900;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-size: 12px;
}

#xsContact .ct-h1 {
  margin: 0 0 10px;
  font-weight: 950;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 18px 48px rgba(0,0,0,.22);
}

#xsContact .ct-h2 {
  margin: 0 0 12px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.4;
  max-width: 820px;
}

#xsContact .ct-lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
  max-width: 860px;
}

#xsContact .ct-heroBadges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#xsContact .ct-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Fade bas */
#xsContact .ct-heroFade {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 130px;
  background: linear-gradient(180deg, transparent, var(--_xs-white) 92%);
  z-index: 2;
  pointer-events: none;
}

/* CONTENT */
#xsContact .ct-page {
  background: var(--_xs-white);
  color: var(--_xs-deep);
  padding: 56px 0 110px;
}

#xsContact .ct-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--_xs-pad);
}

#xsContact .ct-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 26px;
  font-size: 16.8px;
  line-height: 1.85;
  color: var(--pl-muted);
}

#xsContact .ct-card,
#xsContact .ct-formWrap {
  border-radius: calc(var(--_xs-r-lg) + 2px);
  background: var(--pl-sheen), var(--pl-surface);
  border: 1px solid var(--pl-hairline);
  box-shadow: var(--_xs-shadow);
}

#xsContact .ct-card {
  padding: 34px 28px;
  margin: 0 0 26px;
}

#xsContact .ct-card h2 {
  font-size: 24px;
  font-weight: 950;
  margin: 0 0 14px;
  color: var(--_xs-deep);
  letter-spacing: -0.01em;
}

#xsContact .ct-card p {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--pl-ink);
  line-height: 1.78;
}

#xsContact .ct-card p:last-child {
  margin-bottom: 0;
}

#xsContact .ct-formWrap {
  padding: 34px 28px 26px;
  box-shadow: var(--_xs-shadow2);
}

#xsContact .ct-formTitle {
  font-size: 22px;
  font-weight: 950;
  margin: 0 0 18px;
  color: var(--_xs-deep);
  letter-spacing: -0.01em;
}

#xsContact .ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#xsContact .ct-spanAll {
  grid-column: 1 / -1;
}

#xsContact .ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#xsContact .ct-field label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(31,42,50,.70);
  text-transform: uppercase;
  letter-spacing: .10em;
}

#xsContact .ct-field input,
#xsContact .ct-field textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--pl-hairline);
  border-radius: 14px;
  font-size: 16px;
  background: rgba(255,255,255,.96);
  color: var(--_xs-deep);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#xsContact .ct-field textarea {
  min-height: 170px;
  resize: vertical;
}

#xsContact .ct-field input:focus,
#xsContact .ct-field textarea:focus {
  border-color: rgba(127,164,184,.55);
  box-shadow: 0 0 0 5px rgba(127,164,184,.16);
}

#xsContact .ct-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

#xsContact .ct-btn {
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  background: var(--_xs-accent);
  color: #fff;
  font-weight: 950;
  font-size: 15px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  min-height: 46px;
}

@media (hover: hover) and (pointer: fine) {
  #xsContact .ct-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(127,164,184,.30);
    filter: saturate(1.05);
  }
}

#xsContact .ct-btn:focus-visible {
  outline: 2px solid rgba(127,164,184,.55);
  outline-offset: 3px;
}

#xsContact .ct-note {
  margin: 22px 0 0;
  font-size: 14.5px;
  color: rgba(31,42,50,.70);
  text-align: center;
  line-height: 1.75;
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
  #xsContact .ct-hero {
    min-height: 90dvh;
  }
  @supports not (height: 1dvh) {
    #xsContact .ct-hero {
      min-height: 90vh;
    }
  }
  #xsContact .ct-heroInner {
    padding: 24px 0 80px;
  }
  #xsContact .ct-page {
    padding: 44px 0 90px;
  }
  #xsContact .ct-grid {
    grid-template-columns: 1fr;
  }
  #xsContact .ct-card,
  #xsContact .ct-formWrap {
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #xsContact .ct-heroPanel {
    transform: none !important;
  }
}