body.sober-home .story-navigation > .client-story-position.scene195-footer.v197-scene-footer {
  grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
  height: auto;
  min-height: 44px;
  align-items: center;
}

body.sober-home .v197-scene-footer > .scene183-study-link {
  grid-area: 1 / 1;
}

.v197-scene-meta {
  display: flex;
  grid-area: 1 / 2;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  font: 500 .75rem/1.35 var(--sans, Arial, sans-serif);
}

body.sober-home :is(#malakoff-experience, #interface-en-contexte, #allianz-trade-pay, #apphalt-produit) .v197-scene-footer .v197-scene-meta .scene195-step {
  display: block !important;
  visibility: visible !important;
  margin: 0 !important;
  max-width: none !important;
  color: inherit;
  font: inherit !important;
  opacity: 1;
}

.v197-scene-count { flex: none; font-variant-numeric: tabular-nums; }
.v197-scene-hint {
  grid-area: 1 / 3;
  justify-self: end;
  font: 500 .75rem/1.35 var(--sans, Arial, sans-serif);
}

.v197-scene-exit {
  display: inline-flex;
  grid-area: 1 / 4;
  justify-self: end;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: inherit;
  font: 600 .8125rem/1.35 var(--sans, Arial, sans-serif);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  pointer-events: auto;
}
.v197-scene-exit[hidden] { display: none; }
.v197-scene-exit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; flex: none; }
.v197-scene-exit:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 600px) {
  /* Keep both actions inside the existing 84px scene reserve. */
  body.sober-home .story-navigation > .client-story-position.scene195-footer.v197-scene-footer {
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-rows: minmax(16px, auto) 44px;
    right: var(--scene-study-inset);
    bottom: 12px;
    gap: 4px 8px;
  }

  .v197-scene-meta { grid-area: 1 / 1 / 2 / -1; }
  .v197-has-mockup-hint .v197-scene-meta { grid-column-end: 2; }
  .v197-scene-hint { grid-area: 1 / 2; font-size: .6875rem; text-align: end; }
  body.sober-home .v197-scene-footer > .scene183-study-link { grid-area: 2 / 1; }
  .v197-scene-exit { grid-area: 2 / 2; }
}

@media (max-width: 359px) {
  body.sober-home .v197-scene-footer > .scene183-study-link { padding-inline: 8px; }
}

body.sober-home #malakoff-experience .mh-fallback > .mh-fallback-copy {
  display: block !important;
}
body.sober-home #malakoff-experience .mh-fallback h2 {
  margin-top: 0;
  font-size: clamp(27px, 4vw, 42px);
}
body.sober-home #malakoff-experience .mh-fallback .sober-case-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
body.sober-home #malakoff-experience .mh-fallback .sober-case-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

body.sober-home .sober-project-heading nav .project-index-item > a.project-index-study {
  display: flex !important;
  align-self: stretch;
  justify-content: space-between;
  max-width: none;
  margin: 0 10px 10px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #edf2ff;
  color: #1e4299;
  font-size: .875rem;
  text-decoration: none;
}
body.sober-home .sober-project-heading nav .project-index-item > a.project-index-study:is(:hover, :focus-visible) {
  background: #dfe8ff;
  color: #17367c;
  text-decoration: underline;
}

body.sober-home #allianz-trade-pay :is(.ap-dates, .ap-dates small) {
  color: #405b6c;
  font-size: .8125rem;
}
body.sober-home #allianz-trade-pay .ap-payment-details > span { color: #405b6c; }
body.sober-home #apphalt-produit .ah167-tabs span:first-child { background: #0863ce; }

/* Use the scene's measured palette directly at the Cetelem handoffs. */
body.sober-home #interface-en-contexte .v197-scene-footer .scene183-study-link {
  background: transparent;
}
body.sober-home #interface-en-contexte .v197-scene-footer .scene183-study-link:hover {
  border-color: currentColor;
}
