/* NexaFlow AI — démonstrations, ajout indépendant du thème existant. */
#demonstrations { scroll-margin-top: 96px; }
.nf-demo-section { background: linear-gradient(180deg, #f6f9fd, #fff); }
.nf-demo-section h2 { max-width: 920px; }
.nf-demo-note { max-width: 840px; padding: 16px 20px; margin-top: 24px; border-left: 3px solid #2563eb; background: #eaf1fc; border-radius: 0 12px 12px 0; color: #334155; font-size: .95rem; }
.nf-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 38px; align-items: start; }
.nf-demo-card { min-width: 0; overflow: hidden; border: 1px solid #dbe5f1; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .05); }
.nf-demo-copy { padding: 25px 26px 21px; }
.nf-demo-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; color: #475569; font-size: .8rem; font-weight: 650; }
.nf-demo-meta span:first-child { color: #1d4ed8; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.nf-demo-copy h3 { margin-bottom: 10px; font-size: 1.45rem; line-height: 1.25; }
.nf-demo-subtitle { margin: 0; min-height: 3.2em; color: #475569; }
.nf-demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #07111f; }
.nf-demo-video:focus-visible { outline: 3px solid #2563eb; outline-offset: -3px; }
.nf-demo-detail { padding: 20px 26px 24px; }
.nf-demo-detail p { margin: 0; color: #475569; }
.nf-demo-detail .nf-demo-specific { margin-top: 12px; font-size: .88rem; color: #475569; }
.nf-demo-detail .nf-demo-error { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fff7ed; color: #7c2d12; }
.nf-demo-error[hidden] { display: none; }
.nf-demo-error a, .nf-demo-credits a { text-decoration: underline; text-underline-offset: 3px; }
.nf-demo-next { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 36px; padding: 28px; border: 1px solid #dbe5f1; border-radius: 20px; background: #f6f9fd; }
.nf-demo-next h3 { line-height: 1.3; margin-bottom: 9px; }
.nf-demo-next p { color: #475569; margin: 0; }
.nf-demo-next .btn { flex-shrink: 0; text-align: center; }
.nf-demo-credits { margin-top: 24px; color: #475569; font-size: .85rem; }
.nf-demo-credits summary { cursor: pointer; width: fit-content; padding: 5px 0; }
.nf-demo-credits summary:focus-visible, .nf-demo-section a:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; border-radius: 3px; }
.nf-demo-credits p { max-width: 900px; margin: 10px 0 0; }
/* Une navigation compacte laisse de la place au lien Démos. */
@media (min-width: 1241px) {
  .desktop-nav { gap: 16px; font-size: .92rem; }
  .desktop-nav .btn { padding-left: 16px; padding-right: 16px; }
  .mobile-menu { display: none; }
}
@media (max-width: 1240px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; place-items: center; cursor: pointer; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu:not([hidden]) { display: block; max-height: calc(100dvh - 76px); overflow-y: auto; }
}
@media (max-width: 760px) {
  .nf-demo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .nf-demo-copy { padding: 22px 20px 18px; }
  .nf-demo-subtitle { min-height: 0; }
  .nf-demo-detail { padding: 18px 20px 22px; }
  .nf-demo-next { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .nf-demo-next .btn { width: 100%; }
}
