/* =============================================================================
   Landing WebMCP
   Visual layer for the action-first home rendered by tour.js.
   Loaded after tour.css so the previous welcome screen rules remain available
   to the other tour states while this sheet refines the landing only.
   ============================================================================= */

/* Local box sizing only. The design system deliberately has no global reset. */
.tour-screen--home > .tour-hero,
.tour-screen--home > .tour-hero *,
.tour-screen--home > .tour-landing-section,
.tour-screen--home > .tour-landing-section *,
.tour-screen--home > .tour-shopnote,
.tour-screen--home > .tour-shopnote * {
  box-sizing: border-box;
}

.tour-screen--home {
  --landing-action: #0b795e;
  --landing-action-hover: #075f49;
  width: 100%;
  overflow: clip;
  background: var(--rs-bg);
}

.tour-screen--home button,
.tour-screen--home a,
.tour-screen--home summary {
  -webkit-tap-highlight-color: transparent;
}

.tour-screen--home .tour-eyebrow {
  color: var(--landing-action);
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */

.tour-screen--home > .tour-hero {
  position: relative;
  overflow: hidden;
  padding: 28px var(--rs-sp-5) 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(30, 217, 164, 0.14), transparent 31%),
    linear-gradient(135deg, var(--rs-secondary) 0%, #142737 100%);
  color: #fff;
  text-align: left;
}

.tour-screen--home .tour-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.tour-hero__copy,
.tour-trace {
  min-width: 0;
}

.tour-screen--home .tour-hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--rs-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--rs-fs-xs);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tour-screen--home .tour-hero__title {
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.05rem, 3.15vw, 2.72rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.tour-screen--home .tour-hero__title > span {
  display: block;
}

.tour-screen--home .tour-hero__hl {
  margin-top: 5px;
  color: var(--rs-main-light);
}

.tour-screen--home .tour-hero__sub {
  max-width: 62ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--rs-fs-md);
  line-height: 1.55;
}

.tour-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.tour-screen--home .tour-hero__actions .rs-btn {
  min-height: 42px;
  justify-content: center;
  padding: 10px 18px;
  font-size: var(--rs-fs-sm);
  font-weight: 700;
}

.tour-screen--home .tour-hero__cta {
  margin: 0;
  background: var(--landing-action);
  color: #fff;
  box-shadow: 0 7px 18px rgba(4, 21, 28, 0.2);
}

.tour-screen--home .tour-hero__cta:hover {
  background: var(--landing-action-hover);
}

.tour-screen--home .tour-hero__secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.tour-screen--home .tour-hero__secondary:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
}

.tour-screen--home .tour-hero :focus-visible {
  outline-color: #fff;
  outline-offset: 3px;
}

.tour-hero__proof {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 62ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.77);
  font-size: var(--rs-fs-xs);
  line-height: 1.5;
}

.tour-hero__proof-icon {
  flex: 0 0 auto;
  color: var(--rs-main-light);
  font-weight: 800;
}

.tour-screen--home .tour-hero__signature {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.tour-screen--home .tour-hero__signature:hover,
.tour-screen--home .tour-hero__signature:focus-visible {
  color: #fff;
}

/* Browser-tab boundary and the real tool trace. */
.tour-trace {
  align-self: stretch;
  max-width: 540px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--rs-radius-lg);
  background: #f8fafc;
  color: var(--rs-ink);
  box-shadow: 0 14px 34px rgba(4, 20, 30, 0.22);
  overflow: hidden;
}

.tour-trace__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-sp-3);
  min-height: 38px;
  padding: 7px 8px 7px 64px;
  border-bottom: 1px solid var(--rs-line);
  background: var(--rs-surface-2);
}

.tour-trace__head::before {
  position: absolute;
  left: 15px;
  width: 34px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #f2682c 0 4px, transparent 4.5px),
    radial-gradient(circle at 17px 5px, #f2b705 0 4px, transparent 4.5px),
    radial-gradient(circle at 29px 5px, var(--rs-main) 0 4px, transparent 4.5px);
  content: "";
}

.tour-trace__boundary {
  min-width: 0;
  color: var(--rs-secondary);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.tour-trace__replay {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #cad5de;
  border-radius: 50%;
  background: var(--rs-surface);
  color: var(--landing-action);
  font-size: 1rem;
  line-height: 1;
}

.tour-trace__replay:hover {
  border-color: var(--landing-action);
  background: var(--rs-main-100);
}

.tour-trace__replay:focus-visible {
  outline-color: var(--landing-action);
}

.tour-trace__steps {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.tour-trace__step {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e1e8ee;
  border-radius: 9px;
  background: var(--rs-surface);
  overflow: hidden;
}

.tour-trace__label,
.tour-trace__sub-label {
  display: block;
  margin-bottom: 3px;
  color: var(--rs-secondary-300);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
}

.tour-trace__text {
  color: var(--rs-ink);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.tour-trace__agent {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rs-ink-soft);
  font-size: var(--rs-fs-xs);
  font-weight: 600;
}

.tour-trace__agent-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 2px solid #b6c6d2;
  border-radius: 50%;
  background: var(--landing-action);
}

.tour-trace__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tour-trace__tool,
.tour-trace__selected,
.tour-trace__result-id {
  max-width: 100%;
  padding: 3px 6px;
  border-radius: var(--rs-radius-sm);
  background: var(--rs-surface-2);
  color: var(--rs-secondary);
  font-family: var(--rs-mono);
  font-size: 0.65rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.tour-trace__tool.is-selected,
.tour-trace__selected {
  background: var(--rs-main-100);
  color: #075f49;
  font-weight: 700;
}

.tour-trace__selection {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.tour-trace__inputs {
  min-width: 0;
}

.tour-trace__args {
  display: block;
  width: 100%;
  max-height: 64px;
  margin: 0;
  padding: 5px 7px;
  border-radius: var(--rs-radius-sm);
  background: #132332;
  color: #dce8ef;
  font-family: var(--rs-mono);
  font-size: 0.6rem;
  line-height: 1.35;
  overflow: auto;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  white-space: pre-wrap;
}

.tour-trace__result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 7px;
  color: var(--rs-ink);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.tour-trace__site-context {
  grid-column: 1 / -1;
  color: var(--rs-ink-soft);
  font-size: 0.62rem;
  font-weight: 600;
}

.tour-trace__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--landing-action);
  color: #fff;
  font-size: 0.66rem;
}

.tour-trace__result-id {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
}

/* Deterministic, finite reveal. Removing and restoring .is-playing replays it. */
.tour-trace.is-animated .tour-trace__step {
  opacity: 0;
  transform: translateY(7px);
}

.tour-trace.is-animated.is-playing .tour-trace__step {
  animation: landing-trace-reveal 330ms var(--rs-ease) both;
  animation-delay: calc(90ms + (var(--trace-index) * 285ms));
}

.tour-trace.is-animated.is-playing .tour-trace__agent-dot {
  animation: landing-trace-agent 380ms ease-in-out 2;
  animation-delay: 430ms;
}

.tour-trace.is-animated.is-playing .tour-trace__tool.is-selected {
  animation: landing-trace-select 440ms var(--rs-ease) 1 both;
  animation-delay: 860ms;
}

@keyframes landing-trace-reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-trace-agent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 163, 127, 0); }
  50% { box-shadow: 0 0 0 5px rgba(16, 163, 127, 0.18); }
}

@keyframes landing-trace-select {
  from { box-shadow: 0 0 0 0 rgba(16, 163, 127, 0); }
  55% { box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.2); }
  to { box-shadow: 0 0 0 0 rgba(16, 163, 127, 0); }
}

/* -------------------------------------------------------------------------- */
/* Shared landing sections                                                     */
/* -------------------------------------------------------------------------- */

.tour-landing-section {
  width: 100%;
  padding: 52px var(--rs-sp-5);
  scroll-margin-top: 68px;
}

.tour-landing-section__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}

.tour-landing-section .tour-eyebrow {
  text-align: left;
}

.tour-screen--home .tour-landing-section__title {
  max-width: 24ch;
  color: var(--rs-secondary);
  font-size: clamp(1.75rem, 2.4vw, 2.2rem);
  letter-spacing: -0.018em;
}

.tour-landing-section__lead {
  max-width: 72ch;
  margin-top: 12px;
  color: var(--rs-ink-soft);
  font-size: var(--rs-fs-md);
  line-height: 1.6;
}

.tour-featured,
.tour-decision,
.tour-technical {
  background: var(--rs-surface);
}

.tour-webmcp-comparison,
.tour-explorer {
  background: var(--rs-bg);
}

/* -------------------------------------------------------------------------- */
/* Featured requests                                                           */
/* -------------------------------------------------------------------------- */

.tour-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.tour-feature-card {
  min-width: 0;
  min-height: 242px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface);
  color: var(--rs-ink);
  box-shadow: var(--rs-shadow-sm);
  text-align: left;
  transition:
    border-color var(--rs-dur-fast) var(--rs-ease),
    box-shadow var(--rs-dur-fast) var(--rs-ease),
    transform var(--rs-dur-fast) var(--rs-ease);
}

.tour-feature-card:hover,
.tour-feature-card:focus-visible {
  border-color: var(--landing-action);
  box-shadow: var(--rs-shadow);
  transform: translateY(-2px);
}

.tour-feature-card__top,
.tour-feature-card__tags,
.tour-feature-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.tour-feature-card__top {
  justify-content: space-between;
}

.tour-feature-card__industry,
.tour-feature-card__session,
.tour-feature-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--rs-radius-pill);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.3;
}

.tour-feature-card__industry {
  padding: 4px 9px;
  background: var(--rs-surface-2);
  color: var(--rs-secondary);
}

.tour-feature-card__session {
  color: #075f49;
}

.tour-feature-card__session > span:first-child {
  color: var(--landing-action);
  font-size: 0.55rem;
}

.tour-feature-card__request {
  display: block;
  color: var(--rs-secondary);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.tour-feature-card__tag {
  padding: 4px 8px;
  background: var(--rs-main-100);
  color: #075f49;
}

.tour-feature-card__foot {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--rs-line);
}

.tour-feature-card__calls {
  color: var(--rs-muted);
  font-size: var(--rs-fs-xs);
  font-weight: 600;
}

.tour-feature-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--landing-action);
  font-size: var(--rs-fs-xs);
  font-weight: 800;
}

.tour-featured__browse {
  min-height: 42px;
  margin-top: 22px;
  border-color: #b8c8d3;
  color: var(--rs-secondary);
  font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* WebMCP comparison                                                           */
/* -------------------------------------------------------------------------- */

.tour-webmcp-comparison__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.tour-webmcp-comparison__intro p {
  padding: 0 2px;
  color: var(--rs-ink-soft);
  font-size: var(--rs-fs-md);
  line-height: 1.62;
}

.tour-comparison-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tour-comparison-path {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface);
  box-shadow: var(--rs-shadow-sm);
}

.tour-comparison-path--with {
  border-color: #91d8c6;
  background: linear-gradient(145deg, #fff 0%, #edf9f5 100%);
}

.tour-comparison-path__title {
  color: var(--rs-secondary-300);
  font-size: var(--rs-fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-comparison-path--with .tour-comparison-path__title {
  color: var(--landing-action);
}

.tour-comparison-path__steps {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.tour-comparison-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--rs-surface-2);
}

.tour-comparison-path--with .tour-comparison-step {
  background: rgba(214, 243, 236, 0.78);
}

.tour-comparison-step:not(:last-child)::after {
  position: absolute;
  bottom: -13px;
  left: 24px;
  z-index: 1;
  color: var(--rs-muted);
  content: "\2193";
  font-size: 0.8rem;
  font-weight: 800;
}

.tour-comparison-path--with .tour-comparison-step:not(:last-child)::after {
  color: var(--landing-action);
}

.tour-comparison-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d9e2e9;
  color: var(--rs-secondary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tour-comparison-path--with .tour-comparison-step__number {
  background: var(--landing-action);
  color: #fff;
}

.tour-comparison-step__text {
  min-width: 0;
  color: var(--rs-ink);
  font-size: var(--rs-fs-sm);
  font-weight: 700;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.tour-comparison__closing {
  margin-top: 21px;
  color: var(--rs-secondary);
  font-size: var(--rs-fs-lg);
  font-weight: 800;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Decision guide                                                              */
/* -------------------------------------------------------------------------- */

.tour-decision__questions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--rs-radius);
  background: var(--rs-secondary);
  color: #fff;
}

.tour-decision__questions p {
  font-size: var(--rs-fs-sm);
  font-weight: 700;
  line-height: 1.45;
}

.tour-decision__questions > span {
  color: var(--rs-main-light);
  font-size: 1.25rem;
  font-weight: 800;
}

.tour-decision__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tour-decision-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface);
  box-shadow: var(--rs-shadow-sm);
}

.tour-decision-card--webmcp {
  border-color: #91d8c6;
  background: #f2fbf8;
}

.tour-decision-card__route {
  display: block;
  min-height: 2.6em;
  color: var(--rs-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.tour-decision-card--webmcp .tour-decision-card__route {
  color: var(--landing-action);
}

.tour-decision-card__title {
  margin-top: 8px;
  color: var(--rs-secondary);
  font-size: var(--rs-fs-lg);
  font-weight: 800;
  line-height: 1.3;
}

.tour-decision-card--webmcp .tour-decision-card__title {
  color: #075f49;
}

.tour-decision-card__text {
  margin-top: 9px;
  color: var(--rs-ink-soft);
  font-size: var(--rs-fs-sm);
  line-height: 1.55;
}

.tour-decision-card__examples {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  padding: 0;
  color: var(--rs-ink-soft);
  font-size: var(--rs-fs-xs);
  font-weight: 600;
  list-style: none;
}

.tour-decision-card__examples li {
  position: relative;
  padding-left: 14px;
  line-height: 1.38;
}

.tour-decision-card__examples li::before {
  position: absolute;
  top: 0.53em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rs-secondary-300);
  content: "";
}

.tour-decision-card--webmcp .tour-decision-card__examples li::before {
  background: var(--landing-action);
}

/* -------------------------------------------------------------------------- */
/* Full scenario explorer                                                      */
/* -------------------------------------------------------------------------- */

.tour-explorer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.tour-industry-card {
  min-width: 0;
  min-height: 150px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  width: 100%;
  padding: 17px;
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-lg);
  background: var(--rs-surface);
  color: var(--rs-ink);
  box-shadow: var(--rs-shadow-sm);
  text-align: left;
  transition:
    border-color var(--rs-dur-fast) var(--rs-ease),
    box-shadow var(--rs-dur-fast) var(--rs-ease),
    transform var(--rs-dur-fast) var(--rs-ease);
}

.tour-industry-card:hover,
.tour-industry-card:focus-visible {
  border-color: var(--landing-action);
  box-shadow: var(--rs-shadow);
  transform: translateY(-2px);
}

.tour-industry-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--rs-surface-2);
  font-size: 1.25rem;
  line-height: 1;
}

.tour-industry-card__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tour-industry-card__title {
  color: var(--rs-secondary);
  font-size: var(--rs-fs-md);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tour-industry-card__count {
  margin-top: 3px;
  color: var(--landing-action);
  font-size: var(--rs-fs-xs);
  font-weight: 800;
}

.tour-industry-card__example-label {
  margin-top: 12px;
  color: var(--rs-muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.tour-industry-card__example {
  margin-top: 3px;
  color: var(--rs-ink-soft);
  font-size: var(--rs-fs-xs);
  font-weight: 600;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.tour-industry-card__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rs-surface-2);
  color: var(--rs-secondary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.tour-industry-card:hover .tour-industry-card__chevron,
.tour-industry-card:focus-visible .tour-industry-card__chevron {
  background: var(--landing-action);
  color: #fff;
}

/* Modale du sous-menu (demande utilisateur 2026-09-01) : le panneau ne vit plus
   sous la grille mais AU MILIEU de l'écran, en superposition. Il garde le fond
   bleu pastel de l'ancien panneau (les prompts blancs ressortent dessus) et se
   ferme par la croix, un clic sur le voile ou Échap. z-index 200 : même étage
   que la modale Outils, au-dessus des tooltips (120). */
.tour-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(22, 34, 46, 0.42);
  backdrop-filter: blur(2px);
}

.tour-modal[hidden] { display: none; }

.tour-modal__panel {
  display: flex; flex-direction: column;
  /* La convention RESONEO n'active pas border-box globalement : ici la gouttière
     doit rester DANS les 96vw, sinon le panneau déborde sur petit écran. */
  box-sizing: border-box;
  width: min(880px, 96vw);
  max-height: min(84vh, 720px);
  padding: 18px;
  border: 1px solid #c3d8ee;
  border-radius: var(--rs-radius-lg);
  background: #e9f2fb;
  box-shadow: var(--rs-shadow-lg);
  animation: tour-modal-pop var(--rs-dur-fast, 0.16s) var(--rs-ease, ease) both;
}

@keyframes tour-modal-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.tour-modal__head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}

.tour-modal__title {
  flex: 1; min-width: 0; margin: 0;
  font-size: var(--rs-fs-lg);
  font-weight: 800;
  color: var(--rs-secondary);
}

.tour-modal__close {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid #c3d8ee; border-radius: 50%;
  background: var(--rs-surface);
  color: var(--rs-secondary);
  font: inherit; font-size: 0.85rem; line-height: 1;
  cursor: pointer;
  transition: border-color var(--rs-dur-fast) var(--rs-ease),
              background var(--rs-dur-fast) var(--rs-ease);
}

.tour-modal__close:hover,
.tour-modal__close:focus-visible {
  border-color: var(--landing-action);
  background: var(--rs-surface-2);
}

/* La liste défile SEULE : le titre et la croix restent atteignables même sur une
   rubrique à cinq demandes dans une fenêtre courte. */
.tour-modal__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  overflow-y: auto;
  align-content: start;
}

.tour-modal .tour-card__item,
.tour-explorer .tour-card__item {
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border-color: var(--rs-line);
  border-radius: 9px;
  font-size: var(--rs-fs-sm);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------- */
/* Secondary technical details and inline stats                               */
/* -------------------------------------------------------------------------- */

.tour-technical {
  border-top: 1px solid var(--rs-line);
}

.tour-technical .tour-landing-section__inner {
  max-width: 980px;
}

.tour-technical .tour-landing-section__title {
  font-size: var(--rs-fs-xl);
}

.tour-demo-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 17px;
  color: var(--rs-ink-soft);
  font-size: var(--rs-fs-sm);
}

.tour-demo-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 15px;
  border-right: 1px solid var(--rs-line);
  white-space: nowrap;
}

.tour-demo-stat:first-child {
  padding-left: 0;
}

.tour-demo-stat:last-child {
  border-right: 0;
}

.tour-demo-stat strong {
  color: var(--rs-secondary);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.tour-disclosures {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.tour-disclosure {
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius);
  background: var(--rs-surface);
  box-shadow: var(--rs-shadow-sm);
  overflow: clip;
}

.tour-disclosure[open] {
  border-color: #a8dccc;
}

.tour-disclosure__summary {
  padding: 14px 16px;
  color: var(--rs-secondary);
  font-size: var(--rs-fs-md);
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.tour-disclosure__summary::marker {
  color: var(--landing-action);
}

.tour-disclosure__summary:hover {
  background: var(--rs-surface-2);
}

.tour-screen--home .tour-disclosure:focus-within > .tour-disclosure__summary,
.tour-screen--home .tour-disclosure__summary:focus,
.tour-screen--home .tour-disclosure__summary:focus-visible {
  outline: 3px solid var(--landing-action);
  outline-offset: -3px;
  background: #edf8f4;
}

.tour-disclosure__body {
  padding: 2px 16px 15px 34px;
  border-top: 1px solid var(--rs-line);
}

.tour-disclosure__body p {
  margin-top: 11px;
  color: var(--rs-ink-soft);
  font-size: var(--rs-fs-sm);
  line-height: 1.62;
}

/* Existing storefront handoff below the redesigned landing. */
.tour-screen--home > .tour-shopnote {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px var(--rs-sp-5) 18px;
  text-align: left;
}

.tour-screen--home > .tour-shopnote .tour-eyebrow {
  text-align: left;
}

.tour-screen--home > .tour-shopnote .tour-shopnote__title {
  font-size: var(--rs-fs-xl);
}

/* -------------------------------------------------------------------------- */
/* Tablet                                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .tour-screen--home > .tour-hero {
    padding-inline: 20px;
  }

  .tour-screen--home .tour-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.96fr);
    gap: 22px;
  }

  .tour-screen--home .tour-hero__title {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
  }

  .tour-trace__selection {
    grid-template-columns: 1fr;
  }

  .tour-trace__args {
    max-height: 50px;
  }

  .tour-featured__grid,
  .tour-explorer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-decision__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-decision-card--html {
    grid-column: 1 / -1;
  }
}

/* -------------------------------------------------------------------------- */
/* Mobile                                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .tour-screen--home > .tour-hero {
    padding: 26px 18px 30px;
  }

  .tour-screen--home .tour-hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .tour-screen--home .tour-hero__title {
    max-width: 17ch;
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }

  .tour-screen--home .tour-hero__sub {
    font-size: var(--rs-fs-sm);
  }

  .tour-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tour-screen--home .tour-hero__actions .rs-btn {
    width: 100%;
    min-height: 46px;
  }

  .tour-trace {
    width: 100%;
    max-width: none;
  }

  .tour-landing-section {
    padding: 44px 18px;
    scroll-margin-top: 82px;
  }

  .tour-featured__grid,
  .tour-webmcp-comparison__intro,
  .tour-comparison-paths,
  .tour-decision__grid,
  .tour-explorer__grid,
  .tour-modal__items {
    grid-template-columns: 1fr;
  }

  .tour-feature-card {
    min-height: 0;
  }

  .tour-featured__browse {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .tour-decision__questions {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .tour-decision__questions > span {
    transform: rotate(90deg);
    transform-origin: center;
  }

  .tour-decision-card--html {
    grid-column: auto;
  }

  .tour-industry-card {
    min-height: 0;
  }

  .tour-explorer .tour-card__item {
    min-height: 48px;
  }

  .tour-screen--home > .tour-shopnote {
    padding: 34px 18px 16px;
  }
}

@media (max-width: 390px) {
  .tour-screen--home > .tour-hero,
  .tour-landing-section {
    padding-inline: 16px;
  }

  .tour-screen--home .tour-hero__title {
    font-size: 1.86rem;
  }

  .tour-trace__head {
    padding-left: 58px;
  }

  .tour-trace__head::before {
    left: 11px;
  }

  .tour-trace__steps {
    gap: 6px;
    padding: 8px;
  }

  .tour-trace__step {
    padding: 8px;
  }

  .tour-feature-card,
  .tour-comparison-path,
  .tour-decision-card,
  .tour-modal__panel {
    padding: 16px;
  }

  .tour-feature-card__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .tour-industry-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }

  .tour-industry-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .tour-demo-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .tour-demo-stat {
    justify-content: space-between;
    padding: 7px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rs-line);
  }

  .tour-demo-stat:last-child {
    border-bottom: 0;
  }

  .tour-disclosure__body {
    padding-left: 20px;
  }

  .tour-screen--home > .tour-shopnote {
    padding-inline: 16px;
  }
}

/* -------------------------------------------------------------------------- */
/* Reduced motion                                                              */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .tour-screen--home .tour-trace.is-animated .tour-trace__step,
  .tour-screen--home .tour-trace.is-animated.is-playing .tour-trace__step {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .tour-screen--home .tour-trace__agent-dot,
  .tour-screen--home .tour-trace__tool.is-selected,
  .tour-screen--home .tour-trace__replay,
  .tour-screen--home .tour-feature-card,
  .tour-screen--home .tour-industry-card,
  .tour-screen--home .rs-btn,
  .tour-screen--home .tour-disclosure__summary,
  .tour-modal__panel,
  .tour-modal__close {
    transition: none !important;
    animation: none !important;
  }

  .tour-screen--home .tour-feature-card:hover,
  .tour-screen--home .tour-feature-card:focus-visible,
  .tour-screen--home .tour-industry-card:hover,
  .tour-screen--home .tour-industry-card:focus-visible {
    transform: none;
  }

  /* Explicitly wins over the legacy infinite bob in tour.css. */
  .tour-screen--home .tour-shopnote__arrow {
    transform: none;
    animation: none !important;
  }
}
