/* LeMicrosarthois 2026 — langage éditorial partagé : header, communes,
   actions, états vides et badges. Couleurs du thème conservées. */

/* 1. Haut de page des communes : même continuité que l'espace membre. */
html body.lms-navigation-v2.page-shell.route-commune>.lms-site-header{
  background:var(--bg)!important;
  border-bottom:1px solid var(--lms-public-rule,var(--line))!important;
}
html body.lms-navigation-v2.page-shell.route-commune>.lms-site-header::after{
  content:"";position:absolute;left:50%;bottom:-1px;z-index:1;
  transform:translateX(-50%);width:min(1100px,100%);height:2px;
  background:var(--bg);pointer-events:none;
}
html body.lms-navigation-v2.page-shell.route-commune>main.city-page{
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  min-height:0!important;margin:0!important;padding:0 16px 90px!important;
  background:var(--bg)!important;overflow:visible!important;
}
html body.lms-navigation-v2.page-shell.route-commune .city-page>.lms-public-hero{
  position:relative!important;isolation:isolate!important;
  box-sizing:border-box!important;display:block!important;
  width:min(1100px,100%)!important;max-width:1100px!important;
  margin:0 auto 32px!important;padding:0!important;min-height:0!important;
  border:1px solid var(--lms-public-rule,var(--line))!important;
  border-top:0!important;border-radius:0 0 30px 30px!important;
  background:var(--bg)!important;box-shadow:none!important;
  overflow:hidden!important;text-align:center!important;
}
html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero-inner{
  box-sizing:border-box;position:relative;z-index:2;
  width:100%;padding:clamp(42px,6vw,78px) 26px clamp(43px,5.5vw,66px);
  display:grid;justify-items:center;gap:0;
}
html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero-eyebrow{
  margin:0 0 13px!important;color:var(--muted)!important;
  font-size:11px!important;font-weight:700!important;letter-spacing:.13em!important;
  line-height:1.4!important;text-transform:uppercase;
}
html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero h1{
  margin:0 0 14px!important;padding:0!important;color:var(--text)!important;
  font-size:clamp(30px,4.1vw,50px)!important;line-height:1.14!important;
  letter-spacing:-.035em!important;font-weight:730!important;
  text-align:center!important;overflow-wrap:anywhere!important;
}
html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero p:not(.lms-public-hero-eyebrow){
  max-width:680px!important;margin:0!important;color:var(--muted)!important;
  font-size:clamp(13px,1.3vw,16px)!important;line-height:1.65!important;
  text-align:center!important;
}
html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero::before,
html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero::after{
  content:"";position:absolute;inset:auto 0 0;z-index:1;pointer-events:none;
  transform:translateY(110%);transition:transform .7s cubic-bezier(.22,1,.36,1);
}
html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero::before{
  height:37%;background:
    radial-gradient(circle at 16% 50%,color-mix(in srgb,var(--accent) 33%,transparent) 0 3px,transparent 4px),
    radial-gradient(circle at 71% 42%,color-mix(in srgb,var(--accent) 24%,transparent) 0 4px,transparent 5px),
    color-mix(in srgb,var(--accent) 21%,transparent);
  clip-path:polygon(0 19%,8% 12%,16% 14%,24% 22%,32% 27%,40% 21%,48% 12%,56% 11%,64% 18%,72% 25%,80% 23%,88% 15%,96% 13%,100% 17%,100% 100%,0 100%);
}
html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero::after{
  height:29%;background:color-mix(in srgb,var(--accent) 14%,transparent);
  clip-path:polygon(0 25%,10% 20%,20% 14%,30% 18%,40% 26%,50% 24%,60% 16%,70% 12%,80% 16%,90% 24%,100% 21%,100% 100%,0 100%);
}
@media(hover:hover) and (pointer:fine){
  html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero:is(:hover,:focus-within)::before{
    transform:translateY(0);animation:lms-soft-water 2.45s ease-in-out infinite;
  }
  html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero:is(:hover,:focus-within)::after{
    transform:translateY(0);animation:lms-soft-water-back 3.15s ease-in-out infinite;
  }
}
/* Le trait du tri n'avait aucune fonction et n'améliorait pas la lecture. */
html body.lms-navigation-v2.page-shell.route-commune .city-results-toolbar-divider{display:none!important;}
html body.lms-navigation-v2.page-shell.route-commune .city-results-toolbar::before,
html body.lms-navigation-v2.page-shell.route-commune .city-results-toolbar::after{
  content:none!important;display:none!important;
}
html body.lms-navigation-v2.page-shell.route-commune :is(.city-results-toolbar,.city-results-grid,.city-results-empty,.explore-pagination){
  box-sizing:border-box!important;width:min(1100px,100%)!important;
  max-width:1100px!important;margin-left:auto!important;margin-right:auto!important;
}
html body.lms-navigation-v2.page-shell.route-commune .city-results-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;margin-bottom:26px!important;
  padding:0 0 15px!important;border-bottom:1px solid var(--line)!important;
  background:transparent!important;
}
html body.lms-navigation-v2.page-shell.route-commune .city-sort-dropdown{
  border:0!important;border-left:0!important;box-shadow:none!important;
  background:transparent!important;margin-left:auto!important;
}
html body.lms-navigation-v2.page-shell.route-commune .city-results-empty{
  padding:30px 16px!important;min-height:280px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
html body.lms-navigation-v2.page-shell.route-commune .city-results-empty-cta{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:45px!important;padding:11px 18px!important;
  border-radius:10px!important;isolation:isolate!important;overflow:hidden!important;
}

/* 2. Badge URGENT : une seule capsule rouge, sans double bloc grisé. */
html body.lms-navigation-v2 :is(.urgent-text-indicator,.option-urgent-badge),
html body.lms-navigation-v2 .offer-featured-badge:not(.is-icon-only){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;width:max-content!important;max-width:100%!important;
  padding:5px 11px!important;min-height:0!important;height:auto!important;
  border:0!important;border-radius:999px!important;
  background:#d82132!important;background-image:none!important;
  color:#fff!important;box-shadow:none!important;outline:0!important;
  font-weight:700!important;font-size:11px!important;line-height:1.1!important;
  white-space:nowrap!important;text-shadow:none!important;
}
html body.lms-navigation-v2 .listing-card-footer-row:has(>.urgent-text-indicator){
  border:0!important;border-radius:0!important;background:transparent!important;
  background-image:none!important;box-shadow:none!important;outline:0!important;
}
html body.lms-navigation-v2 .listing-card-footer-row:has(>.urgent-text-indicator)::before,
html body.lms-navigation-v2 .listing-card-footer-row:has(>.urgent-text-indicator)::after{
  content:none!important;display:none!important;
}
html body.lms-navigation-v2 :is(.urgent-text-indicator,.option-urgent-badge)::before,
html body.lms-navigation-v2 :is(.urgent-text-indicator,.option-urgent-badge)::after{
  content:none!important;display:none!important;
}

/* 3. Avis vides : illustration claire, sans ancien pictogramme de loupe. */
html body.page-shell .review-list-v2 .review-empty.review-empty-illustrated{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  flex-direction:column!important;justify-content:center!important;
  gap:8px!important;min-height:220px!important;padding:26px 18px!important;
  border:1px solid var(--line)!important;border-radius:15px!important;
  background:var(--surface)!important;box-shadow:none!important;
  color:var(--muted)!important;text-align:center!important;
}
html body.page-shell .review-list-v2 .review-empty.review-empty-illustrated::before{
  content:none!important;display:none!important;
}
html body.page-shell .review-empty-visual{
  display:block!important;width:108px!important;height:98px!important;flex:none!important;
  margin:0 auto 5px!important;color:var(--muted)!important;
}
html body.page-shell .review-empty-illustrated strong{
  color:var(--text)!important;font-size:15px!important;font-weight:690!important;
  line-height:1.45!important;
}
html body.page-shell .review-empty-illustrated p{
  color:var(--muted)!important;font-size:13px!important;line-height:1.5!important;
  margin:0!important;
}

/* 4. Même famille visuelle sur les introductions éditoriales des autres
   pages publiques, sans toucher au hero média de l'accueil ni aux boutiques. */
html body.lms-navigation-v2.page-shell :is(.directory-page,.explore-page,.boutiques-page)> .lms-editorial-intro:not(.lms-public-hero){
  box-sizing:border-box!important;width:min(1100px,100%)!important;
  margin:0 auto 30px!important;padding:32px 22px!important;
  border:1px solid var(--line)!important;border-radius:0 0 24px 24px!important;
  background:var(--bg)!important;text-align:center!important;
}
html body.lms-navigation-v2.page-shell :is(.directory-page,.explore-page,.boutiques-page)> .lms-editorial-intro:not(.lms-public-hero) :is(h1,p){
  text-align:center!important;
}

@media(max-width:640px){
  html body.lms-navigation-v2.page-shell.route-commune>main.city-page{
    padding:0 8px 86px!important;
  }
  html body.lms-navigation-v2.page-shell.route-commune .city-page>.lms-public-hero{
    width:100%!important;margin-bottom:21px!important;border-radius:0 0 23px 23px!important;
  }
  html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero-inner{
    padding:32px 18px 36px!important;
  }
  html body.lms-navigation-v2.page-shell.route-commune .lms-public-hero h1{
    font-size:clamp(27px,7vw,38px)!important;
  }
  html body.lms-navigation-v2.page-shell.route-commune .city-results-toolbar{
    gap:9px!important;margin-bottom:18px!important;padding:0 4px 13px!important;
  }
  html body.lms-navigation-v2.page-shell.route-commune .city-results-empty{
    min-height:230px!important;padding:20px 6px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body.page-shell :is(.lms-public-hero,.city-results-empty-cta,.premium-tab-system a,.account-shop-about-tabs a,.review-submit,.option-checkout-button)::before,
  html body.page-shell :is(.lms-public-hero,.city-results-empty-cta,.premium-tab-system a,.account-shop-about-tabs a,.review-submit,.option-checkout-button)::after{
    animation:none!important;transition:none!important;
  }
}

/* Même composition de marque sur les bandeaux membres et les communes :
   identité, titre et sous-titre centrés, sans décaler les cartes dessous. */
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-bar{
  justify-content:center!important;text-align:center!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading,
html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading h1,
html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading p{
  text-align:center!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading p{
  margin-left:auto!important;margin-right:auto!important;
}
/* Des vagues moins timides à moins de 40 % du bandeau. */
html body.lms-navigation-v2.page-shell main>.member-workspace-hero::before{
  height:37%!important;
  background:
    radial-gradient(circle at 13% 55%,color-mix(in srgb,var(--accent) 34%,transparent) 0 3px,transparent 4px),
    radial-gradient(circle at 58% 48%,color-mix(in srgb,var(--accent) 27%,transparent) 0 4px,transparent 5px),
    radial-gradient(circle at 84% 60%,color-mix(in srgb,var(--accent) 25%,transparent) 0 3px,transparent 4px),
    color-mix(in srgb,var(--accent) 21%,transparent)!important;
}
html body.lms-navigation-v2.page-shell main>.member-workspace-hero::after{
  height:29%!important;background:color-mix(in srgb,var(--accent) 13%,transparent)!important;
}
@media(hover:hover) and (pointer:fine){
  html body.lms-navigation-v2.page-shell main>.member-workspace-hero:is(:hover,:focus-within)::before{
    animation-duration:2.45s!important;
  }
  html body.lms-navigation-v2.page-shell main>.member-workspace-hero:is(:hover,:focus-within)::after{
    animation-duration:3.1s!important;
  }
}

/* Cas des anciennes capsules payantes : enlever uniquement l'habillage
   du conteneur, jamais la capsule rouge URGENT elle-même. */
html body.lms-navigation-v2 .member-paid-options>span:has(>.urgent-text-indicator),
html body.lms-navigation-v2 .member-paid-options>span:has(>.option-urgent-badge),
html body.lms-navigation-v2 .detail-price-urgent-row:has(>.urgent-text-indicator){
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;outline:0!important;
}
html body.lms-navigation-v2 .member-paid-options>span:has(>.urgent-text-indicator),
html body.lms-navigation-v2 .member-paid-options>span:has(>.option-urgent-badge){
  padding:0!important;border:0!important;border-radius:0!important;
}

/* Same admin-editable editorial envelope for all paid-option landing pages. */
html body.lms-navigation-v2.page-shell main>.lms-commercial-page-hero{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:10px!important;
  width:min(1100px,100%)!important;max-width:1100px!important;
  min-height:0!important;margin:0 auto 34px!important;
  padding:clamp(28px,4vw,44px) clamp(16px,3vw,34px)!important;
  background:var(--lms-envelope-header-surface,var(--bg))!important;
  border:1px solid var(--lms-public-rule,var(--line))!important;border-top:0!important;
  border-radius:0 0 28px 28px!important;box-shadow:none!important;
  color:var(--text)!important;text-align:center!important;
}
html body.lms-navigation-v2.page-shell main>.lms-commercial-page-hero>:is(.lms-hero-banner-title,.lms-hero-banner-description,.lms-hero-banner-eyebrow){
  margin-left:auto!important;margin-right:auto!important;text-align:center!important;
}
html body.lms-navigation-v2.page-shell main>.lms-commercial-page-hero>.lms-hero-banner-description{
  max-width:690px!important;
}
@media(max-width:640px){
  html body.lms-navigation-v2.page-shell main>.lms-commercial-page-hero{
    padding:28px 17px!important;border-radius:0 0 22px 22px!important;
    margin-bottom:24px!important;
  }
}
