/* Page logiciels scientifiques / industriels — hero photo + panneau technique. */
.sci-page {
  --sci-ink: #0f172a;
  --sci-orange: #f1894e;
  --sci-violet: #a78bfa;
  --sci-line: rgba(179, 200, 220, 0.18);
  --sci-muted: #b6c4d3;
  --sci-header: var(--site-header-height, 80px);
  /* Largeur éditoriale (même échelle que la Hero → 4K) */
  --sci-content-max: var(--vitrine-wide-max);
  --sci-shell-max: calc(var(--sci-content-max) + 2 * var(--vitrine-gutter));
  /* Alias du rythme site-wide (--vitrine-section-y dans vitrine-layout.css) */
  --sci-section-y: var(--vitrine-section-y, clamp(8.5rem, 14vw, 17rem));
  background: var(--sci-ink);
  color: #f3f5fa;
  font-family: var(--font-body);
}

/* Une seule source de vérité pour l’air haut / bas des sections */
.sci-page :is(
  .sci-panel--command,
  .sci-work-section,
  .sci-constraints-shell,
  .sci-types,
  .sci-section,
  .sci-integ,
  .sci-method-flow,
  .sci-refs,
  .sci-why,
  .sci-contact
) {
  padding-block: var(--sci-section-y);
}

/* Conteneurs de toute la page : élargissement progressif grand écran / 4K */
.sci-page .vitrine-page__inner {
  max-width: var(--sci-content-max);
}

.sci-page .max-w-8xl,
.sci-page .sci-section > .max-w-8xl,
.sci-page .sci-perf__shell,
.sci-page .sci-maintain__shell {
  max-width: var(--sci-shell-max);
}

@media (min-width: 1600px) {
  .sci-page {
    --sci-content-max: var(--vitrine-wide-max);
  }

  .sci-page > .vitrine-shell,
  .sci-page .sci-body.vitrine-shell,
  .sci-page .sci-constraints-shell.vitrine-shell,
  .sci-page .sci-types__intro.vitrine-shell,
  .sci-page .sci-integ__inner.vitrine-shell,
  .sci-page .sci-hero__content.vitrine-shell,
  .sci-page .sci-refs__inner.vitrine-shell,
  .sci-page .sci-why__inner.vitrine-shell {
    padding-left: clamp(2rem, 2.5vw, 3.5rem);
    padding-right: clamp(2rem, 2.5vw, 3.5rem);
  }

  .sci-page h2 {
    font-size: clamp(2.75rem, 3.2vw, 4.35rem);
  }

  .sci-page h3 {
    font-size: clamp(1.9rem, 1.85vw, 2.55rem);
  }

  .sci-page .sci-panel__lead,
  .sci-page .sci-types__lead,
  .sci-page .sci-constraints__lead,
  .sci-page .sci-perf__lead,
  .sci-page .sci-maintain__lead,
  .sci-page .sci-integ__intro {
    font-size: clamp(1.1rem, 1.05vw, 1.28rem);
  }

  .sci-page .sci-section .mb-10 h2 {
    max-width: min(62rem, 48vw);
  }

  .sci-page .sci-section .max-w-3xl {
    max-width: min(48rem, 42vw);
  }

  .sci-page .sci-integ__demo {
    min-height: clamp(34rem, 58vh, 46rem);
  }

  .sci-page .sci-work-section__grid {
    gap: clamp(2rem, 3.5vw, 4rem);
  }

  .sci-page .sci-app-slot {
    min-height: clamp(22rem, 36vh, 32rem);
  }
}

@media (min-width: 2200px) {
  .sci-page {
    --sci-content-max: var(--vitrine-wide-max);
  }

  .sci-page h2 {
    font-size: clamp(3.15rem, 2.85vw, 4.85rem);
  }

  .sci-page h3 {
    font-size: clamp(2.1rem, 1.55vw, 2.85rem);
  }

  .sci-page .sci-panel__title {
    max-width: 22ch;
  }

  .sci-page .sci-types__title,
  .sci-page .sci-integ__title,
  .sci-page .sci-perf__title,
  .sci-page .sci-maintain__title,
  .sci-page .sci-constraints__title {
    font-size: var(--fs-title);
  }

  .sci-page .sci-section .mb-10 h2 {
    max-width: min(72rem, 46vw);
  }

  .sci-page .sci-section .max-w-3xl {
    max-width: min(56rem, 38vw);
  }

  .sci-page .sci-integ__demo {
    min-height: clamp(38rem, 55vh, 52rem);
  }

  .sci-page .sci-types-carousel__track {
    --sci-types-card-h: min(68vh, 44rem);
  }

  .sci-page .sci-types-card--portrait {
    flex-basis: min(36vw, 34rem);
    width: min(36vw, 34rem);
  }

  .sci-page .sci-app-slot {
    min-height: clamp(26rem, 38vh, 38rem);
  }
}

@media (min-width: 3000px) {
  .sci-page {
    --sci-content-max: var(--vitrine-wide-max);
  }

  .sci-page h2 {
    font-size: clamp(3.5rem, 2.4vw, 5.35rem);
  }

  .sci-page .sci-types-carousel__track {
    --sci-types-card-h: min(64vh, 48rem);
  }

  .sci-page .sci-integ__demo {
    min-height: clamp(42rem, 52vh, 56rem);
  }

  .sci-page .sci-section .mb-10 h2 {
    max-width: min(84rem, 44vw);
  }
}

.sci-page :is(h1, h2, h3, p) {
  overflow-wrap: break-word;
}

.sci-page h1 {
  font-family: var(--font-title);
  font-size: clamp(2.35rem, 3.6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.sci-page h1 em {
  font-style: normal;
  color: var(--sci-orange);
}

.sci-page h2 {
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  line-height: 1.06;
  font-weight: 600;
}

.sci-page h3 {
  font-size: clamp(1.75rem, 2.15vw, 2.35rem);
  line-height: 1.12;
  font-weight: 600;
}

.sci-page p {
  color: #c5cfdb;
  font-size: 1rem;
  line-height: 1.8;
}

.sci-page a:focus-visible {
  outline: 2px solid var(--sci-orange);
  outline-offset: 5px;
}

.sci-kicker {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--sci-orange) !important;
  font-weight: 600;
}

/* —— Hero —— */
/* —— Hero orbitale (Terre + satellites) —— */
.sci-hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(72, 79, 138, 0.22), transparent 62%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(241, 137, 78, 0.08), transparent 50%),
    var(--sci-ink, #0f172a);
  color: #f4f6fa;
}

/* Scène = fond de toute la Hero (pas de fenêtre / carte) */
.sci-hero--orbital {
  min-height: min(92vh, 58rem);
  overflow: clip;
}

/* Champ d’étoiles (CSS) — derrière la scène 3D */
.sci-hero--orbital::before,
.sci-hero--orbital::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sci-hero--orbital::before {
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 18% 42%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 28% 18%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 36% 68%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 44% 8%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 52% 78%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 61% 22%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 70% 55%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 78% 14%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 86% 40%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 92% 72%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 12% 88%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 24% 60%, rgba(220, 230, 255, 0.8), transparent),
    radial-gradient(1px 1px at 48% 34%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 66% 90%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 82% 84%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 4% 50%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 96% 28%, rgba(255, 255, 255, 0.75), transparent);
  opacity: 0.85;
}

.sci-hero--orbital::after {
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 33% 48%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 57% 16%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 73% 63%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 89% 51%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 41% 82%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 6% 70%, rgba(200, 220, 255, 0.4), transparent),
    radial-gradient(1px 1px at 98% 90%, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.55;
  animation: sci-hero-twinkle 7s ease-in-out infinite alternate;
}

@keyframes sci-hero-twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .sci-hero--orbital::after {
    animation: none;
    opacity: 0.5;
  }
}

@media (min-width: 1920px) {
  .sci-hero--orbital {
    min-height: min(94vh, 68rem);
  }
}

@media (min-width: 2560px) {
  .sci-hero--orbital {
    min-height: min(92vh, 78rem);
  }
}

/* Conteneur éditorial Hero : suit --sci-content-max (défini sur .sci-page) */
.sci-hero--orbital > .sci-hero__content.vitrine-shell > .vitrine-page__inner {
  max-width: var(--sci-content-max);
}

/* Calque 3D : au-dessus des étoiles, derrière les textes */
.sci-hero--orbital .sci-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

/* Commandes scene : dans le flux, juste au-dessus du panneau glass */
.sci-hero__orbit-tools {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.85rem;
  min-height: 2.5rem;
  pointer-events: none;
}

.sci-hero--orbital .sci-orbital,
.sci-hero--orbital .sci-orbital__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.sci-orbital__stage--static,
.sci-orbital__fallback {
  background:
    radial-gradient(circle at 50% 48%, rgba(72, 79, 138, 0.28), transparent 58%),
    radial-gradient(circle at 50% 55%, rgba(20, 40, 70, 0.35), transparent 72%);
}

.sci-orbital__canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  touch-action: pan-y;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

/* Textes AU-DESSUS de la 3D, sélectionnables */
.sci-hero--orbital .sci-hero__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(2rem, 4vh, 3.25rem);
  pointer-events: auto;
}

.sci-hero--orbital .sci-hero__orbit-gap {
  pointer-events: none;
}

.sci-hero__content {
  position: relative;
  z-index: 4;
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(2rem, 4vh, 3.25rem);
}

.sci-hero__layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 100%;
  gap: 0;
}

.sci-hero__orbit-gap {
  flex: 1 1 auto;
  min-height: clamp(14rem, 34vh, 28rem);
  width: 100%;
}

/* Liquid glass — bien lisible sur fond nuit / Terre */
.sci-hero--orbital .sci-glass {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.35rem;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.05) 38%,
      rgba(72, 79, 138, 0.22) 100%
    ),
    rgba(10, 16, 32, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(72, 79, 138, 0.18);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  user-select: text;
  -webkit-user-select: text;
}

.sci-hero--orbital .sci-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 42%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.sci-hero--orbital .sci-glass > * {
  position: relative;
  z-index: 1;
}

.sci-hero--orbital .sci-glass--bar {
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(10, 16, 32, 0.58);
}

.sci-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #b6c4d3;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.75);
}

.sci-hero__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sci-orange, #f1894e);
  flex-shrink: 0;
}

.sci-page .sci-hero__title,
.sci-hero__title {
  margin: 0.65rem 0 0;
  max-width: none;
  width: min(100%, 48rem);
  font-family: var(--font-title);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #f4f6fa;
  text-shadow: 0 4px 36px rgba(15, 23, 42, 0.55);
}

@media (min-width: 1024px) {
  .sci-page .sci-hero__title,
  .sci-hero__title {
    width: min(100%, 52rem);
  }
}

@media (min-width: 1600px) {
  .sci-page .sci-hero__title,
  .sci-hero__title {
    width: min(100%, 58rem);
    font-size: var(--fs-hero);
  }
}

@media (min-width: 2200px) {
  .sci-page .sci-hero__title,
  .sci-hero__title {
    width: min(100%, 68rem);
    font-size: var(--fs-hero);
  }
}

.sci-hero__title em {
  font-style: normal;
  color: var(--sci-orange, #f1894e);
}

.sci-hero__lead-card .sci-orbital__caption {
  position: static;
  display: inline-flex;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(241, 137, 78, 0.35);
  border-radius: 999px;
  background: rgba(241, 137, 78, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 220, 196, 0.95);
}

.sci-orbital__credits.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sci-orbital__controls {
  position: relative;
  right: auto;
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  z-index: 4;
  pointer-events: auto;
}

.sci-orbital__ctrl {
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(180, 196, 214, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.9);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(6px);
}

.sci-orbital__ctrl:hover {
  border-color: rgba(241, 137, 78, 0.45);
  color: #fff;
}

.sci-orbital__ctrl:focus-visible {
  outline: 2px solid var(--sci-orange, #f1894e);
  outline-offset: 2px;
}

.sci-orbital__ctrl.is-active {
  border-color: rgba(241, 137, 78, 0.7);
  background: rgba(241, 137, 78, 0.2);
  color: #fff;
}

.sci-orbital__ctrl--pause.is-active {
  border-color: rgba(72, 79, 138, 0.8);
  background: rgba(72, 79, 138, 0.4);
}

.sci-hero__below {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
  margin-top: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.15rem 1.35rem;
}

.sci-hero__below.sci-glass {
  max-width: none;
}

.sci-hero__lead-card {
  min-width: 0;
}

.sci-hero__lead {
  margin: 0;
  max-width: 42rem;
  padding: 0;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.95);
}

@media (min-width: 2200px) {
  .sci-hero__lead {
    max-width: 48rem;
    font-size: 1.22rem;
  }
}


.sci-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sci-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sci-hero-btn--primary {
  background: linear-gradient(180deg, #ff9a5c, var(--sci-orange, #f1894e));
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(241, 137, 78, 0.35);
}

.sci-hero-btn--primary:hover {
  background: linear-gradient(180deg, #ffab74, #f1894e);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(241, 137, 78, 0.42);
}

.sci-hero-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sci-hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.sci-hero__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(1.15rem, 2.5vw, 1.75rem);
  padding-top: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.sci-page .sci-hero__tags,
.sci-hero__tags {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(166, 182, 200, 0.95);
}

.sci-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  color: #c5cfdb;
  font-size: 0.72rem;
  width: fit-content;
  text-decoration: none;
}

.sci-scroll-link span {
  color: var(--sci-orange, #f1894e);
  font-size: 1.2rem;
}

.sci-scroll-link:focus-visible {
  outline: 2px solid var(--sci-orange, #f1894e);
  outline-offset: 3px;
}

/* —— Panneau technique (autres usages éventuels) —— */
.sci-tech {
  width: 100%;
  max-width: 29rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid rgba(179, 200, 220, 0.28);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  color: #e8eef6;
  pointer-events: auto;
}

.sci-tech--fallback {
  opacity: 0.96;
}

.sci-tech__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sci-page .sci-tech__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.15;
}

.sci-page .sci-tech__caption,
.sci-page .sci-tech__demo {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(166, 182, 200, 0.92);
  line-height: 1.3;
}

.sci-page .sci-tech__demo {
  margin: 0;
  text-align: right;
  color: rgba(167, 139, 250, 0.95);
  max-width: 7.5rem;
}

.sci-tech__steps {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.sci-tech__steps li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(179, 200, 220, 0.14);
  border-radius: 8px;
  font-size: 0.78rem;
  color: rgba(182, 196, 211, 0.75);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sci-tech__steps li span {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.9);
}

.sci-tech__steps li[data-active="true"] {
  border-color: rgba(241, 137, 78, 0.45);
  color: #f8fafc;
  background: rgba(241, 137, 78, 0.08);
}

.sci-tech__steps li[data-active="true"] span {
  color: var(--sci-orange);
}

.sci-tech__chart-wrap {
  position: relative;
  margin-bottom: 0.55rem;
}

.sci-tech__chart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: rgba(8, 15, 28, 0.45);
  border: 1px solid rgba(179, 200, 220, 0.12);
  touch-action: none;
  cursor: crosshair;
}

.sci-tech__tip {
  position: absolute;
  top: 0.45rem;
  transform: translateX(-50%);
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(179, 200, 220, 0.22);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

.sci-tech__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  color: rgba(182, 196, 211, 0.9);
}

.sci-tech__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sci-tech__swatch {
  width: 0.7rem;
  height: 0.18rem;
  border-radius: 999px;
  display: inline-block;
}

.sci-tech__swatch--violet {
  background: var(--sci-violet);
}

.sci-tech__swatch--orange {
  background: var(--sci-orange);
}

.sci-tech__control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.sci-tech__control label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(182, 196, 211, 0.95);
}

.sci-tech__control input[type="range"] {
  width: 100%;
  accent-color: var(--sci-orange);
}

.sci-tech__control span {
  font-size: 0.72rem;
  color: #e2e8f0;
  min-width: 1.25rem;
  text-align: right;
}

/* —— Corps éditorial —— */
.sci-body {
  position: relative;
  z-index: 1;
  background: var(--sci-ink);
  /* Pas de padding ici : chaque .sci-panel / .sci-work-section porte --sci-section-y */
  padding-block: 0;
}

.sci-panel {
  width: min(100%, 48rem);
  padding: var(--sci-section-y, clamp(8.5rem, 14vw, 17rem)) 0;
  border-top: 1px solid var(--sci-line);
  scroll-margin-top: calc(var(--sci-header) + 1rem);
}

.sci-panel--command {
  width: 100%;
  max-width: none;
  border-top: 0;
}

.sci-panel > .sci-kicker {
  margin-bottom: 1.5rem;
}

.sci-panel > p:not(.sci-kicker) {
  margin-top: 1.3rem;
}

.sci-panel__intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: end;
}

.sci-panel__title {
  margin: 0;
  max-width: 18ch;
  color: #f3f5fa;
}

.sci-panel__lead {
  margin: 0;
  max-width: 36rem;
  justify-self: end;
  text-align: left;
  font-size: var(--fs-lead);
  line-height: 1.7;
  font-weight: 500;
  color: #c5d0de;
}

@media (max-width: 900px) {
  .sci-panel__intro-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.15rem;
  }

  .sci-panel__title {
    max-width: none;
  }

  .sci-panel__lead {
    justify-self: start;
    max-width: none;
  }
}

.sci-principle {
  border-top: 1px solid var(--sci-line);
  margin-top: 2rem;
  padding-top: 1.7rem;
}

.sci-principle h3 {
  font-size: 1.7rem;
}

.sci-topic {
  font-size: 0.78rem;
  color: #a7b6c9;
  margin-bottom: 0.7rem;
}

/* —— Sélecteur d’enjeux (remplace l’ancien sci-model-strip) —— */
.sci-constraints-shell {
  position: relative;
  border-block: 1px solid var(--sci-line);
  background: #151b33;
}

.sci-constraints {
  color: #f3f5fa;
}

.sci-constraints__header {
  max-width: 46rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.sci-constraints__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}

.sci-constraints__lead {
  margin: 0.9rem 0 0;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: #b6c4d3;
}

.sci-constraints__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.sci-constraints__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 9.5rem;
  padding: 1.15rem 1.2rem 1rem;
  border: 0;
  border-radius: 16px;
  background: #232a45;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sci-constraints__card:hover {
  background: #2a3250;
}

.sci-constraints__card.is-active {
  background: #fff;
  color: #152138;
}

.sci-constraints__card-title {
  font-family: var(--font-subtitle);
  font-size: var(--fs-subtitle);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sci-constraints__card-sub {
  margin-top: 0.35rem;
  font-family: var(--font-subtitle);
  font-size: 0.95rem;
  line-height: 1.4;
  color: #a7b6c9;
}

.sci-constraints__card.is-active .sci-constraints__card-sub {
  color: #5c6b80;
}

.sci-constraints__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(243, 245, 250, 0.92);
}

.sci-constraints__card.is-active .sci-constraints__card-foot {
  color: #152138;
}

.sci-constraints__card-foot svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.sci-constraints__card:focus-visible {
  outline: 2px solid var(--sci-orange);
  outline-offset: 3px;
}

.sci-constraints__panel {
  display: grid;
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 0.9rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border-radius: 24px;
  background: #fff;
  color: #152138;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

.sci-constraints__media {
  position: relative;
  margin: 0;
  min-height: 18rem;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
}

.sci-constraints__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  object-position: center;
}

.sci-constraints__media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem 1.05rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.82) 55%, rgba(15, 23, 42, 0.92) 100%);
  color: #fff;
}

.sci-constraints__media strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.sci-constraints__media span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.88);
}

.sci-constraints__detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.35rem 0.25rem 0.35rem 0.15rem;
}

.sci-constraints__eyebrow {
  margin: 0;
  font-size: 0.84rem;
  color: #7b8aa0;
}

.sci-page .sci-constraints__need-title {
  margin: 0.55rem 0 0;
  font-family: var(--font-subtitle);
  font-size: var(--fs-subtitle);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #152138;
}

.sci-page .sci-constraints__need-lead,
.sci-page .sci-constraints__block p,
.sci-page .sci-constraints__eyebrow {
  color: #5c6b80;
}

.sci-constraints__need-lead {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.sci-constraints__block {
  margin-top: 1.25rem;
}

.sci-constraints__block h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #152138;
}

.sci-constraints__block p {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #5c6b80;
}

.sci-constraints__block--accent {
  padding-left: 0.95rem;
  border-left: 3px solid var(--sci-orange);
}

.sci-constraints__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.sci-constraints__footer p {
  margin: 0;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a7b6c9;
}

.sci-constraints__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  background: #e8a072;
  color: #152138;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.sci-constraints__cta:hover {
  background: #f0ad82;
  transform: translateY(-1px);
}

.sci-constraints__cta svg {
  width: 1.05rem;
  height: 1.05rem;
}

.sci-constraints__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .sci-constraints__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sci-constraints__panel {
    grid-template-columns: 1fr;
  }

  .sci-constraints__media,
  .sci-constraints__media img {
    min-height: 14rem;
  }
}

@media (max-width: 639px) {
  .sci-constraints__grid {
    grid-template-columns: 1fr;
  }

  .sci-constraints__card {
    min-height: 7.5rem;
  }

  .sci-constraints__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .sci-constraints__cta {
    width: 100%;
  }
}

.sci-section {
  border-bottom: 1px solid var(--sci-line);
}

.sci-section > .absolute {
  display: none;
}

.sci-section > .max-w-8xl {
  max-width: var(--sci-shell-max);
}

.sci-section .mb-10 {
  margin-bottom: clamp(3.5rem, 5vw, 5.5rem);
}

.sci-section .mb-10 h2 {
  max-width: 52rem;
}

.sci-section .mb-10 > .h-1 {
  height: 1px;
  width: 3rem;
  background: var(--sci-orange);
  margin-top: 1.3rem;
}

.sci-section .mb-10 > p {
  max-width: 48rem;
}

.sci-section article {
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--sci-line);
  border-radius: 0;
  padding: 1.6rem 0;
}

.sci-section article > .absolute {
  display: none;
}

.sci-section .shadow-2xl:not(article) {
  box-shadow: none;
  backdrop-filter: none;
  background: #142133;
  border-color: var(--sci-line);
  border-radius: 4px;
}

.sci-section .shadow-2xl:not(article) > .absolute {
  display: none;
}

/* —— Types de logiciels : carousel horizontal ——
   Logique : section DANS le flux de page.
   - Le panneau est sticky (pas de pin fixed → pas de vide au retour).
   - Un spacer sous le panneau consomme le scroll pendant le rail horizontal.
   - Même fond sur toute la section → rien d’autre ne « passe derrière ».
*/
html:has(.sci-page),
html:has(.sci-page) body {
  /* overflow-x: clip sur html/body casse position:sticky — on le déplace sur .sci-page */
  overflow-x: visible !important;
  scroll-behavior: auto !important;
}

.sci-page {
  overflow-x: clip;
}

.sci-types {
  position: relative;
  z-index: 2;
  /* Évite que le scroll-anchoring Chrome décale sticky/spacer après un drag de barre */
  overflow-anchor: none;
  /* padding-block = --sci-section-y via règle centrale .sci-page :is(...) */
  background:
    radial-gradient(ellipse 55% 45% at 12% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 30%, rgba(241, 137, 78, 0.1), transparent 55%),
    #0a0f1a;
  border-bottom: 1px solid var(--sci-line);
}

.sci-types__panel {
  position: relative;
  box-sizing: border-box;
  /* Air section porté par .sci-types — panel = contenu sticky uniquement */
  padding-block: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 30%, rgba(241, 137, 78, 0.1), transparent 55%),
    #0a0f1a;
}

@media (min-width: 768px) {
  /* Sticky panel + spacer (pas de pin GSAP fixed — évite les trous / page vide). */
  .sci-types--pinned .sci-types__panel {
    position: sticky;
    top: var(--sci-types-sticky-top, var(--sci-header, 80px));
    z-index: 2;
  }

  /* Écran bas : intro hors panel. Ne jamais toucher au padding-block de .sci-types. */
  .sci-types--pinned.sci-types--pin-stage .sci-types__panel {
    padding-block: 1rem 1.25rem;
  }

  .sci-types--pinned.sci-types--pin-stage .sci-types__intro {
    padding-block: 0 1.25rem;
    background:
      radial-gradient(ellipse 55% 45% at 12% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
      radial-gradient(ellipse 40% 40% at 85% 30%, rgba(241, 137, 78, 0.1), transparent 55%),
      #0a0f1a;
  }
}

.sci-types__spacer {
  display: none;
  width: 100%;
  height: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .sci-types--pinned .sci-types__spacer {
    display: block;
  }
}

.sci-types__intro {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.sci-types__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}

.sci-types__intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: end;
}

.sci-page .sci-types__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-title);
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.sci-page .sci-types__lead {
  margin: 0;
  max-width: 34rem;
  justify-self: end;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: #b6c4d3;
}

@media (max-width: 839px) {
  .sci-types__intro-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }

  .sci-page .sci-types__title {
    max-width: 22ch;
  }

  .sci-page .sci-types__lead {
    justify-self: start;
    max-width: 42rem;
  }
}

.sci-types__stage {
  width: 100%;
  position: relative;
}

.sci-types-carousel__viewport {
  width: 100%;
  overflow: hidden;
}

.sci-types-carousel__track {
  --sci-types-card-h: min(72vh, 38rem);
  --sci-types-pad-inline: max(1rem, calc((100vw - var(--sci-content-max, 96rem)) / 2 + 2rem));
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem var(--sci-types-pad-inline) 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  will-change: transform;
}

.sci-types-carousel__track::-webkit-scrollbar {
  display: none;
}

/* Mode desktop pin : rail en transform, plus de scroll-snap x. */
.sci-types--pinned .sci-types-carousel__viewport {
  overflow: hidden;
}

.sci-types--pinned .sci-types-carousel__track {
  overflow: visible;
  scroll-snap-type: none;
  scroll-behavior: auto;
  width: max-content;
  max-width: none;
}

.sci-types-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  overflow: hidden;
  scroll-snap-align: center;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sci-types-card--portrait {
  flex: 0 0 min(78vw, 26.5rem);
  width: min(78vw, 26.5rem);
  height: var(--sci-types-card-h);
  min-height: var(--sci-types-card-h);
}

.sci-types-card--phone {
  /* Même largeur que .sci-types-card--portrait ; la vidéo couvre le cadre */
  flex: 0 0 min(78vw, 26.5rem);
  width: min(78vw, 26.5rem);
  height: var(--sci-types-card-h);
  min-height: var(--sci-types-card-h);
}

.sci-types-card--landscape {
  /* Légèrement sous le 16:9 pour densifier le cadre sans bandes excessives */
  flex: 0 0 min(96vw, calc(var(--sci-types-card-h) * 1.48));
  width: min(96vw, calc(var(--sci-types-card-h) * 1.48));
  height: var(--sci-types-card-h);
  min-height: var(--sci-types-card-h);
}

.sci-types-card--dark {
  color: #f8fafc;
  background: #121826;
}

.sci-types-card--light {
  color: #0f172a;
  background: #e8eef8;
}

.sci-types-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.sci-types-card__video,
.sci-types-card__poster,
.sci-types-card__fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-position: center center;
}

/* Portrait large : cover modéré. */
.sci-types-card--portrait .sci-types-card__video,
.sci-types-card--portrait .sci-types-card__poster {
  object-fit: cover;
  object-position: center center;
  transform: none;
}

/* Card téléphone : cadre au ratio exact + cover pour remplir sans bandes. */
.sci-types-card--phone .sci-types-card__video,
.sci-types-card--phone .sci-types-card__poster {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  transform-origin: center center;
}

.sci-types-card--phone.sci-types-card--dark {
  background: #0a101c;
}

/* Paysage : cover pour remplir le cadre (plus de bandes haut/bas). */
.sci-types-card--landscape .sci-types-card__video,
.sci-types-card--landscape .sci-types-card__poster {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  transform-origin: center center;
}

.sci-types-card--landscape.sci-types-card--light {
  background: #c5d0e0;
}

.sci-types-card--landscape.sci-types-card--dark {
  background: #0f172a;
}

.sci-types-card__fallback {
  background:
    radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.35), transparent 50%),
    linear-gradient(160deg, #1a2438, #0f172a 70%);
}

.sci-types-card--light .sci-types-card__fallback {
  background:
    radial-gradient(circle at 70% 30%, rgba(241, 137, 78, 0.22), transparent 45%),
    linear-gradient(180deg, #f4f7fc, #d9e3f2);
}

.sci-types-card__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Dégradé sombre bas uniquement — uniformise lisibilité sur toutes les cards */
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 42%,
      rgba(6, 10, 18, 0.45) 62%,
      rgba(6, 10, 18, 0.82) 82%,
      rgba(6, 10, 18, 0.94) 100%
    );
  transition: background 0.35s ease;
}

.sci-types-card:hover .sci-types-card__veil,
.sci-types-card:focus-within .sci-types-card__veil {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 28%,
      rgba(6, 10, 18, 0.55) 48%,
      rgba(6, 10, 18, 0.88) 72%,
      rgba(6, 10, 18, 0.96) 100%
    );
}

.sci-types-card__top,
.sci-types-card__body,
.sci-types-card__cta {
  position: relative;
  z-index: 1;
}

.sci-types-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.35rem 1.4rem 0;
}

.sci-types-card__plus {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 300;
  color: rgba(248, 250, 252, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  opacity: 0.9;
}

.sci-types-card__body {
  margin-top: auto;
  padding: 1.25rem 1.4rem 0;
}

.sci-page .sci-types-card__title {
  margin: 0;
  font-family: var(--font-subtitle);
  font-size: var(--fs-subtitle);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sci-page .sci-types-card--phone .sci-types-card__title {
  font-size: var(--fs-subtitle);
}

.sci-page .sci-types-card__text {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transform: translateY(0.4rem);
  transition:
    max-height 0.35s ease,
    opacity 0.28s ease,
    margin 0.28s ease,
    transform 0.28s ease;
}

.sci-types-card:hover .sci-types-card__text,
.sci-types-card:focus-within .sci-types-card__text {
  margin-top: 0.85rem;
  max-height: 14rem;
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .sci-page .sci-types-card__text {
    margin-top: 0.85rem;
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
  }

  .sci-types-card__veil {
    background:
      linear-gradient(
        180deg,
        transparent 0%,
        transparent 28%,
        rgba(6, 10, 18, 0.55) 48%,
        rgba(6, 10, 18, 0.88) 72%,
        rgba(6, 10, 18, 0.96) 100%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .sci-page .sci-types-card__text {
    transition: none;
  }
}

.sci-types-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin: 1.35rem 1.4rem 1.45rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.85);
  background: transparent;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sci-types-card__cta:hover {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}

.sci-types-card__cta svg {
  width: 0.95rem;
  height: 0.95rem;
}

.sci-types-card__cta:focus-visible {
  outline: 2px solid var(--sci-orange);
  outline-offset: 3px;
}

.sci-types-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem max(1rem, calc((100vw - var(--sci-content-max, 96rem)) / 2 + 2rem)) 0;
}

.sci-page .sci-types-carousel__hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(182, 196, 211, 0.85);
}

.sci-types-carousel__dots {
  display: flex;
  gap: 0.45rem;
}

.sci-types-carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.sci-types-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.sci-types-carousel__dot:focus-visible {
  outline: 2px solid var(--sci-orange);
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .sci-types-carousel__track {
    --sci-types-card-h: min(74vh, 42rem);
    scroll-padding-inline: max(1rem, calc((100vw - var(--sci-content-max, 96rem)) / 2 + 2rem));
  }

  .sci-types-card--portrait {
    flex-basis: min(42vw, 30rem);
    width: min(42vw, 30rem);
  }

  .sci-types-card--phone {
    flex-basis: min(42vw, 30rem);
    width: min(42vw, 30rem);
  }

  .sci-types-card--landscape {
    flex-basis: min(96vw, calc(var(--sci-types-card-h) * 1.48));
    width: min(96vw, calc(var(--sci-types-card-h) * 1.48));
  }
}

@media (max-width: 767px) {
  .sci-types--pinned .sci-types-carousel__track {
    overflow-x: auto;
    width: auto;
  }
}

@media (max-width: 639px) {
  .sci-types-carousel__track {
    --sci-types-card-h: 28rem;
  }

  .sci-types-card--portrait {
    flex-basis: 86vw;
    width: 86vw;
  }

  .sci-types-card--phone {
    flex-basis: 86vw;
    width: 86vw;
  }

  .sci-types-card--landscape {
    flex-basis: min(94vw, calc(var(--sci-types-card-h) * 1.4));
    width: min(94vw, calc(var(--sci-types-card-h) * 1.4));
  }

  .sci-types-card {
    border-radius: 1.5rem;
  }

  .sci-types-carousel__nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sci-types-carousel__track {
    scroll-behavior: auto;
  }
}

.sci-section--3 {
  position: relative;
  z-index: 1;
  background: #111c2c;
}

.sci-figure-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  color: #c5cfdb;
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

.sci-method > .relative > .absolute {
  display: none;
}

.sci-method .grid-cols-6 {
  gap: 1rem;
}

.sci-method .text-center {
  text-align: left;
}

.sci-method .text-center > div:first-child {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--sci-orange);
  border-radius: 0;
  background: transparent;
  justify-content: start;
  color: var(--sci-orange);
}

.sci-section--7 .shadow-2xl {
  padding: 2rem;
}

.sci-section--8 article {
  border-top-style: dashed;
}

.sci-section--8 article .rounded-2xl {
  background: transparent;
  border: 0;
  padding: 0;
}

.sci-section--8 article h3,
.sci-section--8 article p {
  color: #b4c1d0;
}

/* Section 21 : styles migrés vers sci-contact.css (fond = --why-ink / --contact-ink) */

/* —— Responsive —— */
@media (max-width: 1023px) {
  .sci-page {
    --sci-header: 64px;
  }

  .sci-page h1 {
    font-size: clamp(2.35rem, 8vw, 3.4rem);
  }

  .sci-page h2 {
    font-size: 2.5rem;
  }

  .sci-page h3 {
    font-size: 1.9rem;
  }

  .sci-hero--orbital {
    min-height: min(88vh, 48rem);
  }

  .sci-hero__content,
  .sci-hero--orbital .sci-hero__content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .sci-hero__orbit-gap {
    min-height: clamp(12rem, 32vh, 20rem);
  }

  .sci-hero__below {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    align-items: stretch;
    padding: 1rem 1.1rem;
  }

  .sci-hero-actions {
    justify-content: flex-start;
  }

  .sci-hero-btn {
    width: 100%;
  }

  .sci-hero__orbit-tools {
    justify-content: flex-start;
    margin-bottom: 0.65rem;
  }

  .sci-orbital__controls {
    justify-content: flex-start;
  }

  .sci-hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sci-section > .max-w-8xl {
    max-width: calc(var(--sci-content-max, 96rem) + 2rem);
  }

  .sci-method .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .sci-section--7 .shadow-2xl {
    padding: 1.25rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .sci-page {
    --sci-header: 72px;
  }

  .sci-hero-btn {
    width: auto;
  }
}

@media (max-width: 639px) {
  .sci-page h1 {
    font-size: 2.25rem;
  }

  .sci-hero__lead {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .sci-hero__title {
    max-width: none;
  }

  .sci-hero--orbital {
    min-height: min(92vh, 44rem);
  }

  .sci-hero__orbit-gap {
    min-height: 11rem;
  }

  .sci-tech {
    padding: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sci-tech {
    opacity: 1 !important;
    transform: none !important;
  }

  html:has(.sci-page) {
    scroll-behavior: auto;
  }
}

@media print {
  .sci-page {
    background: white;
    color: black;
  }

  .sci-hero__media,
  .sci-hero__veil,
  .sci-hero__veil-bottom,
  .sci-hero__aside,
  .sci-constraints__media,
  .sci-constraints__grid,
  .sci-scroll-link {
    display: none;
  }

  .sci-page .sci-panel {
    width: 100%;
    min-height: 0;
    padding: 1rem 0;
  }

  .sci-page p,
  .sci-page h1,
  .sci-page h2,
  .sci-page h3 {
    color: black;
  }
}

/* ===========================================================================
   Workbench apps — fenêtres applicatives illustratives (React islands)
   ParametricModelWorkbench · TrialCampaignDesk · TechnicalDataExplorer
   Surfaces claires posées sur la page sombre. Aucun effet de verre, de halo
   ni de particule : uniquement des surfaces, des bordures et des états.
   =========================================================================== */

/* —— Sections de page accueillant les fenêtres —— */
.sci-work-section {
  /* padding-block = --sci-section-y via règle centrale */
  border-top: 1px solid var(--sci-line);
  scroll-margin-top: calc(var(--sci-header) + 1rem);
}

.sci-work-section__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.75rem, 3vw, 3.25rem);
  align-items: start;
}

.sci-work-section--reverse .sci-work-section__grid {
  grid-template-columns: minmax(0, 0.58fr) minmax(16rem, 0.42fr);
}

.sci-work-section--reverse .sci-work-section__copy {
  order: 2;
}

.sci-work-section--reverse .sci-work-section__app {
  order: 1;
}

.sci-work-section__copy {
  max-width: 34rem;
}

.sci-work-section__copy > p:not(.sci-kicker) {
  margin-top: 1.3rem;
}

.sci-work-section__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.sci-work-section__app {
  min-width: 0;
}

/* —— Fenêtre applicative —— */
.sci-app {
  --app-surface: #f6f8fc;
  --app-surface-2: #ffffff;
  --app-bar: #eaeff6;
  --app-border: #d3dce8;
  --app-border-soft: #e2e8f1;
  --app-ink: #152138;
  --app-muted: #5c6b80;
  --app-accent: #f1894e;
  --app-accent-ink: #a9551f;
  --app-violet: #6d52c0;
  --app-sel: rgba(241, 137, 78, 0.14);
  --app-mono: var(--font-code);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #c8d3e0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--app-surface);
  color: var(--app-ink);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.45;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45);
}

.sci-app :is(p, dt, dd, li, th, td) {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.sci-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--app-bar);
  border-bottom: 1px solid var(--app-border);
}

.sci-app__id {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.sci-app__glyph {
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  border-radius: 2px;
  background: var(--app-accent);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.sci-app__titles {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
  flex-wrap: wrap;
}

.sci-app__title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.875rem;
}

.sci-app__sub,
.sci-app__meta-item {
  font-family: var(--app-mono);
  font-size: 0.7rem;
  color: var(--app-muted);
}

.sci-app__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

/* —— Barre d'outils —— */
.sci-app__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(180deg, #fbfcfe, #f0f4f9);
  border-bottom: 1px solid var(--app-border);
}

.sci-tb__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.sci-tb__sep {
  width: 1px;
  height: 1.3rem;
  background: var(--app-border);
}

.sci-tb__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-muted);
  font-weight: 600;
}

.sci-tb__btn {
  appearance: none;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  background: var(--app-surface-2);
  color: var(--app-ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.sci-tb__btn:hover:not(:disabled) {
  background: #eef3f9;
  border-color: #b9c6d6;
}

.sci-tb__btn[aria-pressed="true"] {
  background: var(--app-sel);
  border-color: var(--app-accent);
  color: var(--app-accent-ink);
}

.sci-tb__btn--primary {
  background: var(--app-accent);
  border-color: #d9733c;
  color: #fff;
}

.sci-tb__btn--primary:hover:not(:disabled) {
  background: #e67c42;
  border-color: #c9682f;
}

.sci-tb__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sci-tb__select {
  border: 1px solid var(--app-border);
  border-radius: 6px;
  background: var(--app-surface-2);
  color: var(--app-ink);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.28rem 0.4rem;
  max-width: 11rem;
}

.sci-tb__chip {
  font-family: var(--app-mono);
  font-size: 0.68rem;
  padding: 0.22rem 0.45rem;
  border-radius: 5px;
  border: 1px solid var(--app-border);
  background: var(--app-surface-2);
  color: var(--app-muted);
}

.sci-tb__chip[data-state="warn"] {
  border-color: #e6b58b;
  background: #fdf3ea;
  color: var(--app-accent-ink);
}

.sci-app :is(button, select, input, [tabindex]):focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 1px;
  border-radius: 4px;
}

/* —— Espace de travail : navigation / plan de travail / inspecteur —— */
.sci-work {
  display: grid;
  gap: 1px;
  background: var(--app-border);
  align-items: stretch;
}

.sci-work--workbench {
  grid-template-columns: 14.5rem minmax(0, 1fr) 17rem;
}

.sci-work--desk {
  grid-template-columns: minmax(0, 1fr) 18rem;
}

.sci-work--explorer {
  grid-template-columns: 14rem minmax(0, 1fr) 17rem;
}

.sci-work__nav,
.sci-work__main,
.sci-work__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--app-surface);
}

.sci-work__main {
  background: var(--app-surface-2);
}

.sci-pane {
  padding: 0.7rem 0.8rem 0.85rem;
  border-bottom: 1px solid var(--app-border-soft);
  min-width: 0;
}

.sci-pane:last-child {
  border-bottom: 0;
}

.sci-pane--grow {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* La zone graphique occupe la hauteur restante : le dessin est mis à l'échelle
   par le viewBox, jamais par une transformation de la fenêtre. */
.sci-pane--grow > .sci-canvas {
  flex: 1 1 auto;
  min-height: 14rem;
}

.sci-pane--grow > .sci-canvas > .sci-canvas__svg {
  height: 100%;
}

.sci-pane__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.sci-pane__title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--app-muted);
}

.sci-pane__hint {
  font-family: var(--app-mono);
  font-size: 0.66rem;
  color: #7a889c;
  text-align: right;
}

.sci-note {
  margin: 0.6rem 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #6c7a8e;
  border-left: 2px solid var(--app-border);
  padding-left: 0.5rem;
}

/* —— Arbres de navigation —— */
.sci-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sci-tree__children {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sci-tree__item[data-depth="1"] .sci-tree__btn {
  padding-left: 1.4rem;
}

.sci-tree__btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--app-ink);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.sci-tree__btn:hover {
  background: #e9eff7;
}

.sci-tree__btn[aria-current="true"] {
  background: var(--app-sel);
  border-color: rgba(241, 137, 78, 0.55);
  font-weight: 700;
}

.sci-tree__btn--source {
  font-weight: 700;
  background: #e9eef6;
  border-color: var(--app-border-soft);
}

.sci-tree__caret {
  flex: none;
  color: var(--app-muted);
  margin-right: 0.3rem;
}

.sci-tree__label {
  font-family: var(--app-mono);
  font-size: 0.7rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sci-tree__type {
  flex: none;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--app-muted);
}

/* —— Annotations / étapes / contrôles —— */
.sci-anno {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sci-anno__item {
  font-family: var(--app-mono);
  font-size: 0.7rem;
  padding: 0.26rem 0.4rem;
  border-left: 2px solid var(--app-border);
  color: #44536a;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.sci-anno__item[data-active="true"] {
  border-left-color: var(--app-accent);
  background: var(--app-sel);
  color: var(--app-accent-ink);
}

.sci-steps {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: sci-step;
}

.sci-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.7rem;
  padding: 0.26rem 0.4rem;
  background: #eef3f9;
  border-left: 2px solid var(--app-violet);
}

.sci-steps li span {
  font-family: var(--app-mono);
  font-weight: 700;
  color: var(--app-violet);
}

.sci-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sci-checks__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  padding: 0.3rem 0.45rem;
  border-left: 2px solid #9fb4a4;
  background: #f0f5f1;
}

.sci-checks__item[data-state="warn"] {
  border-left-color: #d98b45;
  background: #fdf3ea;
}

.sci-checks__value {
  font-family: var(--app-mono);
  flex: none;
}

/* —— Paramètres —— */
.sci-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sci-field {
  padding: 0.35rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 6px;
}

.sci-field[data-changed="true"] {
  border-color: rgba(241, 137, 78, 0.5);
}

.sci-field__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sci-field__label {
  flex: 1 1 auto;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.sci-field__symbol {
  font-family: var(--app-mono);
  color: var(--app-violet);
  font-weight: 700;
}

.sci-field__num {
  width: 3.75rem;
  flex: none;
  border: 1px solid var(--app-border);
  border-radius: 5px;
  background: var(--app-surface-2);
  color: var(--app-ink);
  font-family: var(--app-mono);
  font-size: 0.72rem;
  padding: 0.18rem 0.3rem;
  text-align: right;
}

.sci-field__value {
  font-family: var(--app-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.sci-field__unit {
  flex: none;
  width: 1.8rem;
  font-size: 0.66rem;
  color: var(--app-muted);
}

.sci-field__range {
  width: 100%;
  margin-top: 0.3rem;
  accent-color: var(--app-accent);
  cursor: pointer;
}

.sci-field__range:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Tableaux denses —— */
.sci-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--app-border-soft);
  border-radius: 6px;
  background: var(--app-surface-2);
}

.sci-table-wrap--scroll {
  max-height: 19rem;
  overflow-y: auto;
}

.sci-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.sci-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sci-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef3f9;
  text-align: left;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-muted);
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--app-border);
  white-space: nowrap;
}

.sci-table tbody tr {
  cursor: pointer;
  transition: background-color 0.18s ease;
  border-bottom: 1px solid #edf1f6;
}

.sci-table tbody tr:hover {
  background: #f2f6fb;
}

.sci-table tbody tr[data-selected="true"] {
  background: var(--app-sel);
  box-shadow: inset 2px 0 0 var(--app-accent);
}

.sci-table :is(td, tbody th) {
  padding: 0.33rem 0.5rem;
  vertical-align: top;
  font-weight: 400;
  text-align: left;
}

.sci-table__num {
  text-align: right;
  font-family: var(--app-mono);
  white-space: nowrap;
}

.sci-table__mono {
  font-family: var(--app-mono);
  display: block;
}

.sci-table__sub {
  display: block;
  font-size: 0.64rem;
  color: var(--app-muted);
}

.sci-table__check {
  accent-color: var(--app-accent);
  cursor: pointer;
}

.sci-table__pick,
.sci-table__sort {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.sci-table__pick {
  font-family: var(--app-mono);
  font-weight: 700;
}

.sci-table__sort {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
  white-space: nowrap;
}

.sci-table__pick:hover,
.sci-table__sort:hover {
  color: var(--app-accent-ink);
  text-decoration: underline;
}

/* —— Listes clé / valeur —— */
.sci-kv {
  margin: 0;
  display: grid;
  gap: 1px;
}

.sci-kv > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.26rem 0.4rem;
  background: #f1f5fa;
}

.sci-kv--dense > div {
  padding: 0.2rem 0.4rem;
}

.sci-kv dt {
  font-size: 0.68rem;
  color: var(--app-muted);
  margin: 0;
}

.sci-kv dd {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.sci-kv__mono {
  font-family: var(--app-mono);
  font-weight: 500;
}

/* —— Indicateurs —— */
.sci-metrics {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--app-border-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: 6px;
  overflow: hidden;
}

.sci-metrics__cell {
  background: var(--app-surface-2);
  padding: 0.45rem 0.55rem;
}

.sci-metrics__cell dt {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-muted);
}

.sci-metrics__cell dd {
  margin: 0.15rem 0 0;
  font-family: var(--app-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

/* —— États —— */
.sci-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.14rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--app-border);
  background: #eef2f7;
  color: var(--app-muted);
  white-space: nowrap;
}

.sci-badge[data-state="ok"] {
  border-color: #a9c7b2;
  background: #eef6f0;
  color: #2f6b47;
}

.sci-badge[data-state="warn"] {
  border-color: #e3b189;
  background: #fdf2e8;
  color: var(--app-accent-ink);
}

.sci-badge[data-state="run"],
.sci-badge--run {
  border-color: #b7a6e3;
  background: #f2eefc;
  color: var(--app-violet);
}

.sci-progress {
  display: inline-block;
  width: 7rem;
  height: 5px;
  border-radius: 3px;
  background: #dbe3ed;
  overflow: hidden;
}

.sci-progress__bar {
  display: block;
  height: 100%;
  background: var(--app-accent);
  transition: width 0.18s linear;
}

/* —— Barre d'état —— */
.sci-app__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.85rem;
  border-top: 1px solid var(--app-border);
  background: var(--app-bar);
  font-size: 0.68rem;
  color: var(--app-muted);
}

.sci-app__status-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sci-app__status-note {
  flex: none;
  font-family: var(--app-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #7b8899;
}

/* —— Zone graphique technique —— */
.sci-canvas {
  border: 1px solid var(--app-border-soft);
  border-radius: 6px;
  background: #fbfcfe;
  overflow-x: auto;
}

.sci-canvas__svg {
  display: block;
  width: 100%;
  height: auto;
}

.sci-canvas__bg {
  fill: #fbfcfe;
}

.sci-canvas__grid line {
  stroke: #e7edf4;
  stroke-width: 1;
}

.sci-view__label {
  fill: #7b8899;
  font-family: var(--app-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.sci-axes line {
  stroke: #9fb0c4;
  stroke-width: 1;
}

.sci-axes text {
  fill: #7b8899;
  font-family: var(--app-mono);
  font-size: 9px;
}

.sci-shape--plate {
  fill: #e5ebf3;
  stroke: #45586f;
  stroke-width: 1.4;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.sci-shape--plate[data-active="true"] {
  fill: #fbeadd;
  stroke: var(--app-accent);
}

.sci-shape__marker {
  fill: none;
  stroke: var(--app-accent);
  stroke-width: 1.4;
  stroke-dasharray: 3 2;
}

.sci-centerline {
  stroke: #9b7fd4;
  stroke-width: 0.8;
  stroke-dasharray: 7 3 1.5 3;
}

.sci-hole__bore {
  fill: #ffffff;
  stroke: #45586f;
  stroke-width: 1.2;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.sci-hole[data-active="true"] .sci-hole__bore,
.sci-hole__bore[data-active="true"] {
  fill: #fbe3d1;
  stroke: var(--app-accent);
}

.sci-dim line {
  stroke: #7b8899;
  stroke-width: 0.9;
}

.sci-dim__plate {
  fill: #fbfcfe;
  stroke: none;
}

.sci-dim__text {
  fill: #44536a;
  font-family: var(--app-mono);
  font-size: 9.5px;
}

.sci-dim[data-active="true"] line {
  stroke: var(--app-accent);
}

.sci-dim[data-active="true"] .sci-dim__text {
  fill: var(--app-accent-ink);
  font-weight: 700;
}

.sci-leader line {
  stroke: #7b8899;
  stroke-width: 0.9;
}

.sci-leader text {
  fill: #44536a;
  font-family: var(--app-mono);
  font-size: 10px;
}

.sci-leader[data-active="true"] line {
  stroke: var(--app-accent);
}

.sci-leader[data-active="true"] text {
  fill: var(--app-accent-ink);
  font-weight: 700;
}

.sci-iso__side {
  fill: #c9d4e1;
  stroke: #45586f;
  stroke-width: 1.1;
  transition: fill 0.2s ease;
}

.sci-iso__side[data-active="true"] {
  fill: #eccdb3;
}

.sci-iso__top {
  fill: #eaf0f7;
  stroke: #45586f;
  stroke-width: 1.3;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.sci-iso__top[data-active="true"] {
  fill: #fbeadd;
  stroke: var(--app-accent);
}

.sci-iso__edge {
  stroke: #45586f;
  stroke-width: 1.1;
}

.sci-iso__bore {
  fill: #93a3b7;
  stroke: none;
}

.sci-iso__hole {
  fill: #d6dfea;
  stroke: #45586f;
  stroke-width: 1;
  transition: fill 0.2s ease;
}

.sci-hole[data-active="true"] .sci-iso__hole {
  fill: #f6d6bd;
  stroke: var(--app-accent);
}

/* —— Graphiques —— */
.sci-chart {
  border: 1px solid var(--app-border-soft);
  border-radius: 6px;
  background: var(--app-surface-2);
  padding: 0.4rem;
}

.sci-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}

.sci-chart__grid line {
  stroke: #e7edf4;
  stroke-width: 1;
}

.sci-chart__grid text {
  fill: #8a97a9;
  font-family: var(--app-mono);
  font-size: 8.5px;
}

.sci-chart__axis {
  stroke: #b7c3d2;
  stroke-width: 1;
}

.sci-chart__axis-label {
  fill: #8a97a9;
  font-family: var(--app-mono);
  font-size: 8.5px;
}

.sci-chart__raw {
  fill: none;
  stroke: var(--app-violet);
  stroke-width: 1.3;
  opacity: 0.55;
}

.sci-chart__line {
  fill: none;
  stroke: var(--app-accent);
  stroke-width: 1.9;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.sci-chart__threshold {
  stroke: var(--app-violet);
  stroke-width: 1.1;
  stroke-dasharray: 5 3;
}

.sci-chart__threshold-label {
  fill: var(--app-violet);
  font-family: var(--app-mono);
  font-size: 8.5px;
}

.sci-chart__cursor {
  stroke: #9aa7b8;
  stroke-width: 1;
}

.sci-chart__dot {
  fill: var(--app-accent);
}

.sci-chart__point {
  fill: var(--app-surface-2);
  stroke: var(--app-accent);
  stroke-width: 1.4;
  cursor: pointer;
  transition: r 0.18s ease, fill 0.18s ease;
}

.sci-chart__point[data-selected="true"] {
  fill: var(--app-accent);
}

.sci-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.66rem;
  color: var(--app-muted);
}

.sci-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sci-legend__swatch {
  width: 0.85rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.sci-legend__swatch--violet {
  background: var(--app-violet);
}

.sci-legend__swatch--orange {
  background: var(--app-accent);
}

.sci-legend__swatch--dash {
  background: repeating-linear-gradient(90deg, var(--app-violet) 0 4px, transparent 4px 7px);
}

.sci-legend__read {
  margin-left: auto;
  font-family: var(--app-mono);
}

/* —— Extrait au format d'origine —— */
.sci-raw {
  margin: 0;
  max-height: 15rem;
  overflow: auto;
  border: 1px solid var(--app-border-soft);
  border-radius: 6px;
  background: #fbfcfe;
  padding: 0.5rem 0.4rem;
  font-family: var(--app-mono);
  font-size: 0.68rem;
  line-height: 1.55;
  color: #3c4b61;
  white-space: pre;
}

.sci-raw__line {
  display: block;
  padding-inline: 0.3rem;
  border-radius: 3px;
}

.sci-raw__line[data-hit="true"] {
  background: var(--app-sel);
  box-shadow: inset 2px 0 0 var(--app-accent);
  color: var(--app-accent-ink);
  font-weight: 700;
}

.sci-raw__no {
  display: inline-block;
  width: 2rem;
  color: #9aa7b8;
  user-select: none;
}

/* —— Repli sans JavaScript —— */
.sci-app-slot {
  min-height: 16rem;
}

.sci-app-slot__fallback {
  border: 1px solid #c8d3e0;
  border-radius: 12px;
  background: #f6f8fc;
  color: #152138;
  padding: 1rem 1.1rem;
}

.sci-app-slot__fallback h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.sci-app-slot__fallback p {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5c6b80;
}

.sci-app-slot__fallback span {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-code);
  font-size: 0.65rem;
  color: #7b8899;
}

/* —— Adaptations —— */
@media (max-width: 1279px) {
  .sci-work--workbench,
  .sci-work--explorer {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .sci-work--desk {
    grid-template-columns: minmax(0, 1fr);
  }

  .sci-work--workbench .sci-work__side,
  .sci-work--explorer .sci-work__side,
  .sci-work--desk .sci-work__side {
    grid-column: 1 / -1;
  }

  .sci-work__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--app-border);
  }

  .sci-work__side > .sci-pane {
    background: var(--app-surface);
    border-bottom: 0;
  }
}

@media (max-width: 1023px) {
  .sci-work-section__grid,
  .sci-work-section--reverse .sci-work-section__grid,
  .sci-work-section__intro {
    grid-template-columns: 1fr;
  }

  /* Mobile : le texte d'abord, la fenêtre applicative ensuite. */
  .sci-work-section--reverse .sci-work-section__copy {
    order: 0;
  }

  .sci-work-section--reverse .sci-work-section__app {
    order: 1;
  }

  .sci-work-section__copy {
    max-width: none;
  }

  .sci-work--workbench,
  .sci-work--desk,
  .sci-work--explorer {
    grid-template-columns: minmax(0, 1fr);
  }

  .sci-work__nav {
    order: 1;
  }

  .sci-work__main {
    order: 0;
  }

  .sci-work__side {
    order: 2;
  }

  .sci-canvas__svg {
    min-width: 42rem;
  }

  .sci-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .sci-app {
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .sci-app__bar,
  .sci-app__toolbar,
  .sci-app__status {
    padding-inline: 0.6rem;
  }

  .sci-app__meta {
    display: none;
  }

  .sci-work__side {
    grid-template-columns: minmax(0, 1fr);
  }

  .sci-pane {
    padding: 0.6rem;
  }

  .sci-tb__select {
    max-width: 8.5rem;
  }

  .sci-tb__sep {
    display: none;
  }

  .sci-pane__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .sci-pane__hint {
    text-align: left;
  }

  .sci-legend__read {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sci-app {
    opacity: 1 !important;
    transform: none !important;
  }

  .sci-app *,
  .sci-app *::before,
  .sci-app *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .sci-app {
    box-shadow: none;
    break-inside: avoid;
  }

  .sci-app__toolbar {
    display: none;
  }
}


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

@media (min-width: 1600px) {
 .sci-page { --sci-header: var(--site-header-height, 6rem); }
 .sci-page > .vitrine-shell,
 .sci-page :is(.sci-body.vitrine-shell, .sci-constraints-shell.vitrine-shell, .sci-types__intro.vitrine-shell, .sci-integ__inner.vitrine-shell, .sci-hero__content.vitrine-shell, .sci-refs__inner.vitrine-shell, .sci-why__inner.vitrine-shell) { padding-inline: var(--vitrine-gutter); }
 .sci-hero__title { max-width: 30ch; }
 .sci-page :is(.sci-panel__lead, .sci-types__lead, .sci-constraints__lead, .sci-perf__lead, .sci-maintain__lead, .sci-integ__intro) { max-width: 65ch; }
 .sci-page :is(.sci-app, .sci-model__window) { --fs-body: var(--type-ui-wide); --fs-subtitle: clamp(1.2rem, calc(.8rem + .4vw), 1.875rem); }
 .sci-page .sci-app { --fs-input: var(--type-ui-wide); --fs-h4: var(--type-ui-small-wide); --fs-label: var(--type-ui-small-wide); }
 .sci-app, .sci-app__title { font-size: var(--type-ui-wide); }
 .sci-app :is(.sci-app__sub, .sci-app__meta, .sci-app__meta-item, .sci-app__status, .sci-app__status-note,
   .sci-tb__label, .sci-tb__chip, .sci-pane__hint, .sci-note, .sci-tree__type, .sci-table__sub,
   .sci-field__unit, .sci-table thead th, .sci-metrics__cell dt, .sci-badge, .sci-raw) { font-size: var(--type-ui-small-wide); }
 .sci-app :is(.sci-tb__btn, .sci-tb__select, .sci-tree__btn, .sci-tree__label, .sci-anno__item,
   .sci-steps li, .sci-checks__item, .sci-field__label, .sci-field__num, .sci-field__value,
   .sci-kv dd, .sci-metrics__cell dd, .sci-legend) { font-size: var(--type-ui-wide); }
 .sci-app :is(.sci-tb__btn, .sci-tree__btn) { padding-block: .45em; min-height: 2.5em; }
 .sci-app .sci-field__num { width: 5em; }
 .sci-app .sci-field__unit { width: 2.5em; }
 .sci-work--workbench, .sci-work--explorer { grid-template-columns: clamp(14.5rem, calc(7rem + 7.5vw), 25rem) minmax(0, 1fr) clamp(17rem, calc(9rem + 8vw), 30rem); }
 .sci-work--desk { grid-template-columns: minmax(0, 1fr) clamp(18rem, calc(10rem + 8vw), 30rem); }
 .sci-app .sci-pane { padding: clamp(.8rem, calc(.3rem + .5vw), 1.5rem); }
 .sci-app .sci-pane__head, .sci-app .sci-app__status-main { flex-wrap: wrap; }
 .sci-app .sci-app__status-main { white-space: normal; overflow: visible; }
 .sci-app .sci-table-wrap--scroll { max-height: clamp(19rem, calc(11rem + 8vw), 32rem); }
 .sci-orbital__ctrl { font-size: var(--fs-small); min-height: 2.75em; }
 .sci-scroll-link, .sci-topic { font-size: var(--fs-label); }
 .sci-page :is(.sci-hero__meta, .sci-hero__hint) { font-size: var(--fs-small); }
}
