/* v195: one footer, outside the animated composition. */
body.sober-home .scene183-study-link{position:absolute;z-index:25;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 13px;box-sizing:border-box;color:inherit;font:500 13px/1.35 var(--sans,Arial,sans-serif);text-decoration:none;border:1px solid color-mix(in srgb,currentColor 28%,transparent);border-radius:9px;background:color-mix(in srgb,currentColor 4%,transparent);pointer-events:auto;white-space:nowrap;}
body.sober-home .scene183-study-link[hidden]{display:none!important}
body.sober-home .scene183-study-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
body.sober-home .scene183-study-link:hover{background:color-mix(in srgb,currentColor 9%,transparent);border-color:color-mix(in srgb,currentColor 45%,transparent)}
body.sober-home .scene183-study-link:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:3px}
body.sober-home #interface-en-contexte .scene183-study-link{color:var(--c183-link-color,#214331)}
@media(max-width:800px){body.sober-home .scene183-study-link{font-size:13px}}
/* Clip the scene without letting focus pan its contents horizontally in Safari. */
@supports(overflow:clip){body.sober-home #interface-en-contexte .c103-scene-sticky{overflow:clip}}
@media(max-width:800px){
 body.sober-home #interface-en-contexte .story-navigation .story-vertical-rail{width:44px}
 body.sober-home #interface-en-contexte .story-navigation .story-vertical-rail button[data-workshop-jump]::before{left:32px}
 body.sober-home #interface-en-contexte .story-navigation .story-vertical-rail button[data-workshop-jump][aria-current]::before{left:31.5px}
}

/* The in-scene link replaces the large end card; reading mode keeps its access. */
body.sober-home :is(#malakoff-experience,#interface-en-contexte,#allianz-trade-pay,#apphalt-produit).has-scene-study-access .story-next-panel--compact{display:none!important}

/* Shared editorial copy sizing. */
body.sober-home .project-brief .project-contribution{font-size:18px;line-height:1.55}
@media(max-width:800px){body.sober-home .project-brief .project-contribution{font-size:16px;line-height:1.55}}

/* v188: desktop stories share the page's existing 1280px editorial grid. */
@media(min-width:1101px){
 body.sober-home #malakoff-experience .mh3-stage{padding-inline:max(var(--sober-gutter),calc((100% - var(--sober-width))/2))}
 body.sober-home #malakoff-experience .mh3-main{width:100%;max-width:var(--sober-width);margin-inline:auto}
 body.sober-home #allianz-trade-pay[data-at125] .at84-stage-inner,
 body.sober-home #apphalt-produit[data-ah-native].ah167[data-ah-phase] .ah-stage-inner{width:min(var(--sober-width),calc(100% - 2*var(--sober-gutter)));max-width:var(--sober-width);margin-inline:auto;padding-inline:0}
}
/* v193: keep touch targets inside the scene, without moving the visible rail. */
@supports(overflow:clip){
 html:has(body.sober-home){overflow-x:clip;overscroll-behavior-x:none}
 body.sober-home :is(.mh3-stage,.at84-stage,.ah-stage){overflow:clip}
}
body.sober-home .scene183-study-link{white-space:normal}
body.sober-home .scene183-study-link span{min-width:0}
@media(max-width:800px){
 body.sober-home :is(#malakoff-experience,#allianz-trade-pay,#apphalt-produit) .story-vertical-rail,
 body.sober-home :is(#malakoff-experience,#allianz-trade-pay,#apphalt-produit) .story-vertical-rail .gn94-meter.gn102-meter{width:44px}
 body.sober-home :is(#malakoff-experience,#allianz-trade-pay,#apphalt-produit) .story-vertical-rail button.gn102-segment::before{left:24px}
 body.sober-home :is(#malakoff-experience,#allianz-trade-pay,#apphalt-produit) .story-vertical-rail button.gn102-segment[aria-current]::before{left:23.5px}
}

/* v194: one fixed footer, outside every animated composition.
   84px = 24px clear space + 44px target + 16px bottom inset. */
body.sober-home :is(.mh3-stage,.at84-stage,.ah-stage,.c103-scene-sticky){--scene-study-footer:84px;--scene-study-inset:max(var(--sober-gutter,20px),calc((100% - var(--sober-width,1280px))/2))}
body.sober-home .scene183-study-link{left:var(--scene-study-inset);top:auto;bottom:16px;height:44px;min-height:44px;max-width:calc(100% - var(--scene-study-inset) - 60px);transform:none;white-space:nowrap}
body.sober-home .story-navigation > .client-story-position.scene195-footer{position:absolute;left:var(--scene-study-inset);right:max(60px,var(--scene-study-inset));bottom:16px;height:44px;min-height:44px;margin:0;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;justify-content:normal;gap:16px;z-index:25;pointer-events:none}
body.sober-home .scene195-footer > .scene183-study-link{position:static;inset:auto;max-width:none;margin:0;transform:none;pointer-events:auto}
body.sober-home .scene195-footer > .client-story-project{display:none!important}
body.sober-home :is(#malakoff-experience,#interface-en-contexte,#allianz-trade-pay,#apphalt-produit) .scene195-footer > .scene195-step{display:block!important;visibility:visible!important;min-width:0;max-width:none!important;margin:0!important;font:500 12px/1.3 var(--sans,Arial,sans-serif)!important;opacity:.78;overflow-wrap:normal}
@media(max-width:479px){
 body.sober-home .story-navigation > .client-story-position.scene195-footer{grid-template-columns:max-content}
 body.sober-home :is(#malakoff-experience,#interface-en-contexte,#allianz-trade-pay,#apphalt-produit) .scene195-footer > .scene195-step{display:none!important}
}
body.sober-home #malakoff-experience .mh3-stage{padding-top:0;padding-bottom:var(--scene-study-footer);grid-template-rows:0 minmax(0,1fr) 0 0}
body.sober-home #malakoff-experience .mh3-main{position:relative;top:0}
body.sober-home #allianz-trade-pay[data-at125] .at84-stage-inner,
body.sober-home #apphalt-produit[data-ah-native].ah167[data-ah-phase] .ah-stage-inner{height:calc(100% - var(--scene-study-footer));padding-block:0}
body.sober-home #interface-en-contexte #c103-original-scene{top:0;bottom:auto;height:calc(100% - var(--scene-study-footer))}
@media(max-width:1100px){body.sober-home #malakoff-experience .mh3-main{row-gap:24px}}
@media(max-width:800px){
 body.sober-home #allianz-trade-pay[data-at125] .at84-stage-inner{row-gap:24px}
 body.sober-home #apphalt-produit[data-ah-native].ah167[data-ah-phase] .ah-stage-inner{grid-template-rows:150px auto;align-content:center;row-gap:24px}
}
@media(max-width:800px) and (max-height:720px) and (orientation:portrait){
 body.sober-home #apphalt-produit[data-ah-native].ah167[data-ah-phase] .ah-stage-inner{grid-template-rows:114px auto}
}

/* The complete mobile composition is centered as one reserved group. */
@media(max-width:1100px){
 body.sober-home #malakoff-experience .mh3-main{grid-template-rows:var(--scene-copy-height,160px) var(--scene-visual-height,minmax(0,1fr))!important;align-content:center}
 body.sober-home #malakoff-experience .mh3-copy-stack{height:var(--scene-copy-height,160px)!important}
}
@media(max-width:800px){
 body.sober-home #allianz-trade-pay[data-at125] .at84-stage-inner,
 body.sober-home #apphalt-produit[data-ah-native].ah167[data-ah-phase] .ah-stage-inner{grid-template-rows:var(--scene-copy-height,150px) var(--scene-visual-height,auto);align-content:center;row-gap:24px}
 body.sober-home #allianz-trade-pay[data-at125] .at84-narrative,
 body.sober-home #apphalt-produit[data-ah-native].ah167[data-ah-phase] .ah-narrative{height:var(--scene-copy-height,150px);min-height:0}
 body.sober-home #apphalt-produit[data-ah-ready] .ah167-scene{padding-top:calc(78px - var(--scene-fit-trim,0px))}
}
@media(max-width:800px) and (max-height:720px) and (orientation:portrait){
 /* Reclaim only blank spacing on the short portrait composition. */
 body.sober-home #allianz-trade-pay .ap-grid{row-gap:4px}
 body.sober-home #allianz-trade-pay .ap-module{padding-block:6px}
 body.sober-home #apphalt-produit[data-ah-ready] .ah167-scene{padding-top:calc(66px - var(--scene-fit-trim,0px))}
}
