/* Intégration locale : les sources (CMS, DAM, navigateur) se branchent sur Desktop, jamais sur le cloud. */

.li-hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 65% at 75% 45%, rgba(244, 81, 30, 0.28), transparent 66%),
    var(--ps-ember);
  color: #fff;
}

.li-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.li-hero-copy {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.ps-page .li-h1 {
  max-width: 11em;
  color: #fff;
  font-size: clamp(46px, 5.8vw, 96px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.li-lead {
  max-width: 34em;
  color: var(--ps-muted-dark);
  font-size: 20px;
  line-height: 1.5;
}

.li-hero-scene {
  flex: 1 1 540px;
  min-width: 0;
}

/* Mini-scène (m-scene des maquettes) */

.li-scene {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.li-board {
  position: relative;
  width: 600px;
  height: 360px;
  margin: 0 auto;
}

.li-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.li-wire {
  fill: none;
  stroke: #3a2419;
  stroke-width: 3;
  transition: stroke 0.25s;
}

.li-wire.is-active {
  stroke: var(--ps-orange-light);
}

.li-wire--cloud {
  stroke-dasharray: 6 6;
}

.li-s {
  position: absolute;
  left: 0;
  width: 150px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--ps-line-strong);
  border-radius: 12px;
  background: var(--ps-ink);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s;
}

.li-s--0 { top: 30px; }
.li-s--1 { top: 140px; }
.li-s--2 { top: 250px; }

.li-s:hover,
.li-s.is-active {
  border-color: var(--ps-orange-light);
}

.li-desk {
  position: absolute;
  top: 130px;
  left: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 100px;
  border-radius: 14px;
  background: var(--ps-orange);
  color: #fff;
  text-align: center;
  box-shadow: 0 0 40px rgba(244, 81, 30, 0.5);
}

.li-desk-title {
  font-weight: 700;
}

.li-desk-code {
  font-family: var(--ps-font-mono);
  font-size: 11px;
}

.li-cloud {
  position: absolute;
  top: 40px;
  left: 500px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 96px;
  padding: 8px;
  border: 1px dashed rgba(255, 211, 189, 0.3);
  border-radius: 10px;
  color: var(--ps-faint-dark);
  font-size: 12px;
  text-align: center;
}

.li-cloud-no {
  color: #ef6f88;
  font-weight: 700;
}

.li-cap {
  margin-top: 6px;
  color: var(--ps-muted-dark);
  font-size: 16px;
  text-align: center;
}

.li-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.li-detail[hidden] {
  display: none;
}

.li-cap-title {
  color: #fff;
  font-weight: 700;
}

.li-cap-code {
  color: var(--ps-orange-light);
  font-family: var(--ps-font-mono);
  font-size: 13px;
}

/* Surfaces d'intégration (texte technique de la page actuelle) */

.li-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.li-head .f-lead {
  max-width: 34em;
  margin: 0;
  color: var(--ps-muted-light);
}

.li-note {
  flex-direction: column;
}

.li-surfaces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.li-surface {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1.5px solid var(--ps-ink);
}

.li-surface-code {
  color: var(--ps-orange-dark);
  font-family: var(--ps-font-mono);
  font-size: 13px;
}

.ps-page .li-surface-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.li-surface-text {
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.li-proofs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
  list-style: none;
}

.li-proofs li::before {
  content: "✓ ";
  color: var(--ps-orange);
  font-weight: 800;
}

@media (max-width: 900px) {
  .li-hero-inner {
    padding-top: 32px;
  }

  .ps-page .li-h1 {
    font-size: clamp(42px, 12.5vw, 64px);
  }

  .li-scene {
    zoom: 0.62;
  }

  .li-surfaces {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .li-scene {
    zoom: 0.54;
  }
}

@media (prefers-reduced-motion: reduce) {
  .li-wire,
  .li-s {
    transition: none;
  }
}
