/* Page Logiciels desktop — styles isolés sous .desk-page */

.desk-page {
  --desk-orange: #f1894e;
  --desk-cyan: #22d3ee;
  --desk-ink: #fff;
  --desk-copy: #cbd5e1;
  --desk-line: rgba(148, 163, 184, 0.22);
  --desk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
  background: #0f172a;
}

.desk-section {
  /* padding-block = --vitrine-section-y (vitrine-layout.css) */
  padding-block: var(--vitrine-section-y, clamp(8.5rem, 14vw, 17rem));
}

.desk-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 960px) {
  .desk-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem 3rem;
    align-items: end;
    margin-bottom: 3.25rem;
  }
}

.desk-page h1,
.desk-page h2,
.desk-page h3 {
  text-wrap: balance;
}

.desk-rule {
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: var(--desk-orange);
}

.desk-meta {
  margin: 1.15rem 0 0;
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.desk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  color: var(--desk-copy);
}

.desk-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .desk-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.desk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.18s var(--desk-ease), border-color 0.18s var(--desk-ease), transform 0.18s var(--desk-ease);
}

.desk-btn--primary {
  background: #f1894e;
  color: #fff;
}

.desk-btn--primary:hover {
  background: #e0783c;
}

.desk-btn--ghost {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
}

.desk-btn--ghost:hover {
  background: rgba(30, 41, 59, 0.72);
}

.desk-btn:active {
  transform: translateY(1px);
}

.desk-btn:focus-visible {
  outline: 2px solid var(--desk-cyan);
  outline-offset: 3px;
}

.desk-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #0f172a;
  color: #f8fafc;
}

.desk-hero__rays,
.desk-hero .light-rays,
.desk-hero .light-rays canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.desk-hero__rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 46% at 50% -6%, rgba(125, 211, 252, 0.22), transparent 64%),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.06), transparent 72%);
}

.desk-hero__copy {
  position: relative;
  z-index: 2;
  padding-top: 2.75rem;
  padding-bottom: 3.25rem;
}

.desk-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.desk-hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  width: 100%;
}

.desk-hero__stage {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding: 0.5rem 0.35rem;
  overflow: visible;
}

.desk-hero__device {
  width: min(40rem, 98vw);
  aspect-ratio: 5 / 4;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.5));
}

.desk-hero__device:active {
  cursor: grabbing;
}

.desk-hero__device canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.desk-hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-hero);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.desk-hero__title span:last-child {
  color: var(--desk-orange);
}

.desk-hero__lead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
}

.desk-hero__actions {
  margin-top: 1.65rem;
}

.desk-hero__labels {
  margin-top: 1.35rem;
}

@media (min-width: 1100px) {
  .desk-hero__copy {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }

  .desk-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(32rem, 1.25fr);
    gap: 1.25rem 1.5rem;
    align-items: center;
  }

  .desk-hero__intro {
    justify-content: center;
    min-height: min(38rem, 74vh);
  }

  .desk-hero__stage {
    order: 0;
    justify-self: stretch;
    width: 100%;
    overflow: visible;
    padding: 0.75rem 0.5rem 0.75rem 0;
  }

  .desk-hero__device {
    width: 100%;
    max-width: none;
    aspect-ratio: 5 / 4;
    min-height: min(34rem, 54vh);
  }

  .desk-hero__title {
    font-size: var(--fs-hero);
  }
}

.desk-part {
  padding: 1.25rem 0 1.35rem;
  border-top: 1px solid var(--desk-line);
}

.desk-part h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 750;
  line-height: 1.25;
}

.desk-part p {
  margin: 0;
  max-width: 42rem;
}

.desk-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 960px) {
  .desk-grid--2 {
    grid-template-columns: 1fr 1fr;
    gap: 0 3.5rem;
  }

  .desk-grid--2 .desk-part {
    border-top: 0;
    padding-top: 0;
    padding-left: 1.15rem;
    border-left: 2px solid rgba(241, 137, 78, 0.7);
  }

  .desk-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2.5rem;
  }

  .desk-grid--3 .desk-part {
    border-top: 0;
    padding-top: 0;
    padding-left: 1.05rem;
    border-left: 2px solid rgba(241, 137, 78, 0.55);
  }
}

/* Étapes : boutons / panneau */
.desk-path {
  display: grid;
  gap: 1.5rem;
}

.desk-path__tabs {
  display: grid;
  gap: 0.7rem;
}

.desk-path__tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--desk-ease), background 0.25s var(--desk-ease), box-shadow 0.25s var(--desk-ease);
}

.desk-path__tab:hover {
  border-color: rgba(241, 137, 78, 0.35);
}

.desk-path__tab:focus-visible {
  outline: 2px solid var(--desk-orange);
  outline-offset: 2px;
}

.desk-path__tab.is-current {
  border-color: rgba(241, 137, 78, 0.55);
  background: linear-gradient(135deg, rgba(241, 137, 78, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: inset 3px 0 0 var(--desk-orange);
}

.desk-path__num {
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: rgba(241, 137, 78, 0.62);
}

.desk-path__tab.is-current .desk-path__num {
  color: var(--desk-orange);
}

.desk-path__label {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
}

.desk-path__tab.is-current .desk-path__label {
  color: #fff;
}

.desk-path__stage {
  position: relative;
  min-height: 16rem;
  padding: 1.45rem 1.35rem 1.55rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(160deg, rgba(241, 137, 78, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.12);
}

.desk-path__panel[hidden] {
  display: none;
}

.desk-path__kicker {
  margin: 0 0 0.7rem;
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--desk-orange);
}

.desk-path__panel h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.desk-path__panel > p:last-child {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  line-height: 1.65;
}

@media (min-width: 1100px) {
  .desk-path {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    gap: clamp(1.75rem, 3vw, 3.25rem);
    align-items: stretch;
    min-height: 30rem;
  }

  .desk-path__tabs {
    height: 100%;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .desk-path__tab {
    height: 100%;
    align-items: center;
    padding: 1.35rem 1.35rem;
  }

  .desk-path__stage {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 2.4rem 2.5rem;
  }

  .desk-path__panel h3 {
    font-size: clamp(2rem, 2.4vw, 2.75rem);
  }
}

.desk-dossier {
  padding: 1.25rem 0;
  border-top: 1px solid var(--desk-line);
}

.desk-dossier h3 {
  margin: 0 0 0.85rem;
  font-size: 1.28rem;
}

.desk-dossier__note {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.75);
}

.desk-dossier dl {
  margin: 0;
}

.desk-dossier dl > div {
  padding: 0.75rem 0 0.75rem 0.85rem;
  border-top: 1px solid var(--desk-line);
  border-left: 2px solid rgba(34, 211, 238, 0.32);
}

.desk-dossier dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desk-dossier dd {
  margin: 0;
  line-height: 1.55;
}

.desk-center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.desk-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  color: rgba(226, 232, 240, 0.85);
  font-weight: 650;
  text-decoration: none;
}

.desk-cta-ghost:hover {
  color: #fff;
}

.light .desk-page {
  background: transparent;
}

.light .desk-path__tab {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

.light .desk-path__label,
.light .desk-path__panel h3,
.light .desk-part h3 {
  color: #0f172a;
}

.light .desk-path__panel > p:last-child,
.light .desk-part p {
  color: #475569;
}

.light .desk-path__stage {
  background:
    linear-gradient(160deg, rgba(241, 137, 78, 0.08), transparent 42%),
    #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

/* Proportions grand écran : cadre et rôles typographiques fluides. */

@media (min-width: 1600px) {
 .desk-hero__grid, .desk-head, .desk-path { gap: var(--vitrine-gap); }
 .desk-hero__lead { max-width: 54ch; }
 .desk-hero .desk-hero__device { max-width: 80rem; margin-inline: auto; }
 .desk-path__tab { min-height: 4em; }
 .desk-path__label { font-size: var(--fs-button); }
 .desk-path__num, .desk-meta, .desk-chips { font-size: var(--fs-small); }
 .desk-page .desk-meta { font-size: var(--fs-label); }
 .desk-path__panel > p:last-child { max-width: 68ch; }
}
