/* Experts Romands — finitions ciblées 1.0.8 */

/* Méga-menu : trois colonnes compactes sur bureau, sans modifier le mobile. */
@media (min-width:922px){
  html body #page #masthead #ast-desktop-header .main-header-menu>.er-menu-professionals>.sub-menu{
    width:min(920px,calc(100vw - 48px))!important;
    max-width:calc(100vw - 48px)!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:auto auto!important;
    gap:10px 12px!important;
    padding:16px!important;
    align-items:start!important;
    overflow-x:hidden!important;
  }
  html body #page #masthead #ast-desktop-header .er-menu-professionals>.sub-menu>.menu-item{
    align-self:start!important;
    padding:12px 10px 10px!important;
  }
  html body #page #masthead #ast-desktop-header .er-menu-professionals>.sub-menu>.menu-item>.menu-link{
    padding-bottom:7px!important;
    font-size:14px!important;
    line-height:1.3!important;
  }
  html body #page #masthead #ast-desktop-header .er-menu-professionals>.sub-menu>.menu-item>.sub-menu .menu-link{
    padding:4px!important;
    font-size:12.75px!important;
    line-height:1.3!important;
  }
  html body #page #masthead #ast-desktop-header .er-menu-professionals>.sub-menu>.menu-item:nth-child(1){grid-column:1;grid-row:1}
  html body #page #masthead #ast-desktop-header .er-menu-professionals>.sub-menu>.menu-item:nth-child(2){grid-column:1;grid-row:2}
  html body #page #masthead #ast-desktop-header .er-menu-professionals>.sub-menu>.menu-item:nth-child(3){grid-column:2;grid-row:1}
  html body #page #masthead #ast-desktop-header .er-menu-professionals>.sub-menu>.menu-item:nth-child(5){grid-column:2;grid-row:2}
  html body #page #masthead #ast-desktop-header .er-menu-professionals>.sub-menu>.menu-item:nth-child(4){grid-column:3;grid-row:1/span 2}
}

/* Recherche premium des pages catégories : palette bleue du site. */
.er-category-page .erp-professional-search{
  border:1px solid rgba(13,82,127,.16)!important;
  background:linear-gradient(135deg,#071f35 0%,#0d527f 58%,#eaf4f9 58.2%,#fff 100%)!important;
  box-shadow:0 24px 62px rgba(7,31,53,.18)!important;
}
.er-category-page .erp-professional-search:before{border-color:rgba(255,255,255,.18)!important}
.er-category-page .erp-professional-search .erp-eyebrow{color:#f0cf7b!important}
.er-category-page .erp-professional-search .erp-search-intro h2{color:#fff!important}
.er-category-page .erp-professional-search .erp-search-intro p{color:#d9eaf4!important}
.erp-professional-search button,
.erp-professional-search button[type="submit"]{
  border-color:#0d527f!important;
  background:#0d527f!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(7,31,53,.2)!important;
}
.erp-professional-search button:hover,
.erp-professional-search button[type="submit"]:hover{
  border-color:#1681a1!important;
  background:#1681a1!important;
  color:#fff!important;
}

/* Bloc de maillage local : bleu premium, cartes cantonales plus nettes. */
.er-category-page .er-seo-links--cantons{
  position:relative!important;
  overflow:hidden!important;
  padding:34px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:26px!important;
  background:linear-gradient(120deg,#071f35 0%,#0d527f 58%,#1681a1 100%)!important;
  box-shadow:0 26px 68px rgba(7,31,53,.22)!important;
  color:#fff!important;
}
.er-category-page .er-seo-links--cantons:before{
  content:""!important;
  position:absolute!important;
  top:-190px!important;
  right:-150px!important;
  width:330px!important;
  height:330px!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-radius:50%!important;
  box-shadow:0 0 0 55px rgba(255,255,255,.035)!important;
  pointer-events:none!important;
}
.er-category-page .er-seo-links--cantons .er-seo-links__head{position:relative!important;z-index:1!important;max-width:820px!important}
.er-category-page .er-seo-links--cantons .er-kicker{color:#f0cf7b!important}
.er-category-page .er-seo-links--cantons h2{color:#fff!important;font-size:clamp(28px,3vw,40px)!important}
.er-category-page .er-seo-links--cantons .er-seo-links__head>p:last-child{color:#d9eaf4!important}
.er-category-page .er-seo-links--cantons .er-seo-links__grid{position:relative!important;z-index:1!important;gap:12px!important}
.er-category-page .er-seo-links--cantons .er-seo-links__grid>a{
  min-height:82px!important;
  padding:18px 20px!important;
  border:1px solid rgba(255,255,255,.2)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.09)!important;
  color:#fff!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08)!important;
  transition:transform .2s ease,background .2s ease,border-color .2s ease!important;
}
.er-category-page .er-seo-links--cantons .er-seo-links__grid>a strong{color:#fff!important;font-size:17px!important}
.er-category-page .er-seo-links--cantons .er-seo-links__grid>a span{color:#d9eaf4!important;font-weight:750!important}
.er-category-page .er-seo-links--cantons .er-seo-links__grid>a:hover{transform:translateY(-3px)!important;border-color:#fff!important;background:#fff!important}
.er-category-page .er-seo-links--cantons .er-seo-links__grid>a:hover strong{color:#071f35!important}
.er-category-page .er-seo-links--cantons .er-seo-links__grid>a:hover span{color:#0d527f!important}

/* Étiquettes identiques dans Sélection du moment et Nouveaux profils. */
.erv-card .er-card__meta-row,.er-pro-card .er-card__meta-row{display:flex!important;flex-wrap:wrap!important;gap:7px!important;max-width:100%!important}
.erv-card .er-card__meta-item,.er-pro-card .er-card__meta-item{
  display:inline-flex!important;align-items:center!important;gap:6px!important;max-width:100%!important;
  padding:7px 9px!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:999px!important;
  color:#fff!important;box-shadow:0 4px 12px rgba(7,31,53,.16)!important;
  font-size:10.5px!important;font-weight:800!important;line-height:10.5px!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}
.erv-card .er-card__meta-item--trade,.er-pro-card .er-card__meta-item--trade{background:color-mix(in srgb,var(--er-trade-color,#496B3F) 88%,transparent)!important;border-color:color-mix(in srgb,var(--er-trade-color,#496B3F) 72%,#fff)!important}
.erv-card .er-card__meta-item--place,.er-pro-card .er-card__meta-item--place{background:color-mix(in srgb,var(--er-place-color,#256E73) 88%,transparent)!important;border-color:color-mix(in srgb,var(--er-place-color,#256E73) 72%,#fff)!important}
.erv-card .er-card__meta-item svg,.er-pro-card .er-card__meta-item svg{width:14px!important;height:14px!important;flex:0 0 14px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.erv-card .er-card__meta-item b,.er-pro-card .er-card__meta-item b{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;font:inherit!important;color:inherit!important}
.erv-card .erv-tags,.er-pro-card .er-pro-card__tags{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
.erv-card .erv-tag,.er-pro-card .er-pro-card__tag{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  max-width:100%!important;
  padding:7px 10px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.94)!important;
  color:#17384c!important;
  box-shadow:0 5px 14px rgba(7,31,53,.15)!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.erv-card .erv-tag svg,.er-pro-card .er-pro-card__tag svg{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
}
.erv-card .erv-tag:first-child,.er-pro-card .er-pro-card__tag:first-child{border-color:#256e73!important;color:#256e73!important}
.erv-card .erv-tag:last-child,.er-pro-card .er-pro-card__tag:last-child{border-color:#496b3f!important;color:#496b3f!important}
.er-pro-card .er-card__excerpt{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;min-height:3em!important;max-height:3em!important;margin:0 0 12px!important;color:#536173!important;font-size:14px!important;line-height:1.5!important}

/* Le vrai logo remplace les initiales dès qu’il est renseigné sur la fiche. */
.erv-card .erv-logo.er-home-real-logo,.er-pro-card .er-pro-card__logo.er-home-real-logo{overflow:hidden!important;background:#fff!important}
.erv-card .erv-logo img,.er-pro-card .er-pro-card__logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  padding:7px!important;
  box-sizing:border-box!important;
  border-radius:inherit!important;
  background:#fff!important;
  object-fit:contain!important;
}

/* Titre du parcours : aucun mot coupé sur ordinateur. */
@media (min-width:1100px){
  .er-journey-premium__layout{grid-template-columns:minmax(430px,.95fr) minmax(0,1.2fr)!important;gap:48px!important}
  .er-journey-premium__title{
    font-size:clamp(42px,3.55vw,50px)!important;
    line-height:1.04!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}

@media (max-width:620px){
  .erp-professional-search,
  .er-category-page .erp-professional-search{
    border-color:rgba(13,82,127,.2)!important;
    background:linear-gradient(145deg,#071f35 0%,#0d527f 72%,#1681a1 100%)!important;
    box-shadow:0 20px 48px rgba(7,31,53,.2)!important;
  }
  .erp-professional-search .erp-search-intro{
    padding:4px 4px 2px!important;
    background:transparent!important;
  }
  .erp-professional-search .erp-search-intro h2{color:#fff!important}
  .erp-professional-search .erp-search-intro p{color:#d9eaf4!important}
  .erp-professional-search .erp-search-intro .erp-eyebrow{color:#f0cf7b!important}
  .erp-professional-search form{
    border:1px solid rgba(255,255,255,.25)!important;
    background:#fff!important;
  }
  .erp-professional-search button,
  .erp-professional-search button[type="submit"]{
    border-color:#0d527f!important;
    background:#0d527f!important;
    color:#fff!important;
  }
  .er-category-page .er-seo-links--cantons{padding:24px 17px!important;border-radius:20px!important}
  .er-category-page .er-seo-links--cantons .er-seo-links__grid{grid-template-columns:1fr!important}
}

/* Bloc facultatif « Mot du responsable ». */
.er-fui-manager-message{border-top:4px solid #dfbd62!important;background:linear-gradient(145deg,#fff,#f4f8fb)!important}
.er-fui-manager-message blockquote{position:relative;margin:0;padding:6px 0 4px 26px;border:0;color:#30485b;font-size:17px;line-height:1.75}
.er-fui-manager-message blockquote:before{content:"“";position:absolute;top:-16px;left:0;color:#0d527f;font:700 56px/1 Georgia,serif}
.er-fui-manager-message blockquote p{margin:0;white-space:normal}
.er-fui-manager-message blockquote footer{display:flex;align-items:baseline;gap:8px;margin-top:18px;color:#0d527f}
.er-fui-manager-message blockquote footer strong{color:#071f35}
.er-fui-manager-message blockquote footer span:before{content:"— ";color:#dfbd62}

/* Héros des fiches et carte/distance de secours. */
.single-at_biz_dir .er-sl-hero{background-color:#071f35!important;background-repeat:no-repeat!important}
.er-fui-map-card{overflow:hidden!important}
.er-fui-map-frame{overflow:hidden;border:1px solid rgba(13,82,127,.16);border-radius:16px;background:#eaf4f9}
.er-fui-map-frame iframe{display:block;width:100%;height:330px;border:0}
.er-fui-map-copy{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:16px;color:#40576a}
.er-fui-map-copy strong{color:#102f49;font-size:14px}
.er-fui-map-copy a{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;border-radius:10px;background:#0d527f;color:#fff!important;font-weight:850;text-decoration:none!important}
.er-fui-map-copy a:hover{background:#1681a1}

/* Création digitale suisse : retour à la palette bleue Experts Romands. */
.erp-footer-extra{background:#071f35!important}
.erp-prodigital{
  border-color:rgba(255,255,255,.18)!important;
  background:linear-gradient(118deg,#071f35 0%,#0d527f 60%,#1681a1 100%)!important;
  box-shadow:0 20px 54px rgba(7,31,53,.25)!important;
}
.erp-prodigital .erp-eyebrow{color:#f0cf7b!important}

@media (max-width:620px){
  .er-fui-map-frame iframe{height:250px}
  .er-fui-map-copy{align-items:stretch;flex-direction:column}
  .er-fui-map-copy a{width:100%;box-sizing:border-box}
}
