/* Sub-site entry pages (site redesign). Scoped under .sp; each space sets
   its palette on .sp--<space>. Class names carry the sp- prefix so Tailwind
   never reads them as utilities. */

.sp {
  --sp-ink: #0f1e2e;
  --sp-steel: #4b5b6d;
  --sp-bg-a: #f0f0f0;
  --sp-bg-b: #c2e0ff;
  --sp-alt: #f4f8fc;
  --sp-accent: #10c7ff;
  --sp-dark: #102540;
  color: var(--sp-ink);
  font-family: 'Poppins', sans-serif;
}
.sp--public { --sp-bg-a: #f3f6fa; --sp-bg-b: #c9e3fd; }

/* The base layer styles h1/h2/p for older pages; here sizes come from sp-
   classes. Zero specificity, scoped to this page's sections so shared
   partials keep their Tailwind utilities. */
:where(.sp-hero, .sp-product) :where(h1, h2, h3, p, figure) { color: inherit; margin: 0; }

.sp-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .sp-wrap { padding-inline: 40px; } }
/* Same container as the header, the contact band and the footer. */

/* Same heading scale as the institutional pages (institutional-home.css):
   H1 34 to 56px, H2 28 to 40px. */
.sp-h1 {
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.sp-h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sp-lead {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--sp-steel);
  max-width: 40ch;
}
.sp-body {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--sp-steel);
  max-width: 42ch;
}

.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.sp-btn:hover { text-decoration: none; }
.sp-btn:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 3px; }
.sp-btn--primary { background: var(--sp-accent); color: var(--sp-ink); }
.sp-btn--primary:hover { background: #3ad2ff; color: var(--sp-ink); }
.sp-btn--dark { background: var(--sp-dark); color: #ffffff; }
.sp-btn--dark:hover { background: #1b3a5c; color: #ffffff; }
.sp-btn--ghost { border: 1.5px solid rgba(15, 30, 46, 0.25); color: var(--sp-ink); background: rgba(255, 255, 255, 0.5); }
.sp-btn--ghost:hover { border-color: var(--sp-ink); color: var(--sp-ink); }

/* Hero: the products at work, in the space's gradient. */
.sp-hero {
  background: linear-gradient(100deg, var(--sp-bg-a) 0%, var(--sp-bg-b) 100%);
  overflow: hidden;
  padding-block: 56px 0;
}
.sp-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .sp-hero { padding-block: 72px 0; }
  .sp-hero-grid { grid-template-columns: 5fr 7fr; gap: 48px; min-height: 480px; }
  .sp-hero-text { padding-bottom: 72px; }
}
/* Under 1024px the two overlapping screens become one, in the flow and
   inside the gutters: no blank gradient above it, nothing past the edge. */
.sp-hero-visual { position: relative; }
@media (max-width: 1023.98px) {
  .sp-hero-visual .sp-screen--back { display: none; }
  .sp-hero-visual .sp-screen--front { position: static; display: block; width: 100%; max-width: 720px; margin-inline: auto; }
}
@media (min-width: 1024px) { .sp-hero-visual { height: 520px; align-self: end; } }
.sp-screen {
  position: absolute;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 30px 60px -30px rgba(15, 30, 46, 0.45);
  border: 1px solid rgba(15, 30, 46, 0.08);
  border-bottom: 0;
}
@media (min-width: 1024px) {
  .sp-screen--back { width: 80%; right: -14%; bottom: 120px; border-radius: 12px; border-bottom: 1px solid rgba(15, 30, 46, 0.08); }
  .sp-screen--front { width: 86%; left: 0; bottom: 0; }
}

/* One section per product: text and its own visual, alternating sides. */
.sp-product { padding-block: 72px; }
@media (min-width: 1024px) { .sp-product { padding-block: 112px; } }
.sp-product--alt { background: var(--sp-alt); }
.sp-product-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .sp-product-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .sp-product-grid--flip { grid-template-columns: 7fr 5fr; }
  .sp-product-grid--flip .sp-product-text { order: 2; }
}
.sp-product-name { display: flex; align-items: center; gap: 14px; }
.sp-product-name img { width: 44px; height: 44px; object-fit: contain; }
.sp-figure img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 30, 46, 0.08);
  box-shadow: 0 30px 60px -36px rgba(15, 30, 46, 0.4);
}
/* The three product rows are the same height at every width (Paul,
   2026-11-15), at the height the tallest screen gives (Allegro's,
   1589 x 1013): every figure is a frame of that ratio and each screen sits
   in it uncropped, centred beside the text, at the top once the rows
   stack. Cropping to a common ratio made the rows shorter (Paul: "il faut
   la bonne hauteur").
   Under 1024px the rows stack, so the text must match too: the body keeps
   room for its longest line count and the actions for two rows, since
   ÉVIDENCE has one action where the others have two. */
.sp-product .sp-figure:not(.sp-figure--mark) { aspect-ratio: 1589 / 1013; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1023px) {
  .sp-product .sp-figure:not(.sp-figure--mark) { justify-content: flex-start; }
  .sp-product .sp-body { min-height: 2lh; }
}
@media (max-width: 639px) {
  .sp-product .sp-body { min-height: 3lh; }
  .sp-product .sp-actions { flex-direction: column; align-items: flex-start; gap: 12px; min-height: calc(2 * 48px + 12px); }
}
@media (max-width: 359px) {
  .sp-product .sp-body { min-height: 4lh; }
}
.sp-textlink {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 600; font-size: 0.9375rem; color: var(--sp-ink);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
  text-decoration-color: var(--sp-accent);
}
.sp-textlink:hover { color: var(--sp-ink); text-decoration-color: currentColor; }
.sp-product--band { background: linear-gradient(100deg, var(--sp-bg-a) 0%, var(--sp-bg-b) 100%); }
/* ÉVIDENCE has no screens (custom work): a centred, narrow band rather than
   a half-empty row with a text column and nothing beside it. */
.sp-band { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 820px; }
.sp-band .sp-band-lead { max-width: 36ch; }
.sp-band .sp-actions { justify-content: center; }
.sp-band-lead {
  margin-top: 20px;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  line-height: 1.45;
  max-width: 34ch;
  color: var(--sp-ink);
}
.sp-figure--mark {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef6fe 0%, #d6e9fb 100%);
}
.sp-figure--mark img { width: 34%; border: 0; box-shadow: none; border-radius: 0; }

/* Industry and aerospace: the night-blue family of the homepage, LEA and
   R&D, on a white entry page (the engine's frames are flattened on white). */
.sp--industry {
  --sp-alt: #f3f6f9; --sp-accent: #10c7ff; --sp-dark: #0b2540;
  --ia-night: #0b2540; --ia-deep: #071a2f; --ia-mist: #b9c7d6; --ia-soft: #8fa6bd;
  --ia-cyan-ink: #0a76a3; --ia-line: rgba(255, 255, 255, 0.12); --ia-line-light: #d9e2ec;
  background: #ffffff;
}

/* ---- Hero: the problems we solve, beside the engine ----
   White on purpose: the frames are flattened onto #ffffff by the encoder
   (scripts/pace_motion/encode_sequence.py --background "#FFFFFF"), so the
   stage's background must stay exactly #ffffff or a rectangle would show.
   The text column scrolls natively; the engine's column is sticky (CSS
   only, so the layout holds without script). On phones the engine sticks
   under the hero, the blocks scrolling beneath it. Every block stays white
   (Paul, 2026-11-15: no alternating backgrounds on this page). */
.sp-ie { position: relative; background: #ffffff; color: var(--ia-night); }
.sp-ie :where(h1, h2, p) { margin: 0; }
.sp-ie-grid { display: grid; }
.sp-ie-flow { display: contents; }
.sp-ie-block { padding-block: 48px; }
/* Hero view: the site bar lies over this section (_header.html overlay,
   about 85px tall), so the opening block starts below it on phones; from
   1024px the block is a centred screen whose 96px padding clears the bar. */
.sp-ie-block--intro { order: 0; padding-top: 112px; padding-bottom: 24px; }
.sp-ie-stage { order: 1; position: sticky; top: 0; z-index: 1; background: #ffffff; padding-block: 8px; margin-inline: -20px; }
.sp-ie-block:not(.sp-ie-block--intro) { order: 2; }
.sp-ie-title {
  margin-top: 0; max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.04; font-weight: 400; letter-spacing: -0.025em;
  color: var(--ia-night);
}
.sp-ie-lead { margin-top: 18px; font-size: 1.125rem; line-height: 1.6; color: #44546a; max-width: 40ch; }
.sp-ie-block .sp-actions { margin-top: 28px; }
.sp-btn--ink { background: var(--ia-night); color: #ffffff; }
.sp-btn--ink:hover { background: #163a60; color: #ffffff; }
.sp-ie-num { font-size: 0.875rem; font-weight: 600; color: var(--ia-cyan-ink); font-variant-numeric: tabular-nums; }
.sp-ie-num span { margin-left: 10px; font-weight: 500; letter-spacing: 0.02em; color: #5b6b80; }
.sp-ie-problem { margin-top: 12px; max-width: 16ch; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.08; font-weight: 400; letter-spacing: -0.02em; color: var(--ia-night); }
.sp-ie-text { margin-top: 18px; max-width: 40ch; font-size: 1.125rem; line-height: 1.6; color: #44546a; }
.sp-ie-more { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--ia-night); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(11, 37, 64, 0.35); }
.sp-ie-more:hover { text-decoration-color: currentColor; color: var(--ia-night); }
.sp-ie-more:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 3px; }
/* The "why": a stronger line under the problem, set off by a hairline
   across the whole text width (never a stripe on one side). */
.sp-ie-why { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ia-line-light); max-width: 34ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; font-weight: 500; color: var(--ia-night); }
.sp-ie-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 4px; }
.sp-ie-statement { max-width: 16ch; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.08; font-weight: 400; letter-spacing: -0.02em; color: var(--ia-night); }
.sp-ie-canvas { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.sp-ie-still, .sp-ie-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sp-ie-canvas canvas { opacity: 0; }
.sp-ie.is-live .sp-ie-canvas canvas { opacity: 1; }
.sp-ie.is-live .sp-ie-still { visibility: hidden; }
@media (min-width: 768px) {
  .sp-ie-stage { margin-inline: -40px; }
}
/* Phones: the engine sticks above, so a block fills what is left. */
@media (max-width: 1023px) {
  .sp-ie-block:not(.sp-ie-block--intro) { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; }
  /* The closing line is the last block: its own height, so the eras follow
     without a stretch of white. */
  .sp-ie-block.sp-ie-block--outro { min-height: 0; }
}
@media (max-width: 1023px) {
  .sp-ie-lead, .sp-ie-text { font-size: 1rem; margin-top: 12px; }
  .sp-ie-problem, .sp-ie-statement { font-size: clamp(1.5rem, 6.4vw, 2rem); }
}
@media (min-width: 1024px) {
  .sp-ie-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .sp-ie-flow { display: block; }
  /* Each block is one screen tall, its text centred. */
  .sp-ie-block { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 96px; }
  /* The closing line needs no full screen: a shorter block keeps it beside
     the assembled engine without a screen of white before the eras
     (Paul, 2026-11-15: too much space before "Each era left its layer"). */
  .sp-ie-block.sp-ie-block--outro { min-height: 60vh; min-height: 60svh; padding-bottom: 48px; }
  .ii-section.ii-eras { padding-top: 96px; }
  /* The stage: one screen tall, the engine centred, its column running to
     the window's right edge so the engine is as large as the column allows. */
  .sp-ie-stage {
    height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0;
    margin-inline: 0 min(-40px, calc((1240px - 100vw) / 2 - 40px));
  }
}

/* ---- Industry entry page: after the scene, the proof and the contact ----
   One large heading and one sentence per section, then the material, all
   on white (Paul, 2026-11-15). Paul's rules: no box nested in a box, no
   coloured stripe on one side of a block. */
.ii-section { padding-block: 88px; background: #ffffff; color: var(--ia-night); }
@media (min-width: 1024px) { .ii-section { padding-block: 128px; } }
.ii-section :where(h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; }
.ii-section :where(ol, ul) { list-style: none; padding: 0; }
.ii-head { display: grid; gap: 18px; margin-bottom: 56px; }
@media (min-width: 1024px) { .ii-head { grid-template-columns: 6fr 5fr; gap: 64px; align-items: end; margin-bottom: 72px; } }
.ii-h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.06; font-weight: 400; letter-spacing: -0.022em; max-width: 18ch; color: var(--ia-night); }
.ii-sub { font-size: 1.125rem; line-height: 1.6; color: #44546a; max-width: 52ch; }
.ii-link, .ii-inline { color: var(--ia-cyan-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(10, 118, 163, 0.4); }
.ii-link { display: inline-block; margin-top: 22px; font-weight: 600; }
.ii-link:hover, .ii-inline:hover { text-decoration-color: currentColor; }
.ii-link:focus-visible, .ii-inline:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 3px; }

/* Eras: four steps on one line, a dot per step; the last one is ours. */
.ii-eras-line { display: grid; gap: 32px; position: relative; }
.ii-eras-line li { position: relative; padding-left: 32px; }
.ii-eras-line li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; border: 2px solid var(--ia-night); }
.ii-eras-line li:last-child::before { background: var(--sp-accent); border-color: var(--sp-accent); }
.ii-eras-line::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--ia-line-light); }
.ii-eras-name { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ia-night); }
.ii-eras-text { margin-top: 8px; max-width: 30ch; font-size: 1rem; line-height: 1.6; color: #44546a; }
@media (min-width: 1024px) {
  .ii-eras-line { grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .ii-eras-line::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .ii-eras-line li { padding-left: 0; padding-top: 36px; }
  .ii-eras-line li::before { top: 0; }
}

/* Proof: the award photo, the published fact, the ecosystem. */
.ii-proof { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .ii-proof { grid-template-columns: 5fr 6fr; gap: 80px; } }
.ii-proof-photo img { display: block; width: 100%; max-width: 460px; height: auto; border-radius: 6px; }
.ii-proof .ii-sub { margin-top: 20px; }
.ii-eco { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ia-line-light); }
.ii-eco-title { font-size: 0.875rem; font-weight: 600; color: #5b6b80; }
.ii-eco ul { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; margin-top: 18px; }
.ii-eco img { display: block; height: 34px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: 0.85; }
.ii-eco-note { margin-top: 18px; font-size: 0.9375rem; color: #44546a; }

/* Contact. */
.ii-contact-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .ii-contact-grid { grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; } }
.ii-btn { background: #10c7ff; color: var(--ia-night); }
.ii-btn:hover { background: #3ad2ff; color: var(--ia-night); }


/* Shop hero (public space): the entry page's gradient and real screens,
   with the two products it sells named under the title. The product rows
   open their segment of the shop below (a plain link, the segment switcher
   keeps its own behaviour). */
.sp-hero--shop .sp-h1 { max-width: 16ch; }
.sp-shop-products { list-style: none; margin: 32px 0 0; padding: 0; max-width: 460px; border-bottom: 1px solid rgba(15, 30, 46, 0.12); }
.sp-shop-product a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 4px 16px; align-items: center;
  padding: 14px 0; border-top: 1px solid rgba(15, 30, 46, 0.12);
  color: var(--sp-ink); text-decoration: none;
}
.sp-shop-product img { grid-row: span 2; width: 40px; height: 40px; object-fit: contain; }
.sp-shop-product strong { font-size: 1.0625rem; font-weight: 600; }
.sp-shop-product span { grid-column: 2; font-size: 0.9375rem; line-height: 1.45; color: var(--sp-steel); }
.sp-shop-product svg { grid-column: 3; grid-row: 1 / span 2; color: var(--sp-steel); transition: transform 150ms ease, color 150ms ease; }
.sp-shop-product a:hover svg { transform: translateX(3px); color: var(--sp-ink); }
.sp-shop-product a:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
@media (min-width: 1024px) {
  .sp-hero--shop .sp-hero-grid { min-height: 520px; }
  .sp-hero--shop .sp-hero-visual { height: 500px; }
}
@media (prefers-reduced-motion: reduce) { .sp-shop-product svg { transition: none; } }

/* Shop panels: the screenshot is cropped by the panel's edge instead of
   floating as a rounded, shadowed frame inside the rounded panel (Paul: no
   box nested in a box). */
.sp-shop-shot { position: relative; min-height: 280px; overflow: hidden; background: #eef3f8; }
.sp-shop-shot img {
  position: absolute; top: 32px; left: 32px; right: 0; bottom: 0;
  width: calc(100% - 32px); height: calc(100% - 32px); max-width: none;
  object-fit: cover; object-position: left top;
  border-radius: 10px 0 0 0; border: 1px solid rgba(15, 30, 46, 0.08); border-right: 0; border-bottom: 0;
  box-shadow: 0 20px 40px -24px rgba(15, 30, 46, 0.35);
}
@media (min-width: 640px) { .sp-shop-shot { min-height: 380px; } }
@media (min-width: 1024px) {
  .sp-shop-shot img { top: 56px; left: 48px; width: calc(100% - 48px); height: calc(100% - 56px); }
}
