/* CIMYCO V2.9.8 - targeted hero CTA + complete mobile navigation */

/* Hero CTAs belong to the editorial column: no floating/right offset. */
body[class*="hero-distinct-"] .simple-hero-actions-v295,
body[class*="hero-bg-"] .simple-hero-actions-v295{
  position:absolute!important;
  left:max(6vw,72px)!important;
  right:auto!important;
  bottom:72px!important;
  width:min(760px,calc(100% - 144px))!important;
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:12px!important;
  margin:0!important;
  z-index:8!important;
}
body[class*="hero-distinct-"] .simple-hero-actions-v295 a,
body[class*="hero-bg-"] .simple-hero-actions-v295 a{
  margin:0!important;
  min-width:0!important;
  min-height:54px!important;
  padding:0 24px!important;
  font-size:11px!important;
  line-height:1.2!important;
  white-space:nowrap;
}
body[class*="hero-distinct-"] .simple-hero-primary-v295,
body[class*="hero-bg-"] .simple-hero-primary-v295{
  background:#fff!important;color:#07182c!important;border-color:#fff!important;
}
body[class*="hero-distinct-"] .simple-hero-secondary-v295,
body[class*="hero-bg-"] .simple-hero-secondary-v295{
  background:rgba(4,22,43,.78)!important;color:#fff!important;border-color:rgba(174,207,236,.62)!important;
}

/* Leave room for the actions below the copy. */
body[class*="hero-distinct-"] .expert-hero-copy,
body[class*="hero-distinct-"] .page-hero>div:first-child,
body[class*="hero-distinct-"] .detail-copy,
body[class*="hero-distinct-"] .secteurs-hero-copy,
body[class*="hero-bg-"] .expert-hero-copy,
body[class*="hero-bg-"] .page-hero>div:first-child,
body[class*="hero-bg-"] .detail-copy{padding-bottom:92px!important}

@media(max-width:1050px){
  .site-header{height:76px!important;padding:0 20px!important;position:sticky!important;top:0!important;z-index:1000!important}
  .site-header .brand{position:relative;z-index:1003;display:flex;align-items:center}
  .site-header .brand img{width:165px!important;max-height:52px!important;display:block}
  .menu-toggle{display:flex!important;width:46px!important;height:46px!important;padding:11px!important;border:1px solid #29435f!important;border-radius:4px!important;background:#081a2d!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;z-index:1003!important;cursor:pointer!important}
  .menu-toggle span{display:block!important;width:22px!important;height:2px!important;background:#fff!important;transition:transform .2s ease,opacity .2s ease!important}
  .menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)!important}
  .menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)!important}
  .main-nav{display:none!important;position:fixed!important;inset:76px 0 0!important;background:#061120!important;padding:18px 22px 32px!important;z-index:1001!important;overflow-y:auto!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
  .main-nav.open{display:flex!important}
  .main-nav>a,.main-nav>a:not(.nav-cta),.main-nav>a:not(.nav-cta):not(.nav-meeting){display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;min-height:54px!important;margin:0!important;padding:16px 4px!important;border:0!important;border-bottom:1px solid #18304c!important;align-items:center!important;justify-content:space-between!important;color:#fff!important;font-size:14px!important;letter-spacing:.08em!important;line-height:1.25!important}
  .main-nav>a.active{color:#69b4ff!important}
  .main-nav .nav-meeting,.main-nav .nav-cta{margin-top:14px!important;padding:16px!important;justify-content:center!important;text-align:center!important;border:1px solid #41698f!important}
  .main-nav .nav-cta{background:#1682ff!important;border-color:#1682ff!important;color:#fff!important}
  body.menu-open{overflow:hidden!important}
}

@media(max-width:800px){
  body[class*="hero-distinct-"] .expert-hero,
  body[class*="hero-distinct-"] .page-hero,
  body[class*="hero-distinct-"] .detail-hero,
  body[class*="hero-distinct-"] .simple-sector-hero-v296,
  body[class*="hero-bg-"] .expert-hero,
  body[class*="hero-bg-"] .page-hero,
  body[class*="hero-bg-"] .detail-hero{
    min-height:auto!important;
    padding:72px 22px 42px!important;
    align-items:flex-start!important;
  }
  body[class*="hero-distinct-"] .expert-hero-copy,
  body[class*="hero-distinct-"] .page-hero>div:first-child,
  body[class*="hero-distinct-"] .detail-copy,
  body[class*="hero-distinct-"] .secteurs-hero-copy,
  body[class*="hero-bg-"] .expert-hero-copy,
  body[class*="hero-bg-"] .page-hero>div:first-child,
  body[class*="hero-bg-"] .detail-copy{padding-bottom:0!important;width:100%!important;max-width:100%!important}
  body[class*="hero-distinct-"] .simple-hero-actions-v295,
  body[class*="hero-bg-"] .simple-hero-actions-v295{
    position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;margin-top:28px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;
  }
  body[class*="hero-distinct-"] .simple-hero-actions-v295 a,
  body[class*="hero-bg-"] .simple-hero-actions-v295 a{width:100%!important;white-space:normal!important;padding:15px 16px!important;min-height:54px!important;text-align:center!important}
}

/* V2.9.9 - hero composition hotfix: editorial copy and imagery never compete */
@media(min-width:801px){
  body[class*="hero-distinct-"] .expert-hero,
  body[class*="hero-distinct-"] .page-hero,
  body[class*="hero-distinct-"] .detail-hero,
  body[class*="hero-distinct-"] .simple-sector-hero-v296{
    min-height:760px!important;
    height:auto!important;
    padding:118px max(5.5vw,64px) 72px!important;
    align-items:center!important;
    background-position:72% center!important;
  }
  body[class*="hero-distinct-"] .expert-hero:before,
  body[class*="hero-distinct-"] .page-hero:before,
  body[class*="hero-distinct-"] .detail-hero:before,
  body[class*="hero-distinct-"] .simple-sector-hero-v296:before{
    content:""!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;
    background:linear-gradient(90deg,#031426 0%,rgba(3,20,38,.98) 35%,rgba(3,20,38,.82) 49%,rgba(3,20,38,.25) 70%,rgba(3,20,38,.08) 100%)!important;
  }
  body[class*="hero-distinct-"] .expert-hero-copy,
  body[class*="hero-distinct-"] .page-hero>div:first-child,
  body[class*="hero-distinct-"] .detail-copy,
  body[class*="hero-distinct-"] .secteurs-hero-copy{
    width:48%!important;max-width:720px!important;padding:0!important;z-index:4!important;
  }
  body[class*="hero-distinct-"] .expert-hero h1,
  body[class*="hero-distinct-"] .page-hero h1,
  body[class*="hero-distinct-"] .detail-hero h1,
  body[class*="hero-distinct-"] .simple-sector-hero-v296 h1{
    font-size:clamp(52px,4.45vw,76px)!important;line-height:1.01!important;letter-spacing:-.045em!important;margin-bottom:30px!important;
  }
  body[class*="hero-distinct-"] .expert-lead,
  body[class*="hero-distinct-"] .page-hero p:not(.eyebrow),
  body[class*="hero-distinct-"] .detail-copy p,
  body[class*="hero-distinct-"] .secteurs-hero-copy>p:not(.eyebrow){
    max-width:650px!important;font-size:17px!important;line-height:1.7!important;margin-bottom:0!important;
  }
  body[class*="hero-distinct-"] .simple-hero-actions-v295{
    position:static!important;width:auto!important;display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:34px!important;
  }
  body[class*="hero-distinct-"] .simple-hero-actions-v295 a{
    min-height:56px!important;padding:0 24px!important;font-size:11px!important;line-height:1.2!important;
  }
  /* Remove legacy scroll/discover fragments that visually collide with the CTA row. */
  body[class*="hero-distinct-"] .expert-scroll,
  body[class*="hero-distinct-"] .scroll-cue,
  body[class*="hero-distinct-"] .hero-scroll{display:none!important}
}

@media(max-width:800px){
  body[class*="hero-distinct-"] .expert-hero,
  body[class*="hero-distinct-"] .page-hero,
  body[class*="hero-distinct-"] .detail-hero,
  body[class*="hero-distinct-"] .simple-sector-hero-v296{
    min-height:calc(100svh - 76px)!important;padding:62px 22px 44px!important;
    background-position:68% center!important;
  }
  body[class*="hero-distinct-"] .expert-hero:before,
  body[class*="hero-distinct-"] .page-hero:before,
  body[class*="hero-distinct-"] .detail-hero:before,
  body[class*="hero-distinct-"] .simple-sector-hero-v296:before{
    content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(2,14,29,.97),rgba(2,14,29,.78) 72%,rgba(2,14,29,.62))!important;
  }
  body[class*="hero-distinct-"] .expert-hero-copy,
  body[class*="hero-distinct-"] .page-hero>div:first-child,
  body[class*="hero-distinct-"] .detail-copy,
  body[class*="hero-distinct-"] .secteurs-hero-copy{position:relative!important;z-index:3!important}
  body[class*="hero-distinct-"] .expert-hero h1,
  body[class*="hero-distinct-"] .page-hero h1,
  body[class*="hero-distinct-"] .detail-hero h1,
  body[class*="hero-distinct-"] .simple-sector-hero-v296 h1{font-size:clamp(42px,12vw,58px)!important;line-height:1!important;margin-bottom:24px!important}
}
