/* Herozion Enterprise — page layout + motion */

.enterprise-page {
  background: #000;
  color: var(--text, #f5f5f7);
  min-height: 100vh;
  overflow-x: clip;
}

.scroll-fx-section--enterprise {
  --section-tint: rgba(8, 12, 22, 0.45);
  --fx-glow: rgba(41, 151, 255, 0.14);
  --fx-x: 42%;
  --fx-y: 28%;
}

/* ── Nav: langues + CTA sans chevauchement ── */
.enterprise-page .nav-inner {
  max-width: min(1280px, 100%);
  width: 100%;
  gap: 12px;
}

.enterprise-page .docs-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
}

.enterprise-page .lang-switcher {
  flex-shrink: 0;
}

.enterprise-page .ent-nav-cta {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13px;
  padding: 8px 14px;
  line-height: 1.2;
}

.enterprise-page .nav-links {
  min-width: 0;
  gap: 14px;
}

.enterprise-page .nav-links a {
  white-space: nowrap;
  font-size: 14px;
}

.enterprise-page .section-inner,
.enterprise-page .ent-hero-inner {
  width: min(1120px, 100%);
  max-width: 1120px;
  margin-inline: auto;
  box-sizing: border-box;
}

.enterprise-page .section-inner {
  padding-inline: clamp(16px, 4vw, 32px);
}

@media (min-width: 1600px) {
  .enterprise-page .nav-inner,
  .enterprise-page .section-inner,
  .enterprise-page .ent-hero-inner {
    max-width: 1280px;
  }
  .enterprise-page .section-inner,
  .enterprise-page .ent-hero-inner {
    width: min(1280px, 100%);
  }
}

@media (max-width: 1180px) {
  .enterprise-page .nav-links {
    gap: 10px;
  }
  .enterprise-page .nav-links a {
    font-size: 13px;
  }
  .enterprise-page .ent-nav-cta {
    font-size: 12px;
    padding: 7px 12px;
  }
}

@media (max-width: 1024px) {
  .enterprise-page .docs-nav-right .ent-nav-cta {
    display: none;
  }
}

@media (max-width: 720px) {
  .enterprise-page .docs-nav-right .lang-switcher {
    display: none;
  }
}

/* ── Hero ── */
.ent-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h, 52px) + 48px) 24px 72px;
  overflow: hidden;
}

.ent-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ent-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.ent-hero-glow--a {
  width: min(56vw, 520px);
  height: min(56vw, 520px);
  left: -8%;
  top: 12%;
  background: rgba(41, 151, 255, 0.22);
}

.ent-hero-glow--b {
  width: min(48vw, 440px);
  height: min(48vw, 440px);
  right: -6%;
  bottom: 8%;
  background: rgba(48, 209, 88, 0.1);
}

.ent-orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(72vw, 680px);
  height: min(72vw, 680px);
  transform: translate(-50%, -50%);
  opacity: 0.35;
}

.ent-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(41, 151, 255, 0.22);
  animation: ent-orbit-spin 28s linear infinite;
}

.ent-orbit-ring--2 {
  inset: 14%;
  border-color: rgba(255, 255, 255, 0.08);
  animation-duration: 40s;
  animation-direction: reverse;
}

.ent-orbit-ring--3 {
  inset: 28%;
  border-color: rgba(48, 209, 88, 0.14);
  animation-duration: 52s;
}

@keyframes ent-orbit-spin {
  to { transform: rotate(360deg); }
}

.ent-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}

.ent-brand {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f5f5f7;
}

.ent-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #f5f5f7;
}

.ent-lede {
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-muted, #86868b);
}

.ent-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.ent-hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: var(--text-dim, #515154);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ent-hero-meta li {
  position: relative;
  padding-left: 14px;
}

.ent-hero-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f5f5f7;
  transform: translateY(-50%);
}

/* Hero entrance (class toggled by page script / motion) */
.ent-hero:not(.is-ent-ready) .ent-brand,
.ent-hero:not(.is-ent-ready) .ent-title,
.ent-hero:not(.is-ent-ready) .ent-lede,
.ent-hero:not(.is-ent-ready) .ent-hero-actions,
.ent-hero:not(.is-ent-ready) .ent-hero-meta {
  opacity: 0;
  transform: translateY(22px);
}

.ent-hero.is-ent-ready .ent-brand,
.ent-hero.is-ent-ready .ent-title,
.ent-hero.is-ent-ready .ent-lede,
.ent-hero.is-ent-ready .ent-hero-actions,
.ent-hero.is-ent-ready .ent-hero-meta {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ent-hero.is-ent-ready .ent-title { transition-delay: 0.08s; }
.ent-hero.is-ent-ready .ent-lede { transition-delay: 0.16s; }
.ent-hero.is-ent-ready .ent-hero-actions { transition-delay: 0.24s; }
.ent-hero.is-ent-ready .ent-hero-meta { transition-delay: 0.32s; }

/* ── Sections ── */
.ent-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.ent-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  margin-top: 48px;
}

.ent-pillar {
  padding: 8px 0 4px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.ent-pillar-num {
  display: block;
  margin: 18px 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim, #515154);
}

.ent-pillar h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ent-pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted, #86868b);
}

.motion-scenes .ent-pillar {
  opacity: 0;
  transform: translateY(28px);
}

.motion-scenes .ent-pillar.is-ent-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Process scroll scene ── */
.ent-process-scene {
  position: relative;
}

.motion-scenes .ent-process-scene {
  height: 260vh;
}

.ent-process-sticky {
  position: relative;
  padding: 96px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.motion-scenes .ent-process-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h, 52px) + 28px) 24px 40px;
  opacity: calc(1 - var(--ent-exit, 0) * 0.65);
}

.ent-process-copy {
  text-align: center;
  max-width: 680px;
}

.motion-scenes .ent-process-copy {
  opacity: 0;
}

.ent-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1100px, 100%);
  perspective: 1400px;
}

.ent-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 18px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 20px);
  background: rgba(255, 255, 255, 0.02);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.motion-scenes .ent-step {
  opacity: 0;
}

.ent-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ent-step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.ent-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted, #86868b);
}

.ent-process-hint {
  display: none;
}

.motion-scenes .ent-process-hint {
  display: block;
  margin: 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6e6e73;
  animation: story-hint-bob 2s ease-in-out infinite;
}

/* ── Paths (interactive) ── */
.ent-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.ent-path {
  padding: 28px 24px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-lg, 20px);
  background: rgba(17, 17, 17, 0.85);
}

.ent-path--alt {
  background: rgba(10, 14, 12, 0.9);
  border-color: rgba(48, 209, 88, 0.18);
}

.ent-path h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.ent-path > p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-muted, #86868b);
  line-height: 1.45;
}

.ent-path ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ent-path li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted, #86868b);
  line-height: 1.4;
}

.ent-path li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5f5f7;
}

.ent-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ent-path-mail {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim, #515154);
  line-height: 1.6;
}

.ent-path-mail a {
  color: var(--text-muted, #86868b);
  text-decoration: none;
}

.ent-path-mail a:hover {
  color: var(--text, #f5f5f7);
}

/* ── Responsive layout ── */
@media (max-width: 1100px) {
  .ent-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ent-hero {
    min-height: auto;
    padding: calc(var(--nav-h, 52px) + 36px) 20px 56px;
  }

  .ent-brand {
    font-size: clamp(24px, 7vw, 36px);
  }

  .ent-title {
    font-size: clamp(24px, 6.2vw, 36px);
  }

  .ent-lede {
    font-size: 16px;
  }

  .ent-hero-actions,
  .ent-path-actions {
    width: 100%;
  }

  .ent-hero-actions .btn-primary,
  .ent-hero-actions .btn-ghost,
  .ent-path-actions .btn-primary,
  .ent-path-actions .btn-ghost {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
  }

  .ent-pillars {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ent-paths,
  .ent-steps {
    grid-template-columns: 1fr;
  }

  .ent-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .ent-orbit {
    width: min(96vw, 520px);
    height: min(96vw, 520px);
    opacity: 0.22;
  }

  .motion-scenes .ent-process-scene {
    height: 300vh;
  }

  .ent-process-sticky {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 560px) {
  .ent-hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .ent-path {
    padding: 22px 18px;
  }

  .ent-step {
    padding: 20px 16px;
  }

  .motion-scenes .ent-process-scene {
    height: 340vh;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .ent-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ent-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ent-orbit-ring { animation: none; }
  .ent-process-hint { animation: none; }
  .ent-hero:not(.is-ent-ready) .ent-brand,
  .ent-hero:not(.is-ent-ready) .ent-title,
  .ent-hero:not(.is-ent-ready) .ent-lede,
  .ent-hero:not(.is-ent-ready) .ent-hero-actions,
  .ent-hero:not(.is-ent-ready) .ent-hero-meta {
    opacity: 1;
    transform: none;
  }
  .motion-scenes .ent-pillar,
  .motion-scenes .ent-step,
  .motion-scenes .ent-process-copy {
    opacity: 1;
    transform: none;
  }
}
