/* Correctifs finaux 4.2.1 — priorité après le thème et l'interface globale. */
#masthead,#masthead .ast-primary-header-bar,#masthead .ast-mobile-header-wrap,#masthead #ast-mobile-header,#masthead .site-primary-header-wrap,#masthead .ast-builder-grid-row-container-inner{background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important}
body.er-premium-archive-page #masthead,body.er-local-premium-page #masthead,body.single-post #masthead{position:absolute!important;inset:0 0 auto!important;z-index:1000!important;width:100%!important}

body.single-post .entry-meta,body.single-post .posted-on,body.single-post .byline,body.single-post .author,body.single-post .author-name,body.single-post .entry-author,body.single-post .erig-article-author,body.single-post .uwp_widget_author_box,body.single-post [class*="author-box"],body.single-post [class*="post-author"]{display:none!important}
body.single-post #content>.ast-container,body.single-post .site-content>.ast-container,body.single-post #primary,body.single-post .site-main,body.single-post article.ast-article-single,body.single-post article .entry-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.single-post article.ast-article-single>.entry-header{display:none!important}
body.single-post .er-blog-guide{width:100%!important;max-width:none!important;margin:0!important}
body.single-post .er-blog-hero{position:relative!important;display:grid!important;width:100vw!important;min-height:clamp(560px,72vh,730px)!important;margin:0 0 54px calc(50% - 50vw)!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:#071523!important;box-shadow:none!important;color:#fff!important;isolation:isolate!important}
body.single-post .er-blog-hero figure,body.single-post .er-blog-hero-body{grid-area:1/1!important}
body.single-post .er-blog-hero figure{position:absolute!important;inset:0!important;height:100%!important;margin:0!important;border:0!important;background:#071523!important;z-index:-2!important}
body.single-post .er-blog-hero figure:after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(90deg,rgba(4,17,29,.95),rgba(4,17,29,.80) 50%,rgba(4,17,29,.25))!important;z-index:1!important}
body.single-post .er-blog-hero img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:auto!important;object-fit:cover!important}
body.single-post .er-blog-hero-body{position:relative!important;z-index:2!important;display:flex!important;flex-direction:column!important;justify-content:center!important;width:min(1180px,calc(100% - 48px))!important;margin:0 auto!important;padding:clamp(132px,15vw,180px) 0 74px!important;background:transparent!important;color:#fff!important;text-align:left!important}
body.single-post .er-blog-eyebrow{align-self:flex-start!important;margin:0 0 18px!important;padding:8px 12px!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:999px!important;background:rgba(255,255,255,.10)!important;color:#f2d37e!important;font-size:12px!important;font-weight:850!important;text-transform:uppercase!important}
body.single-post .er-blog-hero h1{max-width:850px!important;margin:0 0 20px!important;color:#fff!important;font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(38px,5.2vw,68px)!important;font-weight:700!important;line-height:1.04!important;letter-spacing:-.025em!important;text-align:left!important;text-wrap:balance!important}
body.single-post .er-blog-hero-body>p:not(.er-blog-eyebrow){max-width:760px!important;margin:0!important;color:rgba(255,255,255,.88)!important;font-size:clamp(17px,1.8vw,21px)!important;line-height:1.62!important;text-align:left!important}
body.single-post .er-blog-snapshot,body.single-post .er-blog-grid,body.single-post .er-blog-process,body.single-post .er-blog-faq,body.single-post .er-blog-sources,body.single-post .er-blog-final,body.single-post .er-article-standard-content{width:min(1120px,calc(100% - 40px))!important;margin-left:auto!important;margin-right:auto!important}

body.erfb-guide-page .er-guide-hero{position:relative!important;display:grid!important;width:100vw!important;min-height:clamp(560px,72vh,720px)!important;margin:0!important;padding:clamp(132px,15vw,180px) max(24px,calc((100vw - 1180px)/2)) 72px!important;align-items:center!important;overflow:hidden!important;background:#071523!important;color:#fff!important;isolation:isolate!important}
body.erfb-guide-page .er-guide-hero__visual{position:absolute!important;inset:0!important;z-index:-2!important;width:100%!important;height:100%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.erfb-guide-page .er-guide-hero__visual:after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(90deg,rgba(4,17,29,.95),rgba(4,17,29,.80) 50%,rgba(4,17,29,.25))!important}
body.erfb-guide-page .er-guide-hero__visual img{width:100%!important;height:100%!important;object-fit:cover!important}
body.erfb-guide-page .er-guide-hero__copy{position:relative!important;z-index:2!important;max-width:850px!important}
body.erfb-guide-page .er-guide-hero h1{max-width:850px!important;margin:0 0 20px!important;color:#fff!important;font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(38px,5.2vw,68px)!important;font-weight:700!important;line-height:1.04!important;text-align:left!important;text-wrap:balance!important}

.erig-local-hero{padding-top:clamp(132px,15vw,180px)!important;background-image:linear-gradient(90deg,rgba(4,24,40,.96),rgba(8,55,84,.72),rgba(8,55,84,.22)),var(--erig-local-image)!important;background-size:cover!important;background-position:center!important}
.erig-local-search{width:min(1180px,calc(100% - 32px))!important;margin:-30px auto 38px!important;position:relative!important;z-index:5!important}.erig-local-search form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;padding:18px!important;align-items:end!important;border:1px solid #c2d5e1!important;border-radius:17px!important;background:#fff!important;box-shadow:0 18px 42px rgba(7,31,53,.16)!important}.erig-local-search label span{display:block!important;margin-bottom:7px!important;color:#29465a!important;font-size:12px!important;font-weight:850!important}.erig-local-search input{width:100%!important;min-height:48px!important;padding:0 14px!important;border:1px solid #adc5d4!important;border-radius:9px!important}.erig-local-search button{min-height:48px!important;padding:0 22px!important;border:0!important;border-radius:9px!important;background:#0d527f!important;color:#fff!important;font-weight:900!important}
.erig-local-featured{width:min(1180px,calc(100% - 32px))!important;margin:42px auto!important;padding:34px!important;border:1px solid #164f72!important;border-radius:24px!important;background:linear-gradient(145deg,#061d31,#0a4f79)!important;box-shadow:0 20px 45px rgba(7,31,53,.16)!important}.erig-local-featured>header span{color:#e5bf58!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important}.erig-local-featured>header h2{margin:7px 0!important;color:#fff!important;font-size:clamp(30px,4vw,45px)!important}.erig-local-featured>header p{color:#d3e5ef!important}.erig-local-featured .er-card-track{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:min(330px,82vw)!important;gap:18px!important;overflow-x:auto!important;padding:4px 2px 14px!important}
.er-card__company{font-size:clamp(16px,1.5vw,19px)!important;line-height:1.25!important}.er-card__logo{top:15px!important;left:15px!important;width:78px!important;height:62px!important;padding:7px!important}.er-card__meta-item--trade{background:var(--er-trade-color,#176b87)!important}.er-card__meta-item--place{background:var(--er-place-color,#8a4f7d)!important}.er-card__meta-item{color:#fff!important}
@media(max-width:700px){body.single-post .er-blog-hero,body.erfb-guide-page .er-guide-hero{min-height:590px!important}body.single-post .er-blog-hero-body{width:calc(100% - 32px)!important;padding-top:120px!important;padding-bottom:48px!important}body.single-post .er-blog-hero h1,body.erfb-guide-page .er-guide-hero h1{font-size:clamp(34px,10vw,48px)!important}.erig-local-search form{grid-template-columns:1fr!important}.erig-local-featured{width:calc(100% - 24px)!important;padding:20px!important}.erig-local-hero{background-image:linear-gradient(180deg,rgba(4,24,40,.65),rgba(4,24,40,.95)),var(--erig-local-image)!important}}

/* v4.4.0 — sur une fiche mobile, le logo de l'entreprise reste sous l'en-tête
 * Experts Romands et ne peut plus recouvrir l'identité du site. */
@media(max-width:767px){
 body.single-at_biz_dir .directorist-single-listing-header,
 body.single-at_biz_dir .er-pro-hero{padding-top:74px!important}
 body.single-at_biz_dir .directorist-single-listing-header .directorist-listing-details,
 body.single-at_biz_dir .er-pro-hero__inner{padding-top:126px!important}
 body.single-at_biz_dir .directorist-single-listing-header .er-single-logo-stable,
 body.single-at_biz_dir .er-pro-hero .er-single-logo-stable{top:18px!important;right:auto!important;left:18px!important;width:96px!important;height:96px!important;z-index:1!important;transform:none!important}
 #ast-mobile-header{position:relative!important;z-index:9999!important}
}

/* v4.2.3 — une seule conception de vedettes, calquée sur l'accueil. */
body.home .erv-shell{width:min(1240px,calc(100% - 40px))!important}
@media(min-width:768px){body.home .erv-track{gap:20px!important;padding-right:2px!important}body.home .erv-card{flex:0 0 calc((100% - 60px)/4)!important;min-width:0!important}}

body .erp-showcase.erig-category-featured{
  position:relative!important;left:auto!important;right:auto!important;inset:auto!important;translate:none!important;transform:none!important;
  width:min(1240px,calc(100% - 40px))!important;max-width:1240px!important;margin:48px auto!important;padding:36px!important;
  border:1px solid rgba(93,185,224,.42)!important;border-radius:28px!important;box-sizing:border-box!important;overflow:hidden!important
}
body .erig-category-featured .erp-showcase__head{width:100%!important;max-width:none!important;margin:0 0 28px!important}
body .erig-category-featured .erp-showcase__head h2{margin:5px 0 7px!important;font-size:clamp(32px,4vw,48px)!important;line-height:1.05!important}
body .erig-category-featured .erp-track,
body .erig-local-featured .er-card-track{
  display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - 60px)/4)!important;
  width:100%!important;max-width:none!important;gap:20px!important;margin:0!important;padding:3px 1px 18px!important;
  overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-padding:1px!important;box-sizing:border-box!important
}
body .erig-category-featured .erp-track>*,body .erig-local-featured .er-card-track>*{min-width:0!important;width:100%!important;scroll-snap-align:start!important}

body .erig-category-featured .erig-search-card,
body .erig-local-featured .er-card{
  position:relative!important;display:flex!important;min-width:0!important;overflow:hidden!important;flex-direction:column!important;
  border:1px solid rgba(255,255,255,.18)!important;border-radius:24px!important;background:#fff!important;
  box-shadow:0 22px 54px rgba(2,22,40,.28)!important
}
body .erig-category-featured .erig-card__media,
body .erig-local-featured .er-card__media{
  position:relative!important;display:flex!important;height:226px!important;min-height:226px!important;padding:16px!important;
  overflow:hidden!important;flex-direction:column!important;justify-content:flex-end!important;background-position:center!important;background-size:cover!important;
  color:#fff!important;text-decoration:none!important;box-sizing:border-box!important
}
body .erig-category-featured .erig-card__media:after,
body .erig-local-featured .er-card__media:after{content:""!important;position:absolute!important;z-index:0!important;inset:0!important;background:linear-gradient(180deg,rgba(3,20,35,.04) 20%,rgba(3,24,42,.24) 54%,rgba(3,24,42,.94) 100%)!important;pointer-events:none!important}
body .erig-category-featured .erig-card__logo,
body .erig-local-featured .er-card__logo{
  position:absolute!important;z-index:3!important;top:16px!important;right:auto!important;bottom:auto!important;left:16px!important;
  display:grid!important;width:58px!important;height:58px!important;margin:0!important;padding:6px!important;place-items:center!important;overflow:hidden!important;
  border:1px solid rgba(255,255,255,.72)!important;border-radius:16px!important;background:#fff!important;color:#0b2f4f!important;
  box-shadow:0 12px 28px rgba(2,25,44,.26)!important;box-sizing:border-box!important;font-size:16px!important;font-weight:900!important
}
body .erig-category-featured .erig-card__logo img,body .erig-local-featured .er-card__logo img{width:100%!important;height:100%!important;padding:0!important;object-fit:contain!important}
body .erig-category-featured .erig-card__media>strong,
body .erig-local-featured .er-card__company{position:relative!important;z-index:2!important;display:block!important;max-width:96%!important;margin:0 0 9px!important;overflow:hidden!important;color:#fff!important;font-size:13px!important;font-weight:780!important;line-height:1.25!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-shadow:0 2px 14px rgba(0,0,0,.68)!important}
body .erig-category-featured .erig-card__tags,
body .erig-local-featured .er-card__meta-row{position:relative!important;z-index:2!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;margin:0!important}
body .erig-category-featured .erig-card__tags i,
body .erig-local-featured .er-card__meta-item{display:flex!important;min-width:0!important;min-height:32px!important;padding:7px 9px!important;align-items:center!important;gap:6px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:999px!important;background:rgba(3,28,49,.86)!important;color:#fff!important;font-size:10.5px!important;font-style:normal!important;font-weight:780!important;line-height:1!important;text-overflow:ellipsis!important;white-space:nowrap!important;box-sizing:border-box!important;backdrop-filter:blur(10px)!important}
body .erig-category-featured .erig-card__tags i:first-child,
body .erig-local-featured .er-card__meta-item--trade{background:#176b87!important;border-color:rgba(255,255,255,.34)!important;color:#fff!important}
body .erig-category-featured .erig-card__tags i:last-child,
body .erig-local-featured .er-card__meta-item--place{background:#8a4f7d!important;border-color:rgba(255,255,255,.34)!important;color:#fff!important}
body .erig-category-featured .erig-card__body,body .erig-local-featured .er-card__body{display:block!important;margin:0!important;padding:16px!important;background:#fff!important}
body .erig-category-featured .erig-card__body>p,body .erig-local-featured .er-card__excerpt{display:none!important}
body .erig-category-featured .erig-card__actions,body .erig-local-featured .er-card__actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;margin:0!important}
body .erig-local-featured .er-card__contact-buttons{display:contents!important}
body .erig-category-featured .erig-card__actions a,
body .erig-local-featured .er-card__actions a{display:flex!important;min-width:0!important;min-height:43px!important;margin:0!important;padding:9px 8px!important;align-items:center!important;justify-content:center!important;gap:6px!important;border:1px solid rgba(11,47,79,.16)!important;border-radius:12px!important;background:#fff!important;color:#0b2f4f!important;font-size:12.5px!important;font-weight:850!important;line-height:1.1!important;text-align:center!important;text-decoration:none!important;box-sizing:border-box!important}
body .erig-category-featured .erig-card__actions .erig-phone,
body .erig-local-featured .er-card__contact-button--phone{border:0!important;background:linear-gradient(135deg,#176a9b,#0b2f4f)!important;color:#fff!important;box-shadow:0 10px 22px rgba(13,67,104,.22)!important}
body .erig-category-featured .erig-card__actions .erig-view,
body .erig-local-featured .er-card__view{grid-column:1/-1!important;background:#f4f8fb!important;color:#0b2f4f!important}

@media(min-width:768px) and (max-width:1050px){body .erig-category-featured .erp-track,body .erig-local-featured .er-card-track{grid-auto-columns:calc((100% - 40px)/3)!important}}
@media(max-width:767px){
 body.home .erv-track{padding-right:0!important}body.home .erv-card{flex:0 0 100%!important;max-width:none!important}
 body .erp-showcase.erig-category-featured,body .erig-local-featured{width:calc(100% - 24px)!important;margin:30px auto!important;padding:22px 14px!important;border-radius:21px!important}
 body .erig-category-featured .erp-track,body .erig-local-featured .er-card-track{grid-auto-columns:100%!important;gap:14px!important;padding-right:0!important}
}
