body.sober-home #malakoff-experience { --scene-action-fill: #a93830; }
body.sober-home #interface-en-contexte { --scene-action-fill: #21613c; }
body.sober-home #allianz-trade-pay { --scene-action-fill: #075582; }
body.sober-home #apphalt-produit { --scene-action-fill: #2757ac; }

/* The filled button keeps its text contrast as the scene changes colour. */
body.sober-home :is(#malakoff-experience, #interface-en-contexte, #allianz-trade-pay, #apphalt-produit)
  :is(.v197-scene-footer .scene183-study-link, .scene-reading-study) {
  background: var(--scene-action-fill);
  border-color: transparent;
  color: #fff;
  font-weight: 650;
}

body.sober-home :is(#malakoff-experience, #interface-en-contexte, #allianz-trade-pay, #apphalt-produit)
  :is(.v197-scene-footer .scene183-study-link, .scene-reading-study):hover {
  background: color-mix(in srgb, var(--scene-action-fill) 86%, #000);
  border-color: transparent;
}

body.sober-home :is(#malakoff-experience, #interface-en-contexte, #allianz-trade-pay, #apphalt-produit)
  :is(.v197-scene-footer .scene183-study-link, .scene-reading-study):focus-visible {
  border-radius: 9px;
  outline: 2px solid var(--scene-ink, var(--scene-action-fill));
  outline-offset: 3px;
}

.scene-brand-mark {
  display: flex;
  inline-size: max-content;
  align-items: center;
  gap: 8px;
  font: 650 16px/1 var(--sans, system-ui, sans-serif);
}

.scene-brand-mark > img {
  display: block;
  inline-size: auto;
  block-size: clamp(22px, 3.1vw, 32px);
  object-fit: contain;
}

.scene-approach-mark {
  position: absolute;
  inset-inline-start: var(--scene-mark-x, 0px);
  inset-block-start: var(--scene-mark-y, 0px);
  opacity: 0;
  z-index: 8;
  pointer-events: none;
}

:is(#interface-en-contexte, #allianz-trade-pay) .scene-approach-mark {
  padding: 5px 9px;
  border-radius: 6px;
}

#interface-en-contexte .scene-approach-mark { background: #f3f8ef; }
#allianz-trade-pay .scene-approach-mark { background: #f3f8fa; }
#apphalt-produit .scene-brand-mark > img { border-radius: 6px; }

.scene-reading-mark { margin-block-end: 13px; }
.scene-reading-mark > img { block-size: 25px; }

.ai-method__case-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-block-size: 44px;
  margin-block-start: clamp(15px, 2.1vw, 26px);
  padding: 9px 15px;
  border-radius: 8px;
  background: #2346c5;
  color: #fff;
  font: 650 .875rem/1.35 var(--sans);
  text-decoration: none;
}

.ai-method__case-link:hover { background: #183696; }
.ai-method__case-link:focus-visible { outline: 2px solid #2346c5; outline-offset: 3px; }
.ai-method__case-link svg { inline-size: 16px; block-size: 16px; flex: none; fill: none; stroke: currentColor; }

body.sober-home .site-header .project-switch-utilities .gn-menu-ai {
  display: block;
}

@media (max-width: 900px) {
  body.home-page.sober-home .site-header[data-project-theme="cetelem"] .project-switcher > summary.has-project-identity {
    grid-template-columns: minmax(0, max-content) 16px;
    column-gap: 10px;
    justify-content: center;
  }

  body.home-page.sober-home .site-header[data-project-theme="cetelem"] .project-switcher > summary.has-project-identity .project-switch-menu-label {
    display: none;
  }

  body.home-page.sober-home .site-header[data-project-theme="cetelem"] .project-switcher > summary.has-project-identity > .project-switch-chevron {
    grid-area: 1 / 2;
    inline-size: 16px;
    block-size: 16px;
  }
}

@media (max-width: 359px) {
  body.home-page.sober-home .site-header[data-project-theme="cetelem"].has-project-identity .desktop-nav {
    flex-basis: 92px;
  }
}

@media (max-width: 800px) {
  #malakoff-experience .mh10-audit {
    --mh-wire-links-height: 34px;
    --mh-wire-links-bottom: 42px;
  }

  #malakoff-experience:is([data-mh3-phase="1"], [data-mh3-phase="2"]) .mh10-audit-grid {
    bottom: var(--mh-wire-links-bottom);
    height: var(--mh-wire-links-height);
  }

  #malakoff-experience.mh86 .mh10-audit-grid .mh10-audit-tile {
    display: grid;
    place-items: center;
    height: var(--mh-wire-links-height);
    padding: 2px 5px;
    text-align: center;
  }

  #malakoff-experience.mh86 .mh10-audit-grid .mh10-audit-tile strong {
    max-inline-size: none;
    padding-inline: 0;
    font-size: 11px;
    line-height: 1.12;
  }
}

body.sober-home #interface-en-contexte .c103-reading-grid img[src$="v47-scene-evidence-3.webp"] {
  border-radius: 0;
}

@media (forced-colors: active) {
  body.sober-home :is(#malakoff-experience, #interface-en-contexte, #allianz-trade-pay, #apphalt-produit)
    :is(.v197-scene-footer .scene183-study-link, .scene-reading-study) {
    border-color: ButtonText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-approach-mark { display: none; }
}
