/* v147 — focused consistency pass. No existing animation timings or JS layout APIs changed. */
:root { --v147-radius:18px; --v147-card-shadow:0 10px 26px rgba(34,47,56,.045); }
body.sober-home { --v147-accent:#bc5538; --v147-ink:#4c332d; --v147-accent-soft:#fff3ed; --v147-line:#e9d7d0; }
body.v105-malakoff-humanis { --v147-accent:#a94d3d; --v147-ink:#52362f; --v147-accent-soft:#fff0eb; --v147-line:#e8d4cd; }
body.v105-cetelem,body.c104-immersive-page { --v147-accent:#247443; --v147-ink:#214a31; --v147-accent-soft:#ecf6ee; --v147-line:#d4e5d8; }
body.at97-detail { --v147-accent:#14558a; --v147-ink:#1f4664; --v147-accent-soft:#edf5fb; --v147-line:#d2e1ec; }
body.case-apphalt { --v147-accent:#3559bb; --v147-ink:#243c6d; --v147-accent-soft:#eef2ff; --v147-line:#d5def6; }
.v147-icon { display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;overflow:visible; }

/* Home header is the reference. Same shell, spacing and mobile behavior throughout. */
body:is(.sober-home,.sober-case) .site-header { position:sticky; top:0; z-index:90; }
body.sober-case .site-header .header-inner { background:color-mix(in srgb,var(--header-tint,rgba(247,249,252,.72)) 74%,transparent); border-color:rgba(170,185,207,.54); }
body.sober-case .site-header .project-switcher > summary { min-height:42px; }
body.sober-case .site-header .project-switcher .project-switch-identity img { object-fit:contain; }
body.sober-case .site-header[data-project-theme="malakoff"] .project-switch-identity img {max-width:94px;}
body.sober-case .site-header[data-project-theme="cetelem"] .project-switch-identity img {max-width:84px;}
body.sober-case .site-header[data-project-theme="allianz"] .project-switch-identity img {max-width:90px;}
body:is(.sober-home,.sober-case) .site-header :is(a,summary):focus-visible { outline:3px solid var(--header-accent,#3155ea);outline-offset:3px; }
/* Homepage project-colored monogram remains handled by the original working component. */
/* The back button is part of the content, never allowed to start beneath the floating shell. */
body.sober-case :is(.v105-case-hero,.case-hero,.at97-detail-intro) .back-link {display:inline-flex;align-items:center;gap:10px;position:relative;z-index:1;margin-top:12px!important;min-height:42px;margin-bottom:clamp(24px,3vw,42px)!important;}
body.sober-case .v105-case-hero:not(.mh2-hero) {padding-top:clamp(34px,3.8vw,55px);}
body.v105-malakoff-humanis .mh2-case .v105-case-hero.mh2-hero {padding-top:clamp(56px,5vw,78px);}
body.sober-case .back-link:focus-visible {outline:3px solid var(--v147-accent);outline-offset:4px;border-radius:6px;}
@media(max-width:800px){
  body.sober-case .site-header .header-inner {width:calc(100% - 20px);height:60px;padding-inline:12px;border-radius:20px;}
  body.sober-case .site-header .project-switcher > summary {min-height:42px;}
  body.sober-case .site-header .project-switch-panel {top:calc(var(--gn-header-height,76px) + 4px);}
  body.v105-malakoff-humanis .mh2-case .v105-case-hero.mh2-hero {padding-top:40px;}
}
@media(max-width:480px){
  body.sober-case .site-header .brand {gap:6px;flex:none;}
  body.sober-case .site-header .brand > span {display:block;width:44px;max-width:none;font-size:11px;line-height:1.3;white-space:normal;}
  body.sober-case .site-header .desktop-nav {flex:0 0 108px;min-width:0;justify-content:center;}
  body.sober-case .site-header .project-switcher {width:100%;}
  body.sober-case .site-header .project-switcher summary {width:100%;box-sizing:border-box;justify-content:center;padding-inline:4px;gap:5px;}
  body.sober-case .site-header .project-switch-identity img {height:23px;max-width:78px;}
  body.sober-case .site-header .header-actions {flex:none;}
}
@media(max-width:360px){body.sober-case .site-header .desktop-nav {flex-basis:92px;} body.sober-case .site-header .project-switch-identity img {max-width:72px;}}

/* Better use of existing large source (1500px): no transform rasterization or forced image enlargement. */
body.v105-malakoff-humanis .mh2-case .mh2-hero-art {transform:none;isolation:isolate;}
body.v105-malakoff-humanis .mh2-case .mh2-hero-art img {transform:none;object-fit:cover;object-position:center top;image-rendering:auto;}

/* More controlled type ladder in facts, summary cards and local navigation; keep editorial headlines. */
body.sober-case .case-study-summary article strong,
body.v105-malakoff-humanis .mh2-case .mh2-summary article strong {
  font-family:var(--sans,Arial,sans-serif);font-size:clamp(20px,2vw,26px);font-weight:650;line-height:1.25;letter-spacing:-.027em;
}
body.sober-case .case-study-summary article p {font-size:clamp(14px,1.05vw,15px);line-height:1.57;}
body.sober-case .case-study-summary article > span:not(.v147-number-icon) {font-size:11px;line-height:1.35;letter-spacing:.095em;}
body.v105-malakoff-humanis .mh2-case .mh2-index h2,
body.v105-malakoff-humanis .mh2-case .mh2-conclusion h2 {font-size:clamp(42px,4.1vw,61px);line-height:1.1;letter-spacing:-.042em;}
body.v105-malakoff-humanis .mh2-case .mh2-index>div>p:last-child {font-size:clamp(16px,1.22vw,18px);line-height:1.62;}

/* In-page contents are navigational content, not a grid of unlabelled buttons. */
body.sober-case .v147-case-index:not(.is-floating) {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;align-items:stretch;margin-top:clamp(28px,3.4vw,40px);}
body.sober-case .v147-case-index:not(.is-floating)>a.v147-nav-item {
 position:relative;display:grid!important;grid-template-columns:42px minmax(0,1fr);column-gap:14px;align-items:start;min-width:0;min-height:122px!important;box-sizing:border-box;
 padding:20px 32px 20px 20px!important;border:1px solid var(--v147-line)!important;border-radius:var(--v147-radius)!important;
 background:linear-gradient(145deg,rgba(255,255,255,.97),var(--v147-accent-soft))!important;
 box-shadow:var(--v147-card-shadow)!important;text-align:left!important;text-decoration:none!important;color:var(--v147-ink)!important;
 transform:none;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body.sober-case .v147-case-index:not(.is-floating)>a.v147-nav-item:hover {
 border-color:color-mix(in srgb,var(--v147-accent) 43%,white)!important;
 background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--v147-accent-soft) 83%,white))!important;
 box-shadow:0 15px 32px color-mix(in srgb,var(--v147-accent) 12%,transparent)!important;
 transform:translateY(-2px);
}
body.sober-case .v147-case-index:not(.is-floating)>a.v147-nav-item:focus-visible {outline:3px solid var(--v147-accent)!important;outline-offset:3px;}
.v147-nav-icon {display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--v147-accent) 11%,white);color:var(--v147-accent);}
.v147-nav-copy {display:grid;align-content:start;gap:7px;min-width:0;padding-top:1px;}
body.sober-case .v147-case-index .v147-nav-title {display:block;color:var(--v147-ink);font:650 15px/1.35 var(--sans,Arial,sans-serif);letter-spacing:-.012em;}
body.sober-case .v147-case-index .v147-nav-description {display:block;color:color-mix(in srgb,var(--v147-ink) 77%,#888);font:400 12.5px/1.46 var(--sans,Arial,sans-serif);letter-spacing:0;}
.v147-nav-arrow {position:absolute;top:23px;right:15px;color:var(--v147-accent);opacity:.6;}
.v147-nav-arrow .v147-icon {width:15px;height:15px;}
body.sober-case .v147-case-index:not(.is-floating)>a:hover .v147-nav-arrow {opacity:1;}
/* Preserve the original compact, scroll-following guide and its mobile bottom dock. */
body.sober-case .v147-case-index.is-floating .v147-nav-icon,
body.sober-case .v147-case-index.is-floating .v147-nav-description,
body.sober-case .v147-case-index.is-floating .v147-nav-arrow {display:none!important;}
body.sober-case .v147-case-index.is-floating .v147-nav-copy {display:contents!important;}
body.sober-case .v147-case-index.is-floating .v147-nav-title {font:inherit!important;color:inherit!important;}
@media(min-width:741px) and (max-width:1110px){
 body.sober-case .v147-case-index:not(.is-floating) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:740px){
 body.sober-case .v147-case-index:not(.is-floating) {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
 body.sober-case .v147-case-index:not(.is-floating)>a.v147-nav-item {min-height:115px!important;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:15px 13px!important;}
 .v147-nav-icon {width:34px;height:34px;border-radius:10px;}
 .v147-nav-icon .v147-icon {width:18px;height:18px;}
 .v147-nav-arrow {display:none;}
 body.sober-case .v147-case-index .v147-nav-title {font-size:13px;}
 body.sober-case .v147-case-index .v147-nav-description {font-size:11.5px;line-height:1.4;}
}
@media(max-width:420px){
 body.sober-case .v147-case-index:not(.is-floating) {grid-template-columns:1fr!important;}
 body.sober-case .v147-case-index:not(.is-floating)>a.v147-nav-item {min-height:82px!important;grid-template-columns:36px minmax(0,1fr);gap:13px;padding:14px 16px!important;}
 body.sober-case .v147-case-index .v147-nav-title {font-size:14px;}
}

/* Visual vocabulary: one intentional icon per concept, instead of decorative indices. */
.v147-number-icon,.v147-takeaway-icon,.v147-flow-icon,.v147-workshop-icon {display:inline-grid!important;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--v147-accent-soft);color:var(--v147-accent);font-size:initial!important;letter-spacing:normal!important;}
.v147-number-icon .v147-icon,.v147-takeaway-icon .v147-icon,.v147-flow-icon .v147-icon,.v147-workshop-icon .v147-icon {width:19px;height:19px;}
body.v105-malakoff-humanis .mh2-case .mh2-takeaways>div {padding:25px 26px;min-height:176px;background:linear-gradient(170deg,#fffaf8,var(--v147-accent-soft));box-shadow:var(--v147-card-shadow);}
body.v105-malakoff-humanis .mh2-case .mh2-takeaways .v147-takeaway-icon {margin:0 0 21px;width:42px;height:42px;border:1px solid color-mix(in srgb,var(--v147-accent) 14%,white);}
body.v105-malakoff-humanis .mh2-case .mh2-takeaways strong {font-size:17px;line-height:1.38;}
body.v105-malakoff-humanis .mh2-case .mh2-takeaways p {margin-top:6px;line-height:1.55;}
body.v105-malakoff-humanis .mhv12-friction-map article>.v147-number-icon {display:inline-grid!important;width:40px;height:40px;margin-bottom:16px;}
body.v105-malakoff-humanis .mhv12-flow-track .v147-flow-icon {display:inline-grid!important;position:relative;width:36px;height:36px;margin:0 0 15px;color:var(--v147-accent);}
body.v105-malakoff-humanis .mhv12-flow-track .v147-flow-icon .v147-icon {width:18px;height:18px;}
body.case-apphalt .image-notes .v147-number-icon {display:inline-grid!important;width:34px;height:34px;margin:0;padding:0;border-radius:10px;}
body.case-apphalt .image-notes .v147-number-icon .v147-icon {width:17px;height:17px;}
body.c104-immersive-page .c103-reading-grid .v147-workshop-icon {width:40px;height:40px;margin-bottom:13px;}

/* Compact, legible friction/decision cards (the UI differentiates need vs response). */
body.v105-malakoff-humanis .mh2-case .mh2-decision-pair {max-width:1020px;gap:14px;margin-top:28px;}
body.v105-malakoff-humanis .mh2-case .mh2-decision-pair>div {
 position:relative;min-width:0;min-height:116px;display:flex;flex-direction:column;justify-content:center;
 padding:21px 23px 21px 70px!important;border:1px solid var(--v147-line);border-left:3px solid var(--v147-accent);
 border-radius:15px;background:linear-gradient(145deg,white,var(--v147-accent-soft));box-shadow:var(--v147-card-shadow);
}
body.v105-malakoff-humanis .mh2-case .mh2-decision-pair>div::before {
 content:"";position:absolute;top:21px;left:17px;width:36px;height:36px;border-radius:10px;
 background:var(--v147-accent-soft) url("/assets/images/v147-lucide-friction.20261102.svg") center/19px no-repeat;
}
body.v105-malakoff-humanis .mh2-case .mh2-decision-pair>div:nth-child(2)::before {background-image:url("/assets/images/v147-lucide-decision.20261102.svg");}
body.v105-malakoff-humanis .mh2-case .mh2-decision-pair small {margin:0 0 6px;letter-spacing:.085em;}
body.v105-malakoff-humanis .mh2-case .mh2-decision-pair strong {font-weight:600;font-size:15px;line-height:1.5;}
/* Other client studies use the same restrained informational treatment. */
body.sober-case :is(.ux142-evidence,.case-study-summary,.mh2-summary) {box-shadow:none;}
@media(max-width:640px){
 body.v105-malakoff-humanis .mh2-case .mh2-decision-pair>div {min-height:106px;padding:18px 18px 18px 64px!important;}
 body.v105-malakoff-humanis .mh2-case .mh2-decision-pair>div::before {top:18px;left:16px;width:32px;height:32px;background-size:18px;}
 body.v105-malakoff-humanis .mh2-case .mh2-takeaways>div {min-height:0;}
 body.v105-malakoff-humanis .mh2-case .mh2-index h2 {font-size:clamp(36px,8.7vw,47px);}
}
@media(prefers-reduced-motion:reduce){body.sober-case .v147-case-index:not(.is-floating)>a {transition:none!important;transform:none!important;}}
@media(forced-colors:active){.v147-nav-icon,.v147-number-icon,.v147-takeaway-icon,.v147-flow-icon{border:1px solid CanvasText;}body.sober-case .v147-case-index:not(.is-floating)>a{background:Canvas!important;border:1px solid CanvasText!important;}}

/* Preserve interactive header identity during touch, and compact guide labels. */
body.sober-case .v147-case-index.is-floating a.v147-nav-item > .v147-nav-copy {display:contents!important;}
body.sober-case .v147-case-index.is-floating a.v147-nav-item > .v147-nav-icon,
body.sober-case .v147-case-index.is-floating a.v147-nav-item > .v147-nav-arrow {display:none!important;}
body.sober-case .v147-case-index.is-floating .v147-nav-title {white-space:normal;}
/* Icon badges inside existing wireframes retain the intrinsic proportions of the demonstration. */
body.case-apphalt .ah-wireframe-top .v147-number-icon {width:26px;height:26px;border-radius:8px;min-height:0;background:#e7eff8;color:#406798;}
body.case-apphalt .ah-wireframe-top .v147-number-icon .v147-icon {width:15px;height:15px;}
body.sober-home #apphalt-produit .ah-logic-choice > span.v147-number-icon {display:grid!important;place-items:center;width:25px;height:25px;min-width:25px;border-radius:7px;background:rgba(182,207,249,.14);color:#c6ddff;}
body.sober-home #apphalt-produit .ah-logic-choice > span.v147-number-icon .v147-icon {width:16px;height:16px;}
body.sober-home #apphalt-produit .ah-logic-choice-focus > span.v147-number-icon {background:#d5e5ff;color:#1753af;}
@media(max-width:600px){body.sober-home #apphalt-produit .ah-logic-choice > span.v147-number-icon {width:21px;height:21px;min-width:21px;}}

/* Inside the embedded Cetelem scene, icons replace the previous ordinal badges. */
.question-note .v147-number-icon,.wire-consent .v147-number-icon {display:inline-grid;place-items:center;flex:none;width:30px;height:30px;min-width:30px;border-radius:9px;background:rgba(29,113,64,.1);color:#24804b;font-size:0;}
.question-note .v147-number-icon .v147-icon,.wire-consent .v147-number-icon .v147-icon {width:17px;height:17px;}

/* Utility + atelier pages reuse exactly the same home/case navigation shell. */
body.v147-utility-page {--header-accent:#bc5538;}
body.v147-atelier-page {--header-accent:#237b35;}
body.v147-utility-page .site-header {--header-accent:inherit;}
body.v147-utility-page .site-header .header-inner {display:flex;align-items:center;gap:clamp(10px,2vw,25px);height:64px;box-sizing:border-box;}
body.v147-utility-page .site-header .brand {display:inline-flex;align-items:center;min-height:44px;gap:10px;flex:none;text-decoration:none;}
body.v147-utility-page .site-header .brand .brand-mark {display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;}
body.v147-utility-page .site-header .brand img {width:36px;height:auto;}
body.v147-utility-page .site-header .brand span {font:600 14px/1.2 var(--sans,Arial,sans-serif);white-space:nowrap;}
body.v147-utility-page .site-header .desktop-nav {display:flex;align-items:center;gap:clamp(14px,2vw,26px);margin-left:auto;}
body.v147-utility-page .site-header .desktop-nav>a {font:600 13px/1.35 var(--sans,Arial,sans-serif);color:inherit;text-decoration:none;}
body.v147-utility-page .site-header .header-actions {display:flex;align-items:center;gap:8px;}
body.v147-utility-page .site-header .language-switch {display:flex;align-items:center;padding:3px;gap:2px;border:1px solid #dce1e8;border-radius:30px;background:rgba(255,255,255,.58);}
body.v147-utility-page .site-header .language-switch a {display:grid;place-items:center;min-width:42px;min-height:38px;border-radius:23px;color:#333;font:700 11px/1 var(--sans,Arial,sans-serif);text-decoration:none;}
body.v147-utility-page .site-header .language-switch a[aria-current="page"] {background:var(--header-accent,#bc5538);color:#fff;}
body.v147-utility-page .site-header .project-switch-panel {position:absolute;z-index:12;top:calc(100% + 12px);left:0;width:300px;max-height:calc(100svh - 110px);overflow:auto;box-sizing:border-box;display:block;padding:12px;background:#fff;border:1px solid #dce1e8;border-radius:14px;box-shadow:0 16px 45px #20324c22;}
body.v147-utility-page .site-header .project-switch-panel>a {display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;min-height:55px;padding:8px 10px;border-radius:8px;text-decoration:none;color:#20324c;font-size:14px;}
body.v147-utility-page .site-header .project-switch-panel>a:hover {background:#f0f3ff;}
body.v147-utility-page .site-header .project-switch-utilities a {display:flex;align-items:center;justify-content:flex-start;min-height:44px;padding:9px;font-size:12px;text-decoration:none;}
body.v147-utility-page .site-header .project-switcher summary {white-space:nowrap;}
body.v147-atelier-page .site-header .header-inner {--sober-width:1280px;}
body.v147-atelier-page .v147-atelier-back {width:min(1160px,calc(100% - 40px));margin:16px auto 0;}
body.v147-atelier-page .v147-atelier-back a {display:inline-flex;align-items:center;min-height:44px;color:#246842;font:600 13px/1.4 Arial,sans-serif;text-decoration:none;}
body.v147-atelier-page .v147-atelier-back a:hover {text-decoration:underline;}
@media(max-width:800px){
 body.v147-utility-page .site-header .desktop-nav {display:flex;gap:0;}
 body.v147-utility-page .site-header .desktop-nav>a {display:none;}
 body.v147-utility-page .site-header .header-inner {gap:10px;height:60px;}
 body.v147-utility-page .site-header .project-switch-panel {position:fixed;top:calc(var(--gn-header-height,76px) + 6px);left:10px;right:10px;width:auto;}
}
@media(max-width:480px){
 body.v147-utility-page .site-header .brand {gap:6px;flex:none;}
 body.v147-utility-page .site-header .brand span {display:block;max-width:44px;font-size:11px;line-height:1.25;white-space:normal;}
 body.v147-utility-page .site-header .brand .brand-mark {width:29px;height:29px;}
 body.v147-utility-page .site-header .brand img {width:29px;}
 body.v147-utility-page .site-header .desktop-nav {flex:0 0 108px;min-width:0;justify-content:center;margin-left:auto;}
 body.v147-utility-page .site-header .project-switcher {width:100%;}
 body.v147-utility-page .site-header .project-switcher summary {justify-content:center;width:100%;box-sizing:border-box;padding-inline:4px;}
 body.v147-utility-page .site-header .header-actions {flex:none;}
 body.v147-utility-page .site-header .language-switch a {min-width:33px;min-height:34px;}
}
@media(max-width:360px){body.v147-utility-page .site-header .desktop-nav {flex-basis:92px;}}
@media(prefers-reduced-motion:reduce){body.v147-utility-page .site-header .project-switcher summary svg {transition:none;}}

/* Keep client identity logos sized consistently in the standalone workshop header. */
body.v147-utility-page .site-header .project-switch-identity {display:inline-flex;align-items:center;gap:6px;min-width:0;}
body.v147-utility-page .site-header .project-switch-identity img {display:block;width:auto;height:23px;max-width:84px;object-fit:contain;}
body.v147-utility-page .site-header .project-switcher summary.has-project-identity svg {width:10px;height:10px;flex:0 0 10px;opacity:.72;}
@media(max-width:480px){body.v147-utility-page .site-header .project-switch-identity img {height:21px;max-width:72px;}}
