/* Neoo Switch (Odoo) — page canonique cinématique scroll-scrub « Le déménagement invisible ».
   Source de vérité : scripts/generate-neoo-switch-odoo-10k.mjs + docs/design-neoo-switch-odoo-10k.md.
   Monde : la même lumière du jour que l'accueil, Starter, Forge, Business, Monitoring et Scheduling —
   vieux bloc d'archives violet-gris, bots-lucioles d'or, pont de lumière, charpente de verre,
   trois manques forgés par la Forge puis clipsés. Moteur éprouvé du repo, adapté de
   neoo-scheduling-scrub.css, préfixe wx-. */

.switch10k-page {
  --wx-canvas: #f4f6fc;
  --wx-panel: #ffffff;
  --wx-ink: #0c1643;
  --wx-ink-soft: #3f4c6e;
  --wx-night: #0e1c3d;
  --wx-night-panel: #16294f;
  --wx-paper: #e8edff;
  --wx-paper-soft: #9fadd6;
  --wx-accent: #2b53e8;
  --wx-accent-soft: #4d7dff;
  --wx-accent-deep: #1d3db8;
  --wx-glow: #4d7dff;
  --wx-gold: #b98a2f;
  --wx-old: #6d5f86;
  --wx-amber: #b06e1f;
  --wx-forge: #d4622a;
  --wx-mint: #157a58;
  --wx-line: rgba(76, 98, 176, .18);
  --wx-line-strong: rgba(76, 98, 176, .38);
  --wx-ease: cubic-bezier(.23, 1, .32, 1);
  --wx-subnav-h: 59px;
  --wx-stage-top: calc(var(--partner-overview-header-h, 84px) + var(--wx-subnav-h));
  --wx-display: "Cerebri Sans", "Segoe UI", system-ui, sans-serif;
  --wx-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wx-tshadow-light: 0 1px 0 rgba(248, 249, 255, .92), 0 2px 10px rgba(248, 249, 255, .78), 0 10px 40px rgba(248, 249, 255, .85);
  --wx-shell: min(calc(100% - 96px), 1240px);
  background: var(--wx-canvas);
  color: var(--wx-ink);
}

.switch10k-page [hidden] { display: none !important; }

html:has(body.switch10k-page),
body.switch10k-page {
  overflow-x: hidden;
  overflow-x: clip;
}

.switch10k-page :where(a, button, summary):focus-visible {
  outline: 3px solid var(--wx-accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- L'environnement fixe (un seul calque, toute la page) ---------- */
.wx-env {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 34% at 14% 16%, rgba(43, 83, 232, .05), transparent 70%),
    radial-gradient(40% 30% at 86% 78%, rgba(77, 125, 255, .045), transparent 70%);
}

.wx-env i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wx-accent-soft);
  opacity: .3;
}

.wx-env i:nth-child(1) { top: 24%; left: 7%; }
.wx-env i:nth-child(2) { top: 56%; left: 93%; width: 4px; height: 4px; }
.wx-env i:nth-child(3) { top: 86%; left: 14%; width: 3px; height: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .wx-env i { animation: wx-drift 74s var(--wx-ease) infinite alternate; }
  .wx-env i:nth-child(2) { animation-duration: 90s; animation-delay: -33s; }
  .wx-env i:nth-child(3) { animation-duration: 66s; animation-delay: -48s; }

  @keyframes wx-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(24px, -58px, 0); }
  }
}

body.wx-paused .wx-env i,
body.wx-paused .wx-env i::before,
body.wx-paused .wx-env i::after { animation-play-state: paused !important; }

.switch10k-page main { position: relative; z-index: 1; background: transparent; }

.switch10k-page .wx-stage,
.switch10k-page .wx-static-hero { z-index: 1; }

/* ---------- Le héro scrub épinglé (1300vh : 4 segments, 5 bandes) ---------- */
.wx-hero {
  position: relative;
  height: 1300vh;
}

.wx-stage {
  position: sticky;
  top: var(--wx-stage-top);
  height: calc(100svh - var(--wx-stage-top));
  overflow: hidden;
  isolation: isolate;
  background: var(--wx-canvas);
}

.wx-stage__media {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--wx-canvas);
}

.wx-stage__media video,
.wx-stage__media .wx-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
  transform: translateZ(0);
}

.wx-stage__media .wx-poster {
  background-position: center top;
  background-size: cover;
}

.wx-stage__media video {
  opacity: 0;
  transition: opacity 420ms var(--wx-ease);
}

.wx-stage.wx-video-ready .wx-stage__media video { opacity: 1; }
.wx-stage.wx-video-failed .wx-stage__media video { display: none; }

/* Voile de base clair : aucune frame brute derrière la page. */
.wx-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 92% at 50% 45%, rgba(248, 249, 255, 0) 40%, rgba(248, 249, 255, .55) 100%);
}

.wx-stage__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding-top: 0;
  display: grid;
  align-items: center;
  width: min(calc(100% - 96px), 1560px);
  margin-inline: auto;
}

.wx-band {
  grid-area: 1 / 1;
  position: relative;
  max-width: 620px;
  opacity: 0;
  pointer-events: none;
}

.wx-band.wx-is-on { pointer-events: auto; }

/* Voile par bande : blanc doux, meurt à 76 % pour laisser vivre la scène. */
.wx-band::before {
  content: "";
  position: absolute;
  inset: -58% -46%;
  z-index: -1;
  pointer-events: none;
  opacity: calc(.35 + .65 * var(--k, 1));
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(248, 249, 255, var(--wx-scrim, .9)) 0%, rgba(248, 249, 255, calc(var(--wx-scrim, .9) * .92)) 62%, rgba(248, 249, 255, 0) 100%);
}

.wx-band--right { justify-self: end; }

/* Le repos : la carte de rendez-vous vit au tiers droit, la bande finale
   se cale dans la partie calme de gauche sans mordre dessus. */
.wx-band.e-rise { max-width: 560px; }

/* Force du voile par bande, calée sur la pire frame de chaque plage. */
.wx-band[data-band="0"] { --wx-scrim: .82; }
.wx-band[data-band="1"] { --wx-scrim: .88; }
.wx-band[data-band="2"] { --wx-scrim: .88; }
.wx-band[data-band="3"] { --wx-scrim: .9; }
.wx-band[data-band="4"] { --wx-scrim: .88; }

.wx-band--center { justify-self: center; text-align: center; }
.wx-band--center .wx-sub { margin-inline: auto; }

.wx-band .wx-kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--wx-accent);
  font-family: var(--wx-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: var(--wx-tshadow-light);
}

.wx-band--center .wx-kicker { justify-content: center; }

.wx-band .wx-kicker .wx-wordmark {
  font-family: var(--wx-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--wx-ink);
}

.wx-band .wx-kicker .wx-wordmark span { color: var(--wx-accent); }

.wx-band h2 {
  margin: 0;
  color: var(--wx-ink);
  font-family: var(--wx-display);
  font-weight: 300;
  font-size: clamp(44px, 4.8vw, 78px);
  letter-spacing: -.052em;
  line-height: 1.06;
  text-shadow: var(--wx-tshadow-light);
}

.wx-band .wx-sub {
  margin: 20px 0 0;
  max-width: 38ch;
  color: var(--wx-ink-soft);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
  text-shadow: var(--wx-tshadow-light);
}

.wx-band .wx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  opacity: var(--kb, 0);
  transform: translateY(calc((1 - var(--kb, 0)) * 14px));
}

.wx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  opacity: var(--kb, 0);
}

.wx-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(10px);
  color: var(--wx-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.wx-chips li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wx-accent-soft);
  box-shadow: 0 0 8px rgba(77, 125, 255, .7);
}

/* Boutons du monde clair */
.wx-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--wx-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  cursor: pointer;
  transition: transform 160ms var(--wx-ease), box-shadow 180ms var(--wx-ease), border-color 180ms var(--wx-ease), background-color 180ms var(--wx-ease);
}

.wx-btn svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--wx-ease);
}

@media (hover: hover) and (pointer: fine) {
  .wx-btn:hover svg { transform: translateX(3px); }
}

.wx-btn span { white-space: nowrap; }

.wx-btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--wx-accent), var(--wx-accent-soft));
  box-shadow: 0 14px 32px rgba(43, 83, 232, .26);
}

.wx-btn--ghost {
  color: var(--wx-ink);
  border-color: var(--wx-line-strong);
  background: rgba(255, 255, 255, .85);
}

@media (hover: hover) and (pointer: fine) {
  .wx-btn:hover { transform: translateY(-2px); }
  .wx-btn--primary:hover { box-shadow: 0 18px 38px rgba(43, 83, 232, .36); }
  .wx-btn--ghost:hover { border-color: var(--wx-accent); }
}

@media (pointer: coarse) {
  .wx-btn { min-height: 44px; }
}

/* Spans du split : assemblage piloté par le --k de chaque bande. */
.wx-w { display: inline-block; white-space: pre; }
.wx-c { display: inline-block; }

/* (f) drift-down — bande 1 : les demandes se posent */
.e-drift .wx-w {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 2.8), 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * -26px));
}

/* (d) word-punch — bande 2 : l'agenda s'assemble */
.e-punch .wx-w {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 3), 1);
  --ks: clamp(0, calc((var(--k, 0) - var(--th, 0) - .12) * 3), 1);
  opacity: var(--kc);
  transform: scale(calc(.6 + .52 * var(--kc) - .12 * var(--ks)));
}

/* (a) scatter-assemble — bande 3 : la demande trouve sa file */
.e-scatter .wx-c {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 2.6), 1);
  opacity: var(--kc);
  transform: translate(calc((1 - var(--kc)) * var(--jx, 0px)), calc((1 - var(--kc)) * var(--jy, 0px))) rotate(calc((1 - var(--kc)) * var(--jr, 0deg)));
}

/* (g) approach-from-depth — bande 4 : les rappels suivent */
.e-depth .wx-w {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 2.8), 1);
  opacity: var(--kc);
  transform: scale(calc(.84 + .16 * var(--kc)));
}

/* (e) rise étagé — le repos */
.e-rise .wx-w {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 3), 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * 22px));
}

.e-rise .wx-sub {
  opacity: var(--ks2, 0);
  transform: translateY(calc((1 - var(--ks2, 0)) * 12px));
}

/* L'indice de scroll */
.wx-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--wx-ink-soft);
  font-family: var(--wx-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: var(--cue, 1);
  transition: opacity 300ms var(--wx-ease);
  pointer-events: none;
}

.wx-cue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--wx-accent), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .wx-cue i { animation: wx-cue-drop 2.4s var(--wx-ease) -1.2s infinite; transform-origin: top; }

  @keyframes wx-cue-drop {
    0% { transform: scaleY(0); }
    45%, 100% { transform: scaleY(1); }
  }
}

@media (max-height: 560px) {
  .wx-cue, .wx-chips { display: none; }
}

/* ---------- Le chargement du film : visible, honnête, jamais muet ---------- */
.wx-loader {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--wx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(12, 22, 67, .1);
  color: var(--wx-ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transform: translateX(-50%);
  transition: opacity 420ms var(--wx-ease), transform 420ms var(--wx-ease), right 420ms var(--wx-ease), bottom 420ms var(--wx-ease);
  pointer-events: none;
}

.wx-loader svg { width: 22px; height: 22px; transform: rotate(-90deg); flex: none; }
.wx-loader svg circle { fill: none; stroke-width: 4; }
.wx-loader .wx-loader__track { stroke: rgba(76, 98, 176, .22); }
.wx-loader .wx-loader__fill { stroke: var(--wx-accent); stroke-linecap: round; }
.wx-loader b { color: var(--wx-ink); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }

/* Le visiteur scrolle pendant le chargement : la pastille se range en bas à droite et reste visible. */
.wx-loader--docked {
  left: auto;
  right: 20px;
  bottom: 20px;
  transform: translateX(0) scale(.94);
}

.wx-stage.wx-video-ready .wx-loader { opacity: 0; visibility: hidden; transition: opacity 420ms var(--wx-ease), visibility 0s 420ms; }
.wx-stage.wx-video-failed .wx-loader { display: none; }

/* Le repère de scroll n'apparaît que quand le film est prêt (ou en mode image). */
.wx-stage:not(.wx-video-ready):not(.wx-video-failed) .wx-cue { opacity: 0; }

/* ---------- Le héro statique (téléphones, portrait, reduced motion) ---------- */
.wx-static-hero {
  display: none;
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--wx-canvas);
}

.wx-static-hero .wx-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: 68% center;
  background-size: cover;
}

.wx-static-hero .wx-veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(248, 249, 255, .94) 0%, rgba(248, 249, 255, .82) 36%, rgba(248, 249, 255, .4) 64%, rgba(248, 249, 255, .12) 100%),
    linear-gradient(0deg, rgba(248, 249, 255, .9) 0%, rgba(248, 249, 255, 0) 42%);
}

.wx-static-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(calc(100% - 48px), 1560px);
  min-height: 92svh;
  margin-inline: auto;
  padding: calc(var(--partner-overview-header-h, 84px) + 20px) 0 56px;
}

.wx-static-copy .wx-kicker {
  margin: 0 0 16px;
  color: var(--wx-accent);
  font-family: var(--wx-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.wx-static-title {
  margin: 0;
  max-width: 640px;
  font-family: var(--wx-display);
  font-weight: 300;
  font-size: clamp(40px, 8.4vw, 70px);
  letter-spacing: -.052em;
  line-height: 1.06;
}

.wx-static-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--wx-accent), var(--wx-accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wx-static-copy .wx-lede {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--wx-ink-soft);
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.55;
}

.wx-static-copy .wx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.wx-static-copy .wx-chips { opacity: 1; }

/* Les cinq gates — chaînes identiques dans neoo-scheduling-scrub.js. */
@media (max-width: 720px),
       (orientation: portrait) and (max-width: 1024px),
       (orientation: portrait) and (pointer: coarse),
       (orientation: landscape) and (pointer: coarse) and (max-height: 560px),
       (prefers-reduced-motion: reduce) {
  .wx-hero { display: none; }
  .wx-static-hero { display: block; }
}

/* ---------- Le site sous le settle ---------- */
.wx-section {
  position: relative;
  background: transparent;
}

.wx-shell {
  position: relative;
  width: var(--wx-shell);
  margin-inline: auto;
  padding: clamp(76px, 9vw, 132px) 0;
}

.wx-section--paper { background: linear-gradient(180deg, rgba(208, 216, 240, .5), rgba(248, 249, 255, 0) 52%); }

.wx-compat-anchor {
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--partner-overview-header-h, 84px) + 24px);
}

/* La ligne du parcours : le rail signature qui longe chaque section. */
.wx-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(18px, calc((100% - 1240px) / 2 - 52px));
  width: 22px;
  pointer-events: none;
}

.wx-rail svg { width: 100%; height: 100%; overflow: visible; }

.wx-rail path {
  fill: none;
  stroke: rgba(43, 83, 232, .34);
  stroke-width: 1.6;
  stroke-dasharray: 1;
}

.wx-rail circle { fill: var(--wx-glow); }

/* Sans JavaScript, la ligne reste tracée ; le dessin au scroll n'existe qu'avec .wx-js. */
.wx-js .wx-rail path { stroke-dashoffset: 1; }
.wx-js .wx-rail circle { opacity: 0; transition: opacity 600ms var(--wx-ease) 900ms; }
.wx-js .wx-section.in .wx-rail path { transition: stroke-dashoffset 1400ms var(--wx-ease); stroke-dashoffset: 0; }
.wx-js .wx-section.in .wx-rail circle { opacity: .9; }

@media (max-width: 1100px) {
  .wx-rail { display: none; }
}

/* Têtes de section */
.wx-head {
  max-width: 760px;
  margin: 0 0 clamp(34px, 4.5vw, 56px);
}

.wx-head .wx-eyebrow,
.wx-eyebrow {
  margin: 0 0 14px;
  color: var(--wx-accent);
  font-family: var(--wx-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wx-head h2 {
  margin: 0;
  font-family: var(--wx-display);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -.052em;
  line-height: 1.06;
}

.wx-head > p:not(.wx-eyebrow) {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--wx-ink-soft);
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.6;
}

/* Entrées choreographiées (IntersectionObserver ajoute .in sur la section).
   Masquées uniquement sous .wx-js : sans JavaScript, tout le contenu reste visible. */
.wx-js .wx-reveal {
  opacity: 0;
  transform: translateY(26px);
}

.wx-js .wx-section.in .wx-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--wx-ease), transform 700ms var(--wx-ease);
}

.wx-js .wx-section.in .wx-reveal.wx-d1 { transition-delay: 120ms; }
.wx-js .wx-section.in .wx-reveal.wx-d2 { transition-delay: 240ms; }
.wx-js .wx-section.in .wx-reveal.wx-d3 { transition-delay: 360ms; }

/* Retraite des délais après l'entrée : même spécificité + .is-settled posé par le JS. */
.wx-js .wx-section.is-settled .wx-reveal.wx-d1,
.wx-js .wx-section.is-settled .wx-reveal.wx-d2,
.wx-js .wx-section.is-settled .wx-reveal.wx-d3 { transition-delay: 0ms; }

.wx-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.wx-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--wx-ink-soft);
}

.wx-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  transform: translateY(2px);
  fill: none;
  stroke: var(--wx-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- La preuve : trois repères produit ---------- */
.wx-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: clamp(38px, 4.6vw, 62px);
}

.wx-proof article {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: 16px;
}

.wx-proof strong {
  font-family: var(--wx-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--wx-accent-deep);
}

.wx-proof span {
  color: var(--wx-ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Fonctionnement : maintenir pour confirmer ---------- */
.wx-hold-lead {
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  color: var(--wx-ink-soft);
  font-size: 15px;
}

.wx-flowboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 2.6vw, 34px);
  margin-top: clamp(18px, 2.2vw, 26px);
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 38px) clamp(26px, 3.2vw, 38px);
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: 22px;
}

.wx-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--wx-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wx-ink-soft);
}

.wx-panel-title i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wx-accent);
  box-shadow: 0 0 0 4px rgba(43, 83, 232, .14);
}

.wx-mapcol { min-width: 0; }

/* La Switch Map en direct : les bots la remplissent pendant le maintien. */
.wx-mapcol .nx-switch-map {
  padding: 16px 16px 14px;
  background: var(--wx-canvas);
  border: 1px solid var(--wx-line);
  border-radius: 16px;
  box-shadow: none;
  transition: border-color 420ms var(--wx-ease), box-shadow 420ms var(--wx-ease);
}

[data-wx-board] .nx-switch-map__matrix > div:nth-child(1) { --mi: 0; }
[data-wx-board] .nx-switch-map__matrix > div:nth-child(2) { --mi: 1; }
[data-wx-board] .nx-switch-map__matrix > div:nth-child(3) { --mi: 2; }
[data-wx-board] .nx-switch-map__matrix > div:nth-child(4) { --mi: 3; }
[data-wx-board] .nx-switch-map__matrix > div:nth-child(5) { --mi: 4; }
[data-wx-board] .nx-switch-map__matrix > div:nth-child(6) { --mi: 5; }
[data-wx-board] .nx-switch-map__matrix > div:nth-child(7) { --mi: 6; }
[data-wx-board] .nx-switch-map__matrix > div:nth-child(8) { --mi: 7; }

/* Chaque ligne de la carte s allume dans l ordre pendant le maintien. */
[data-wx-board] .nx-switch-map__matrix > div {
  --row: clamp(0, calc((var(--hold, 0) - var(--mi, 0) * .095) * 4.2), 1);
  opacity: calc(.44 + .56 * var(--row));
  min-height: 46px;
}

[data-wx-board] .nx-switch-map__matrix > div svg {
  opacity: calc(.22 + .78 * var(--row, 0));
}

[data-wx-board] .nx-switch-map__matrix > div i {
  opacity: var(--row, 0);
  transform: translate(calc(-50% + (var(--row, 0) - .5) * 120px), -50%);
}

/* Les barres de couverture se remplissent avec le maintien. */
[data-wx-board] .nx-switch-map__progress em { width: calc(var(--w) * var(--hold, 0)); }

.wx-flowboard.is-done .wx-mapcol .nx-switch-map {
  border-color: color-mix(in srgb, var(--wx-mint) 42%, var(--wx-line));
  box-shadow: 0 18px 44px rgba(21, 122, 88, .12);
}

.wx-stepcol { min-width: 0; display: grid; align-content: start; }

.wx-steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wx-steps li {
  --li: clamp(0, calc(var(--hold, 0) * 6.8 - var(--i, 0)), 1);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  padding: 8px 4px 12px;
}

.wx-steps li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 32px;
  bottom: -2px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--wx-accent) calc(var(--li) * 100%), var(--wx-line) 0);
}

.wx-steps li:last-child::before { display: none; }

.wx-step__dot {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--wx-line-strong);
  background: var(--wx-panel);
  grid-row: 1 / 3;
}

.wx-step__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--wx-accent);
  opacity: var(--li);
  transform: scale(calc(.5 + .5 * var(--li)));
}

.wx-steps li strong {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: color-mix(in srgb, var(--wx-ink) calc(58% + 42% * var(--li) * 100%), var(--wx-ink-soft));
}

.wx-steps li small {
  grid-column: 2;
  color: var(--wx-ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.wx-flow-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: clamp(16px, 2vw, 20px);
  padding-top: clamp(14px, 1.8vw, 20px);
  border-top: 1px solid var(--wx-line);
}

.wx-flow-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.wx-flow-counter b {
  font-family: var(--wx-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--wx-ink);
  font-variant-numeric: tabular-nums;
  min-width: 1.6ch;
}

.wx-flow-counter span {
  color: var(--wx-ink-soft);
  font-size: 13px;
}

.wx-holdbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 14px;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line-strong);
  border-radius: 999px;
  color: var(--wx-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: none;
  transition: border-color 320ms var(--wx-ease), box-shadow 320ms var(--wx-ease);
}

.wx-holdbtn svg {
  width: 34px;
  height: 34px;
  flex: none;
  transform: rotate(-90deg);
}

.wx-hold-track { fill: none; stroke: var(--wx-line); stroke-width: 3; }

.wx-hold-fill {
  fill: none;
  stroke: var(--wx-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 76;
  stroke-dashoffset: calc(76 - 76 * var(--hold, 0));
}

@media (hover: hover) and (pointer: fine) {
  .wx-holdbtn:hover { border-color: var(--wx-accent); box-shadow: 0 12px 30px rgba(43, 83, 232, .14); }
}

.wx-flowboard.is-done .wx-holdbtn { border-color: var(--wx-accent); }

.wx-hold-status {
  margin: 0;
  color: var(--wx-ink-soft);
  font-size: 13.5px;
}

.wx-flowboard.is-done .wx-hold-status { color: var(--wx-mint); font-weight: 600; }

/* La vie en sourdine : la balise du panneau respire tant que rien n'est confirmé. */
@media (prefers-reduced-motion: no-preference) {
  .wx-panel-title i { animation: wx-beacon 3.6s var(--wx-ease) infinite; }

  body.wx-paused .wx-panel-title i { animation-play-state: paused !important; }

  @keyframes wx-beacon {
    0%, 100% { box-shadow: 0 0 0 4px rgba(43, 83, 232, .14); }
    50% { box-shadow: 0 0 0 7px rgba(43, 83, 232, .07); }
  }
}

/* ---------- Fonctionnalités : six familles ---------- */
.wx-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.wx-module {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 20px 22px;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: 16px;
  transition: border-color 380ms var(--wx-ease), box-shadow 380ms var(--wx-ease), transform 380ms var(--wx-ease);
}

@media (hover: hover) and (pointer: fine) {
  .wx-module:hover {
    border-color: var(--wx-accent-soft);
    box-shadow: 0 16px 34px rgba(43, 83, 232, .1);
    transform: translateY(-3px);
  }
}

.wx-module h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.wx-module > p {
  margin: 0;
  color: var(--wx-ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.wx-module ul {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--wx-line);
  list-style: none;
}

.wx-module li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--wx-ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.wx-module li svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: var(--wx-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Automatisations : cinq étapes en chemin ---------- */
.wx-path {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 38px);
}

.wx-path article {
  position: relative;
  display: grid;
  gap: 6px;
  flex: 1 1 180px;
  max-width: 260px;
  padding: 22px 22px 24px;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: 18px;
}

.wx-path article span {
  font-family: var(--wx-mono);
  font-size: 12px;
  color: var(--wx-paper-soft);
  letter-spacing: .06em;
}

.wx-path article strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

.wx-path article small { color: var(--wx-ink-soft); font-size: 13.5px; line-height: 1.55; }

.wx-path b {
  align-self: center;
  color: var(--wx-paper-soft);
  font-size: 20px;
  font-weight: 400;
}

/* ---------- Gouvernance : quatre garanties ---------- */
.wx-gov {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.wx-gov article {
  display: grid;
  gap: 8px;
  padding: 20px 20px 22px;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: 16px;
}

.wx-gov svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--wx-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-gov strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.wx-gov p {
  margin: 0;
  color: var(--wx-ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- La carte pleine largeur + la ligne légale ---------- */
.wx-mapwide {
  max-width: 900px;
  margin: clamp(20px, 2.6vw, 30px) auto 0;
}

.wx-legal {
  max-width: 900px;
  margin: clamp(22px, 3vw, 34px) auto 0;
  padding: 13px 18px;
  color: var(--wx-ink-soft);
  background: var(--wx-paper);
  border-left: 3px solid var(--wx-line-strong);
  border-radius: 0 10px 10px 0;
  font-size: 12.5px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.wx-faq { max-width: 860px; }

.wx-faq details {
  border-bottom: 1px solid var(--wx-line);
}

.wx-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-size: clamp(16.5px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
}

.wx-faq summary::-webkit-details-marker { display: none; }

.wx-faq summary i {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
  transform: translateY(2px);
}

.wx-faq summary i::before,
.wx-faq summary i::after {
  content: "";
  position: absolute;
  inset: 7px 0;
  background: var(--wx-accent);
  border-radius: 2px;
  transition: transform 240ms var(--wx-ease);
}

.wx-faq summary i::after { transform: rotate(90deg); }

.wx-faq details[open] summary i::after { transform: rotate(0deg); }

.wx-faq details p {
  margin: 0;
  padding: 0 40px 22px 4px;
  color: var(--wx-ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 72ch;
}

/* ---------- CTA final ---------- */
.wx-final { text-align: center; }

.wx-final .wx-shell { max-width: 860px; }

.wx-final h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(32px, 3.8vw, 54px);
  letter-spacing: -.052em;
  line-height: 1.06;
}

.wx-final .wx-eyebrow { justify-content: center; }

.wx-final > .wx-shell > p:not(.wx-eyebrow) {
  margin: 18px auto 0;
  max-width: 58ch;
  color: var(--wx-ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.wx-final {
  background:
    radial-gradient(60% 52% at 50% 0%, rgba(77, 125, 255, .08), transparent 70%),
    var(--wx-canvas);
}

.wx-final .wx-actions {
  justify-content: center;
  margin-top: 32px;
}

.wx-final::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(560px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(77, 125, 255, .6), transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .switch10k-page { --wx-shell: min(calc(100% - 56px), 1240px); }

  .wx-proof { grid-template-columns: repeat(3, 1fr); }
  .wx-modules { grid-template-columns: repeat(2, 1fr); }
  .wx-gov { grid-template-columns: repeat(2, 1fr); }
  .wx-flowboard { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .wx-path b { display: none; }
  .wx-path article { max-width: none; }
}

@media (max-width: 560px) {
  .switch10k-page { --wx-shell: min(calc(100% - 40px), 1240px); }

  .wx-static-copy { width: min(calc(100% - 40px), 1240px); }
  .wx-proof { grid-template-columns: 1fr; }
  .wx-modules { grid-template-columns: 1fr; }
  .wx-gov { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion : états finaux, drives arrêtés ---------- */
@media (prefers-reduced-motion: reduce) {
  .switch10k-page *,
  .switch10k-page *::before,
  .switch10k-page *::after {
    animation: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  .wx-reveal,
  .wx-js .wx-reveal { opacity: 1; transform: none; }
  .wx-rail path,
  .wx-js .wx-rail path { stroke-dashoffset: 0; }
  .wx-rail circle,
  .wx-js .wx-rail circle { opacity: .9; }
  .wx-band .wx-cta-row, .wx-chips { opacity: 1; transform: none; }
  .wx-holdbtn .wx-hold-fill { stroke-dashoffset: 0; }
}

/* Reduced motion, suite : les chapitres Scheduling dans leur état final. */
@media (prefers-reduced-motion: reduce) {
  .wx-steps li { --li: 1; }
  .wx-flowboard .nx-switch-map__progress em { width: var(--w); }
  [data-wx-board] .nx-switch-map__matrix > div { --row: 1; }
}
