/* Scoped visual corrections requested 2026-10-30.
   Only AppHalt's menu and metric, AI practice, Cetelem scene ending,
   and the Cetelem detailed page are changed. Other projects untouched. */

/* 1. AppHalt - solid macOS-style popover, no wallpaper bleeding through.
   Keep its existing animation, dimensions and menu-item positioning intact. */
.sober-home #apphalt-produit .ah-demo .ah-demo-menu,
.sober-home #apphalt-produit .ah-demo[data-composition="showcase"] .ah-demo-menu {
  background-color:#e8e9ee;
  background-image:linear-gradient(180deg,#f0f0f4,#e6e7ed);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  border-color:rgba(255,255,255,.94);
  box-shadow:0 17px 36px rgba(12,22,47,.28), 0 2px 8px rgba(12,22,47,.10), inset 0 1px rgba(255,255,255,.8);
}

/* 2. AppHalt - the metric is a creator-reported download count, NOT a user count.
   Less imposing than the prior oversized version number. */
.sober-home #apphalt-produit .ah-download-fact {gap:11px;flex-wrap:wrap;}
.sober-home #apphalt-produit .ah-download-fact strong {font-variant-numeric:tabular-nums;letter-spacing:-.06em;}
.sober-home #apphalt-produit .ah-download-fact span {max-width:33ch;line-height:1.45;}

/* 3. AI - the first thing you see is WHEN, THEN WHAT and WHO DECIDES.
   The original 3 visual diagrams, layout and responsible roles remain. */
.sober-home .ai-practice-intro > p:last-child {max-width:64ch;}
.sober-home .aif-step {letter-spacing:.065em;line-height:1.5;color:#2a5e9c;}
.sober-home .aif-card-head {min-height:216px;}
.sober-home .aif-card h3 {max-width:18ch;}
.sober-home .aif-responsibility {border-top-color:#dbe5ef;}
.sober-home .aif-responsibility>div:last-child strong {color:#16513f;}
@media(min-width:1111px){
  .sober-home .aif-card-head {min-height:208px;}
}
@media(max-width:1110px){
  .sober-home .aif-card-head {min-height:0;}
}

/* 4. Cetelem home-story conclusion - breathe before Allianz starts. */
.sober-home #cetelem-contexte.sober-cetelem-end {
  padding-top:clamp(22px,3vw,35px);
  padding-bottom:clamp(83px,7vw,108px);
  row-gap:14px;
}
.sober-home #interface-en-contexte .sober-cetelem-end .sober-cetelem-metric {
  margin-top:8px;
  margin-bottom:17px;
  max-width:49ch;
  line-height:1.46;
}
@media(max-width:700px){
  .sober-home #cetelem-contexte.sober-cetelem-end {padding-bottom:83px;}
  .sober-home #interface-en-contexte .sober-cetelem-end .sober-cetelem-metric {margin-bottom:13px;}
}

/* 5. Cetelem detailed page - lighter editorial canvas, without a giant green slab.
   Desktop only. The section composition, text and responsive layout remain intact. */
@media(min-width:1000px){
  body.sober-case.v105-cetelem {background:#fff;}
  body.sober-case.v105-cetelem .v105-case-hero {
    background:
      radial-gradient(ellipse 45% 42% at 92% 16%,rgba(143,185,146,.18),transparent 76%),
      linear-gradient(155deg,#fff 0%,#fbfcf9 45%,#f6f9f4 100%);
    border-bottom:1px solid #dfeade;
  }
  body.sober-case.v105-cetelem .v105-case-hero > .eyebrow {
    display:block;
    width:fit-content;
    max-width:100%;
    padding-left:13px;
    border-left:3px solid #2d7849;
    color:#286344;
  }
  body.sober-case.v105-cetelem .site-header .header-inner::before {
    border:1px solid rgba(188,213,195,.95);
    background:
      linear-gradient(90deg,transparent,rgba(66,131,82,.34),transparent) 22px 0 / calc(100% - 44px) 2px no-repeat,
      linear-gradient(115deg,#e5efe7,#f3f8f1 55%,#eaf3eb);
    box-shadow:0 11px 31px rgba(27,64,41,.14),inset 0 1px 0 rgba(255,255,255,.9);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  body.sober-case.v105-cetelem .v105-case-hero .case-facts {
    box-shadow:0 14px 36px rgba(24,68,40,.055);
    border-color:#d6e3d7;
  }
  body.sober-case.v105-cetelem .v105-case-hero .case-facts > div {
    background:rgba(255,255,255,.95);
  }
  body.sober-case.v105-cetelem .case-study-summary {
    border:1px solid #d9e7d9;
    box-shadow:0 18px 38px rgba(24,68,40,.065);
    background:#fff;
    border-radius:15px;
  }
  body.sober-case.v105-cetelem .case-study-summary article {
    background:#fff;
  }
  body.sober-case.v105-cetelem .case-study-summary article:first-child {
    background:#f7faf5;
  }
  body.sober-case.v105-cetelem .case-publication-note--details {
    border-top-color:#dce8dc;
    border-bottom-color:#dce8dc;
  }
  body.sober-case.v105-cetelem .case-research-block {
    border-color:#dce9db;
    background:linear-gradient(135deg,#f5faf4,#fff 72%);
    box-shadow:0 10px 26px rgba(24,68,40,.045);
  }
  body.sober-case.v105-cetelem .v105-case-section {
    border-bottom-color:#dde8dd;
  }
  body.sober-case.v105-cetelem .v105-case-section .case-section-label {
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#286344;
  }
  body.sober-case.v105-cetelem .v105-case-section .case-section-label::before {
    content:"";
    display:block;
    width:16px;
    height:2px;
    background:#58a76a;
    border-radius:2px;
  }
}

@media(prefers-reduced-motion:reduce){
  .sober-home #apphalt-produit .ah-demo .ah-demo-menu {transition:none!important;}
}
