/* CIMYCO v3.0.2 — polish pass
   Final overrides only. Homepage structure is unchanged. */

/* Clean hero imagery: no navigation, buttons or embedded contact data in background images. */
body.hero-distinct-expertises,
body.hero-bg-expertises{--v301-image:url('/assets/hero-clean/expertises.webp')}
body.hero-distinct-approche,
body.hero-bg-approche{--v301-image:url('/assets/hero-clean/approche.webp')}
body.hero-distinct-secteurs{--v301-image:url('/assets/hero-clean/secteurs.webp')}
body.hero-distinct-contact,
body.hero-bg-contact{--v301-image:url('/assets/hero-clean/contact.webp')}
body.hero-distinct-engineering,
body.hero-bg-engineering{--v301-image:url('/assets/hero-clean/engineering.webp')}
body.hero-distinct-digital,
body.hero-bg-digital{--v301-image:url('/assets/hero-clean/digital.webp')}
body.hero-distinct-consulting,
body.hero-bg-conseil{--v301-image:url('/assets/hero-clean/consulting.webp')}

/* Internal heroes: keep image secondary and text primary. */
body:not(.home-v27) .expert-hero,
body:not(.home-v27) .page-hero,
body:not(.home-v27) .detail-hero,
body:not(.home-v27) .simple-sector-hero-v296,
body:not(.home-v27) .secteurs-hero-v294{
  background:
    linear-gradient(90deg,rgba(2,14,29,.96) 0%,rgba(2,14,29,.89) 38%,rgba(2,14,29,.58) 65%,rgba(2,14,29,.34) 100%),
    var(--v301-image) center right / cover no-repeat !important;
}

body:not(.home-v27) .expert-hero::before,
body:not(.home-v27) .page-hero::before,
body:not(.home-v27) .detail-hero::before,
body:not(.home-v27) .simple-sector-hero-v296::before,
body:not(.home-v27) .secteurs-hero-v294::before{
  backdrop-filter:blur(.7px) !important;
}

/* Simpler CTA hover: no jumps, no excessive effects. */
body:not(.home-v27) .simple-hero-primary-v295,
body:not(.home-v27) .simple-hero-secondary-v295,
body:not(.home-v27) .secteurs-hero-actions .btn,
body:not(.home-v27) .secteurs-hero-actions .hero-secondary{
  box-shadow:none !important;
  transform:none !important;
}
body:not(.home-v27) .simple-hero-primary-v295:hover,
body:not(.home-v27) .simple-hero-secondary-v295:hover,
body:not(.home-v27) .secteurs-hero-actions .btn:hover,
body:not(.home-v27) .secteurs-hero-actions .hero-secondary:hover{
  transform:none !important;
  box-shadow:none !important;
}

/* Homepage: soften borders so the cards feel integrated rather than boxed in white. */
.home-v27 .pillar-v27{
  border-color:rgba(73,124,171,.42) !important;
  box-shadow:none !important;
}
.home-v27 .pillar-v27:hover{
  transform:none !important;
  border-color:rgba(78,166,245,.78) !important;
  background:linear-gradient(145deg,#08203b,#07182d) !important;
  box-shadow:none !important;
}
.home-v27 .pillar-v27-icon{
  border-color:rgba(46,140,230,.62) !important;
}
.home-v27 .values span{
  border-color:rgba(69,102,132,.64) !important;
}
.home-v27 .values span:hover{
  transform:none !important;
  border-color:#55aaff !important;
}

/* Generic cards: lighter separators and restrained hover. */
body:not(.home-v27) .detail-grid article,
body:not(.home-v27) .sector-grid article,
body:not(.home-v27) .method-grid article,
body:not(.home-v27) .needs-grid article{
  border-color:#d9e2ea !important;
  box-shadow:none !important;
}
body:not(.home-v27) .detail-grid article:hover,
body:not(.home-v27) .sector-grid article:hover,
body:not(.home-v27) .method-grid article:hover,
body:not(.home-v27) .needs-grid article:hover{
  transform:none !important;
  border-color:#8ebfe9 !important;
  box-shadow:0 10px 28px rgba(15,47,78,.06) !important;
}

/* More comfortable text rhythm on content pages. */
body:not(.home-v27) .detail-grid article p,
body:not(.home-v27) .sector-grid article p,
body:not(.home-v27) .method-grid article p,
body:not(.home-v27) .needs-grid article p{
  line-height:1.62 !important;
}

@media(max-width:620px){
  body:not(.home-v27) .expert-hero,
  body:not(.home-v27) .page-hero,
  body:not(.home-v27) .detail-hero,
  body:not(.home-v27) .simple-sector-hero-v296,
  body:not(.home-v27) .secteurs-hero-v294{
    background:
      linear-gradient(180deg,rgba(2,14,29,.70) 0%,rgba(2,14,29,.90) 58%,rgba(2,14,29,.97) 100%),
      var(--v301-image) center / cover no-repeat !important;
  }
}
