/* Murphy — parité UX avec la narration NEOO.
   Ce fichier ne cible jamais .murphy-hero : la scène hero reste inchangée. */

.murphy-page.n1-page {
  --n1-accent: #a5d8ff;
  --n1-grad: var(--cb-accent-gradient);
  --n1-card: rgba(8, 18, 34, 0.72);
  --n1-card-2: rgba(15, 31, 53, 0.82);
  --n1-line: rgba(145, 193, 232, 0.17);
  --n1-line-soft: rgba(145, 193, 232, 0.09);
  --n1-ink: #f4f7ff;
  --n1-ink-soft: rgba(219, 228, 246, 0.86);
  --n1-muted: rgba(165, 183, 210, 0.88);
  --n1-shell: min(1180px, calc(100% - 48px));
  background: #050b18;
}

/* Même shell de navigation que neoo.html. */
.murphy-page .murphy-neoo-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
}

.murphy-page .murphy-header-logo {
  display: block;
  width: 100%;
  aspect-ratio: 656.34 / 91.14;
  background: url("/Logos/cloudbizz_logo_full_quality_white.svg") left center / contain no-repeat;
  filter: none;
}

.murphy-page .n1-subnav .nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  font: inherit;
}

.murphy-page .n1-subnav :is(a, .nav-trigger) {
  color: rgba(220, 230, 247, 0.78);
}

.murphy-page .n1-subnav :is(a, .nav-trigger):hover,
.murphy-page .n1-subnav :is(a, .nav-trigger):focus-visible {
  color: #fff;
}

.murphy-page .n1-subnav .nav-trigger svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: rotate 180ms cubic-bezier(.16, 1, .3, 1);
}

.murphy-page .n1-subnav .nav-trigger[aria-expanded="true"] svg {
  rotate: 180deg;
}

.murphy-page .n1-subnav a[aria-current="location"] {
  color: #fff;
}

.murphy-page .n1-subnav a[aria-current="location"]::after {
  background: #b9dcfb;
}

.murphy-page .login-link {
  color: rgba(220, 230, 247, 0.78);
}

.murphy-page .login-link:hover,
.murphy-page .login-link:focus-visible {
  color: #fff;
}

.murphy-page .page-breadcrumb {
  display: none;
}

/* Le moteur NEOO démarre ici, après la hero. */
.murphy-page #main {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.murphy-page:not(.murphy-cinema-started) :is(
  .n1-cinema-progress,
  .n1-cinema-cue,
  .n1-reading-light
) {
  visibility: hidden;
  opacity: 0 !important;
}

.murphy-page #main > .murphy-section.n1-section,
.murphy-page #main > .murphy-cta.n1-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

.murphy-page #main .n1-shell {
  min-width: 0;
}

.murphy-page #main .n1-head {
  max-width: 66ch;
}

.murphy-page #main .n1-eyebrow {
  color: var(--cb-eyebrow-ink-dark);
}

.murphy-page #main .n1-title {
  position: relative;
  margin: 0;
  color: var(--cb-display-ink-dark);
  font-family: var(--cb-display-font);
  font-size: var(--cb-title-section);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: var(--cb-display-leading);
  text-align: left;
  text-wrap: balance;
}

.murphy-page #main .n1-title::after {
  display: none;
}

.murphy-page #main .n1-title em {
  font-style: normal;
  background: var(--cb-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.murphy-page #main .n1-lead {
  max-width: 54ch;
  color: var(--cb-lead-ink-dark);
  font-size: var(--cb-lead-section);
  font-weight: var(--cb-lead-weight);
  letter-spacing: var(--cb-lead-tracking);
}

/* Capacités : cartes et preuves compactées dans une scène lisible. */
.murphy-page #features .murphy-features__divider {
  display: none;
}

.murphy-page #features .murphy-features__grid {
  margin-top: 0;
}

.murphy-page #features .murphy-feature.n1-card {
  min-height: 0;
  padding: clamp(17px, 2.2svh, 23px) 22px;
  gap: 9px;
  border: 1px solid var(--n1-line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--n1-card-2), var(--n1-card));
}

.murphy-page #features .murphy-feature.n1-card:hover {
  border-color: rgba(165, 216, 255, 0.32);
  box-shadow: 0 30px 60px -38px rgba(61, 134, 210, 0.74);
}

.murphy-page #features .murphy-feature__icon.n1-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.murphy-page #features .murphy-feature h3 {
  margin-top: 2px;
  color: var(--n1-ink);
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 600;
  line-height: 1.25;
}

.murphy-page #features .murphy-feature p {
  color: var(--n1-ink-soft);
  font-size: 13.5px;
  line-height: 1.48;
}

.murphy-page #features .murphy-feature__arrow {
  right: 18px;
  bottom: 16px;
  opacity: 0.38;
}

.murphy-page #proof .murphy-band.n1-note {
  display: block;
  max-width: none;
  margin-top: clamp(16px, 2.2svh, 24px);
  padding: clamp(17px, 2.2svh, 23px) clamp(18px, 2vw, 26px);
  border-color: var(--n1-line);
  background:
    radial-gradient(circle at 50% -40%, rgba(86, 126, 255, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(11, 25, 47, 0.88), rgba(6, 15, 31, 0.9));
}

.murphy-page #proof .murphy-band__wave {
  opacity: 0.42;
}

.murphy-page #proof .murphy-band__stats {
  gap: 12px;
}

.murphy-page #proof .murphy-bstat {
  padding-block: clamp(11px, 1.4svh, 15px);
}

.murphy-page #proof .murphy-bstat__head b {
  font-weight: var(--cb-display-weight);
}

.murphy-page #proof .murphy-band__trust {
  margin-top: 12px;
  padding-block: 12px;
}

/* Méthode. */
.murphy-page #how .murphy-steps.n1-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.murphy-page #how .murphy-steps .n1-step {
  justify-items: start;
  gap: 9px;
  padding: clamp(20px, 2.7svh, 28px) 24px;
  border: 1px solid var(--n1-line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--n1-card-2), var(--n1-card));
  text-align: left;
}

.murphy-page #how .murphy-steps .n1-step:not(:last-child)::after {
  display: none;
}

.murphy-page #how .murphy-steps .n1-step__num {
  position: static;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--n1-accent);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.murphy-page #how .murphy-steps .murphy-icon {
  width: 46px;
  height: 46px;
  margin-top: 4px;
}

.murphy-page #how .murphy-steps h3 {
  margin-top: 4px;
  color: var(--n1-ink);
  font-size: 18px;
  font-weight: 600;
}

.murphy-page #how .murphy-steps p {
  color: var(--n1-ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Cas d'usage. */
.murphy-page #use-cases .murphy-grid.n1-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.murphy-page #use-cases .murphy-grid .n1-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.7svh, 27px) 23px;
  border: 1px solid var(--n1-line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--n1-card-2), var(--n1-card));
}

.murphy-page #use-cases .murphy-grid .n1-card__icon {
  width: 44px;
  height: 44px;
}

.murphy-page #use-cases .murphy-grid h3 {
  margin-top: 5px;
  color: var(--n1-ink);
  font-size: 17px;
  font-weight: 600;
}

.murphy-page #use-cases .murphy-grid p {
  margin-top: 0;
  color: var(--n1-ink-soft);
  font-size: 13.5px;
}

/* Écosystème : même lecture en trois nœuds que les flows NEOO. */
.murphy-page #ecosystem .murphy-eco__map.n1-flow {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(22px, 3vw, 46px);
  margin-top: 0;
}

.murphy-page #ecosystem .murphy-eco__side {
  gap: 12px;
}

.murphy-page #ecosystem .murphy-eco__side span {
  min-height: 92px;
  border-color: var(--n1-line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--n1-card-2), var(--n1-card));
}

.murphy-page #ecosystem .murphy-eco__center {
  min-width: 170px;
  padding: 20px;
  border: 1px solid var(--n1-line);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 25%, rgba(86, 126, 255, 0.15), rgba(7, 18, 34, 0.76) 68%);
}

/* CTA final aligné sur la composition NEOO. */
.murphy-page #demo .murphy-cta__inner.n1-cta {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
  max-width: 1080px;
  padding: clamp(30px, 4svh, 52px) clamp(28px, 5vw, 68px);
  text-align: center;
}

.murphy-page #demo .murphy-cta__copy h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: var(--cb-title-cta);
}

.murphy-page #demo .murphy-cta__copy p {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--n1-ink-soft);
  font-size: clamp(15px, 1.1vw, 17.5px);
}

.murphy-page #demo .murphy-cta__mark {
  width: 72px;
  height: 72px;
  margin: 0;
}

.murphy-page #demo .murphy-cta__action {
  justify-items: center;
}

@media (max-width: 1120px) {
  .murphy-page .n1-subnav .nav-trigger {
    justify-content: space-between;
  }

  body.murphy-page .n1-subnav :is(a, .nav-trigger) {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid rgba(146, 176, 216, 0.14);
    border-radius: 11px;
    color: rgba(220, 230, 247, 0.88);
    background: rgba(10, 18, 32, 0.72);
  }

  body.murphy-page .n1-subnav :is(a, .nav-trigger):hover,
  body.murphy-page .n1-subnav :is(a, .nav-trigger):focus-visible {
    color: #fff;
    border-color: rgba(146, 176, 216, 0.3);
    background: rgba(18, 32, 55, 0.92);
  }
}

/* Navigation mobile : même barre compacte et même panneau fixe que NEOO. */
@media (max-width: 1120px) {
  body.murphy-page .site-header--cinematic {
    height: 72px;
    min-height: 72px;
    background: rgba(5, 11, 24, 0.9);
  }

  body.murphy-page .site-header--cinematic.has-mobile-menu-open {
    background: rgba(5, 11, 24, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.murphy-page .site-header__inner {
    width: 100%;
    max-width: none;
    height: 72px;
    min-height: 72px;
    padding: 0 14px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: 72px;
    gap: 14px;
    align-items: center;
  }

  body.murphy-page .brand--cinematic {
    grid-column: 1;
    grid-row: 1;
    width: 126px;
    height: 48px;
    justify-self: start;
  }

  body.murphy-page .brand--cinematic .murphy-header-logo {
    width: 126px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    filter: none;
  }

  body.murphy-page .header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    width: 82px;
    height: 48px;
    justify-self: end;
    gap: 0;
    padding: 0;
  }

  body.murphy-page .header-actions .login-link,
  body.murphy-page .header-actions .header-cta {
    display: none;
  }

  body.murphy-page .language-select {
    display: flex;
    width: 82px;
    height: 48px;
    margin: 0;
  }

  body.murphy-page .language-select select {
    width: 82px;
    min-width: 82px;
    min-height: 48px;
    padding: 0 30px 0 16px;
    border: 1px solid rgba(146, 176, 216, 0.26);
    border-radius: 12px;
    color: #e6eefb;
    background: rgba(10, 18, 32, 0.42);
    font-size: 16px;
    font-weight: 600;
  }

  body.murphy-page .language-select::after {
    right: 13px;
    border-color: rgba(230, 238, 251, 0.88);
  }

  body.murphy-page .menu-toggle {
    position: relative;
    grid-column: 4;
    grid-row: 1;
    display: inline-flex;
    width: 103px;
    min-width: 103px;
    height: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid rgba(146, 176, 216, 0.26);
    border-radius: 12px;
    color: rgba(226, 235, 250, 0.92);
    background: rgba(10, 18, 32, 0.42);
  }

  body.murphy-page .menu-toggle span,
  body.murphy-page .menu-toggle span:nth-child(2),
  body.murphy-page .menu-toggle span:nth-child(3) {
    position: absolute;
    left: 16px;
    display: block;
    width: 16px;
    height: 2px;
    margin: 0;
    border-radius: 99px;
    background: currentColor;
    transition: top 0.2s ease, opacity 0.16s ease, transform 0.2s ease;
  }

  body.murphy-page .menu-toggle span:nth-child(1) { top: 17px; }
  body.murphy-page .menu-toggle span:nth-child(2) { top: 23px; }
  body.murphy-page .menu-toggle span:nth-child(3) { top: 29px; }

  body.murphy-page .menu-toggle b {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
  }

  body.murphy-page .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
  }

  body.murphy-page .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  body.murphy-page .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
  }

  body.murphy-page .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    z-index: 170;
    display: none;
    width: 100%;
    max-height: calc(100svh - 72px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 14px 20px;
    border: 0;
    border-top: 1px solid rgba(146, 176, 216, 0.14);
    border-radius: 0;
    background: rgba(5, 11, 24, 0.98);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
    overflow-x: hidden;
    overflow-y: auto;
    transform: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.murphy-page .site-nav.is-open {
    display: flex;
  }

  body.murphy-page .site-nav :is(a, .nav-trigger) {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    padding: 12px 4px;
    border: 0;
    border-bottom: 1px solid rgba(146, 176, 216, 0.14);
    border-radius: 0;
    background: transparent;
  }

  body.murphy-page .site-nav .nav-trigger svg {
    display: block;
  }
}

@media (max-width: 360px) {
  body.murphy-page .site-header__inner {
    padding-inline: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  body.murphy-page .brand--cinematic,
  body.murphy-page .brand--cinematic .murphy-header-logo {
    width: 102px;
  }

  body.murphy-page .header-actions,
  body.murphy-page .language-select,
  body.murphy-page .language-select select {
    width: 68px;
    min-width: 68px;
  }

  body.murphy-page .language-select select {
    padding-inline: 12px 26px;
    font-size: 14px;
  }

  body.murphy-page .menu-toggle {
    width: 86px;
    min-width: 86px;
    padding-inline: 12px;
  }

  body.murphy-page .menu-toggle span,
  body.murphy-page .menu-toggle span:nth-child(2),
  body.murphy-page .menu-toggle span:nth-child(3) {
    left: 12px;
    width: 15px;
  }

  body.murphy-page .menu-toggle b {
    font-size: 14px;
  }
}

@media (min-width: 1321px) {
  body.murphy-page .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body.murphy-page .brand--cinematic {
    justify-self: start;
  }

  body.murphy-page .n1-subnav {
    gap: clamp(14px, 1.35vw, 20px);
  }
}

@media (max-width: 900px) {
  .murphy-page {
    --n1-shell: calc(100% - 32px);
  }

  .murphy-page #main .n1-title {
    font-size: clamp(38px, 9vw, 58px);
  }

  .murphy-page #main .n1-lead {
    font-size: clamp(18px, 4.6vw, 25px);
  }

  .murphy-page #proof .murphy-band__stats,
  .murphy-page #how .murphy-steps.n1-steps,
  .murphy-page #use-cases .murphy-grid.n1-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .murphy-page #ecosystem .murphy-eco__map.n1-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .murphy-page #main .n1-eyebrow {
    font-size: 13px;
  }

  .murphy-page #main .n1-title {
    font-size: clamp(34px, 10.2vw, 48px);
  }

  .murphy-page #main .n1-lead {
    font-size: clamp(17px, 5.2vw, 22px);
  }

  .murphy-page #proof .murphy-band__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .murphy-page #proof .murphy-band__trust {
    font-size: 11px;
  }

  .murphy-page #demo .murphy-cta__inner.n1-cta {
    width: calc(100% - 32px);
    padding: 26px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .murphy-page #main > .n1-section {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
}
