/* =========================================================
   LeMicrosarthois — UI optimisée
   Anciennes règles uniques conservées, puis composants partagés.
   ========================================================= */

/* Echelle typographique responsive du site public. */
body.page-shell,
body.app-shell{
  font-size:16px;
  line-height:1.5;
}
body.page-shell .side-nav nav a,
body.page-shell .side-nav nav button,
body.app-shell .side-nav nav a,
body.app-shell .side-nav nav button{
  font-size:16px;
}
body.page-shell .explore-card-copy>strong{
  font-size:16px!important;
  line-height:1.3!important;
}
body.page-shell .explore-price{
  font-size:16px!important;
  line-height:1.3!important;
}
body.page-shell .explore-card-copy>small,
body.page-shell .explore-card-meta,
body.page-shell .explore-author strong{
  font-size:14px!important;
  line-height:1.4!important;
}
body.page-shell .detail-content h1{
  font-size:24px!important;
  line-height:1.2!important;
  letter-spacing:-.02em!important;
}
body.page-shell .detail-price{
  font-size:20px!important;
  line-height:1.25!important;
}
body.page-shell .detail-description,
body.page-shell .offer-description,
body.page-shell .offer-body,
body.page-shell .legal-content,
body.page-shell .member-profile-copy>p{
  font-size:16px!important;
  line-height:1.5!important;
}
body.page-shell .form-intro h1,
body.page-shell .auth-page h1,
body.page-shell .member-profile-copy h1{
  font-size:32px!important;
  line-height:1.15!important;
  letter-spacing:-.03em!important;
}
body.page-shell .member-section h2,
body.page-shell .page-intro h1,
body.page-shell .section-title{
  font-size:24px!important;
  line-height:1.2!important;
}
body.page-shell .publish-form label,
body.page-shell .admin-form label,
body.page-shell .field-title,
body.page-shell .type-choice legend{
  font-size:14px!important;
  line-height:1.35!important;
}
body.page-shell input,
body.page-shell select,
body.page-shell textarea,
body.page-shell button,
body.page-shell .button{
  font-size:16px;
}
body.app-shell .feed-inline-title{
  font-size:16px!important;
  line-height:1.35!important;
}
body.app-shell .author-name{
  font-size:14px!important;
  line-height:1.35!important;
}
body.app-shell .location-line,
body.app-shell .location-line span,
body.app-shell .location-line strong{
  font-size:12px!important;
  line-height:1.35!important;
}
body.app-shell .feed-topline .feed-tabs a{
  font-size:14px!important;
}
body.app-shell .bottom-nav a,
body.app-shell .bottom-nav button{
  font-size:12px!important;
}

/* Défilement : ligne de contexte compacte et lien détail bien lisible. */
body.app-shell .feed-copy .feed-author-line,
body.app-shell .feed-copy .feed-author-line span,
body.app-shell .feed-copy .feed-author-line time,
body.app-shell .feed-copy .feed-offer-type-link,
body.app-shell .feed-copy .feed-location{
  font-size:12px!important;
  line-height:1.35!important;
}
body.app-shell .feed-copy .feed-inline-title>a{
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.35!important;
}

@media(min-width:901px){
  body.page-shell .detail-content h1{
    font-size:32px!important;
  }
  body.page-shell .detail-price{
    font-size:24px!important;
  }
  body.page-shell .form-intro h1,
  body.page-shell .auth-page h1,
  body.page-shell .member-profile-copy h1{
    font-size:40px!important;
  }
  body.page-shell .member-section h2,
  body.page-shell .page-intro h1,
  body.page-shell .section-title{
    font-size:32px!important;
  }
  body.app-shell .feed-inline-title{
    font-size:16px!important;
  }
  body.app-shell .feed-topline .feed-tabs a{
    font-size:16px!important;
  }
}

@media(max-width:640px){
  body.page-shell,
  body.app-shell{
    font-size:16px!important;
  }
  body.page-shell .explore-card-copy>strong,
  body.page-shell .explore-price{
    font-size:16px!important;
  }
  body.page-shell .explore-card-copy>small,
  body.page-shell .explore-card-meta,
  body.page-shell .explore-author strong{
    font-size:14px!important;
  }
  body.page-shell input,
  body.page-shell select,
  body.page-shell textarea,
  body.page-shell button,
  body.page-shell .button{
    font-size:16px!important;
  }
  body.app-shell .feed-inline-title{
    font-size:16px!important;
  }
  body.app-shell .author-name{
    font-size:14px!important;
  }
  body.app-shell .location-line,
  body.app-shell .location-line span,
  body.app-shell .location-line strong{
    font-size:12px!important;
  }
}


/* Fiche détail mobile : priorité finale sur les paddings intérieurs. */
@media(max-width:780px){
  body.route-publication .detail-offer-content{
    box-sizing:border-box!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow:hidden!important;
  }
  body.route-publication .detail-offer-content-body>.detail-market-section{
    box-sizing:border-box!important;
    padding-left:18px!important;
    padding-right:18px!important;
    width:100%!important;
  }
  body.route-publication .detail-offer-information .detail-specs{
    box-sizing:border-box!important;
    padding-left:0!important;
    padding-right:0!important;
    width:100%!important;
  }
  body.route-publication .detail-offer-information .detail-specs>div{
    box-sizing:border-box!important;
    padding-left:0!important;
    padding-right:0!important;
    width:100%!important;
  }
  body.route-publication .detail-description-panel .detail-description,
  body.route-publication .detail-location-section{
    box-sizing:border-box!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}


/* Les offres similaires restent entièrement consultables au-dessus de la navigation mobile. */
@media(max-width:780px){
  body.route-publication .offer-detail{
    box-sizing:border-box!important;
    padding-bottom:calc(128px + env(safe-area-inset-bottom))!important;
  }
  body.route-publication .detail-similar{
    box-sizing:border-box!important;
    overflow:visible!important;
    padding-bottom:calc(72px + env(safe-area-inset-bottom))!important;
  }
  body.route-publication .detail-similar .unified-offer-list,
  body.route-publication .detail-similar .explore-grid,
  body.route-publication .detail-similar .explore-card{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.route-publication .detail-similar .explore-grid{
    align-items:start!important;
    grid-auto-rows:auto!important;
    row-gap:18px!important;
  }
  body.route-publication .detail-similar .explore-card-meta{
    align-items:center!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    min-height:26px!important;
    opacity:1!important;
    overflow:visible!important;
    visibility:visible!important;
  }
  body.route-publication .detail-similar .explore-card-meta .explore-author{
    display:flex!important;
    grid-column:auto!important;
    min-width:0!important;
  }
  body.route-publication .detail-similar .explore-card-meta>time{
    color:var(--muted)!important;
    display:block!important;
    justify-self:end!important;
    white-space:nowrap!important;
  }
}

/* =========================================================
   LeMicrosarthois — Composants UI partagés
   Ce fichier est chargé en dernier.
   Toute modification d'un composant partagé doit être faite ici.
   ========================================================= */

:root{
  --ui-row-height:48px;
  --ui-row-gap:8px;
  --ui-count-height:22px;
  --ui-count-min-width:28px;
  --ui-badge-height:22px;
  --ui-badge-font-size:9px;
  --ui-badge-icon-size:12px;
  --ui-component-radius:10px;
}

/* ---------------------------------------------------------
   2. Sélecteurs de catégories
   Même composant : moteur, volet mobile et boutiques.
   --------------------------------------------------------- */
.market-category-unified-menu,
.market-category-drawer-list{
  --category-icon-column:20px;
  --category-count-column:28px;
  --category-chevron-column:16px;
  box-sizing:border-box!important;
}

.market-category-unified-menu{
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  border-radius:var(--ui-component-radius)!important;
  box-shadow:0 14px 34px color-mix(in srgb,#000 22%,transparent)!important;
  gap:0!important;
  max-height:min(70dvh,620px)!important;
  max-width:calc(100vw - 24px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding:0 10px 8px!important;
  width:min(460px,calc(100vw - 24px))!important;
}

.market-category-drawer-list{
  padding:6px 14px 24px!important;
}

.market-category-unified-menu>.feed-category-all,
.market-category-unified-menu .feed-category-row>a,
.market-category-unified-menu .feed-subcategories>a,
.market-category-drawer-list :is(a,button){
  align-items:center!important;
  box-sizing:border-box!important;
  color:var(--text)!important;
  min-height:var(--ui-row-height)!important;
  text-decoration:none!important;
}

.market-category-unified-menu>.feed-category-all,
.market-category-unified-menu .feed-category-row>a,
.market-category-unified-menu .feed-subcategories>a{
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:grid!important;
  gap:var(--ui-row-gap)!important;
  grid-template-columns:var(--category-icon-column) minmax(0,1fr) var(--category-count-column)!important;
  padding:0 2px!important;
  width:100%!important;
}

.market-category-drawer-list :is(a,button){
  column-gap:7px!important;
  display:grid!important;
  grid-template-columns:var(--category-icon-column) minmax(0,1fr) var(--category-count-column) var(--category-chevron-column)!important;
  padding:0 4px!important;
  width:100%!important;
}

.market-category-unified-menu .feed-category-row{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  display:grid!important;
  gap:6px!important;
  grid-template-columns:minmax(0,1fr) var(--category-chevron-column)!important;
  overflow:visible!important;
  padding:0!important;
  width:100%!important;
}

.market-category-unified-menu :is(a)>span,
.market-category-drawer-list :is(a,button)>span{
  color:var(--text)!important;
  display:block!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.2!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.market-category-unified-menu .is-category-parent:not(.feed-category-all)>span,
.market-category-drawer-list .is-category-parent>span{
  font-weight:600!important;
}

.market-category-unified-menu :is(a)>svg,
.market-category-drawer-list :is(a,button)>svg{
  background:transparent!important;
  border-radius:0!important;
  box-sizing:border-box!important;
  color:var(--text)!important;
  height:16px!important;
  padding:0!important;
  stroke:currentColor!important;
  width:16px!important;
}

.market-category-count,
.market-category-unified-menu :is(a)>b{
  align-items:center!important;
  background:var(--surface)!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  box-sizing:border-box!important;
  color:var(--muted)!important;
  display:inline-flex!important;
  font-size:10px!important;
  font-weight:700!important;
  height:var(--ui-count-height)!important;
  justify-content:center!important;
  margin:0!important;
  min-width:var(--ui-count-min-width)!important;
  padding:0 5px!important;
  -webkit-text-fill-color:var(--muted)!important;
}

.market-category-unified-menu .market-category-chevron,
.market-category-unified-menu .feed-category-row>button{
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:var(--text)!important;
  display:flex!important;
  height:24px!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  width:var(--category-chevron-column)!important;
}

.market-category-unified-menu .market-category-chevron i{
  color:var(--text)!important;
  display:block!important;
  font-size:18px!important;
  font-style:normal!important;
  font-weight:500!important;
  line-height:1!important;
}

.market-category-unified-menu .market-category-chevron[aria-expanded="true"] i{
  transform:rotate(90deg)!important;
}

.market-category-drawer-list :is(a,button)>i{
  align-items:center!important;
  color:var(--text)!important;
  display:flex!important;
  font-size:18px!important;
  font-style:normal!important;
  font-weight:500!important;
  height:22px!important;
  justify-content:center!important;
  line-height:1!important;
  margin:0!important;
  width:var(--category-chevron-column)!important;
}

.market-category-unified-menu :is(a:hover,a.active),
.market-category-unified-menu .feed-category-row:hover{
  background:var(--surface)!important;
  color:var(--text)!important;
}

.market-category-unified-menu .feed-subcategories{
  border-left:0!important;
  gap:0!important;
  margin:0!important;
  padding:0 0 0 14px!important;
}

.market-category-unified-menu .feed-subcategories>a,
.market-category-drawer-list .is-category-child{
  padding-left:14px!important;
}

.market-category-unified-menu .feed-subcategories>a>span,
.market-category-drawer-list .is-category-child>span{
  position:relative!important;
}

.market-category-unified-menu .feed-subcategories>a>span::before,
.market-category-drawer-list .is-category-child>span::before{
  background:var(--line)!important;
  content:""!important;
  height:1px!important;
  left:-12px!important;
  position:absolute!important;
  top:50%!important;
  width:7px!important;
}

/* ---------------------------------------------------------
   3. Badges média / catégorie
   Même gabarit dans Défilement et Détail.
   --------------------------------------------------------- */
.media-badge,
body.route-publication .detail-type-overlay,
body.route-publication .detail-premium-overlay.offer-featured-badge,
body.app-shell .feed-topline .feed-publication-context>a.feed-category-link,
body.app-shell .feed-topline .feed-publication-context>span.active{
  align-items:center!important;
  border-radius:999px!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  font-size:var(--ui-badge-font-size)!important;
  font-weight:700!important;
  gap:4px!important;
  height:var(--ui-badge-height)!important;
  line-height:1!important;
  min-height:var(--ui-badge-height)!important;
  padding:0 5px!important;
  text-transform:none!important;
  white-space:nowrap!important;
}

.media-badge svg,
body.route-publication .detail-type-overlay svg,
body.route-publication .detail-premium-overlay.offer-featured-badge svg,
body.app-shell .feed-topline .feed-publication-context>a.feed-category-link>svg,
body.app-shell .feed-topline .feed-publication-context>span.active>svg{
  height:var(--ui-badge-icon-size)!important;
  width:var(--ui-badge-icon-size)!important;
}

.media-badge b,
body.route-publication .detail-type-overlay span,
body.app-shell .feed-topline .feed-publication-context>a.feed-category-link>span,
body.app-shell .feed-topline .feed-publication-context>span.active>span{
  font-size:var(--ui-badge-font-size)!important;
  line-height:1!important;
}

/* ---------------------------------------------------------
   Responsive commun
   --------------------------------------------------------- */
@media(max-width:640px){
  .market-category-unified-menu{
    border-radius:var(--ui-component-radius)!important;
    padding-left:8px!important;
    padding-right:8px!important;
    width:min(440px,calc(100vw - 24px))!important;
  }

  .market-category-drawer-list{
    padding-left:10px!important;
    padding-right:10px!important;
  }
}

/* Une seule forme et un seul voyant pour toutes les photos de profil. */
:root{--profile-avatar-radius:8px;--profile-online:#20c66a;--profile-offline:#ef4444}
.profile-avatar,.public-profile-avatar,.friend-card-avatar,.connections-profile-avatar,.connection-avatar,.session-avatar,.message-contact-avatar,.message-avatar,.explore-author-avatar,.review-author>img,.admin-space-avatar,.report-avatar,.members-admin-list b,.member-avatar-preview,.premium-preview-avatar,.nav-account-avatar,.bottom-account-avatar,.avatar{border-radius:var(--profile-avatar-radius)!important;box-sizing:border-box}
.profile-avatar,.friend-card-avatar,.connections-profile-avatar,.connection-avatar,.session-avatar,.message-contact-avatar{overflow:visible!important;position:relative!important}
.profile-avatar>img,.public-profile-avatar>img,.friend-card-avatar>img,.connections-profile-avatar>img,.connection-avatar>img,.session-avatar>img,.message-contact-avatar>img,.message-avatar>img,.explore-author-avatar>img,.review-author>img,.admin-space-avatar>img,.report-avatar>img,.members-admin-list b>img,.member-avatar-preview>img,.premium-preview-avatar>img,.nav-account-avatar>img,.bottom-account-avatar,.avatar>img{border-radius:inherit!important;height:100%;object-fit:contain!important;width:100%}
.profile-presence{background:var(--profile-offline);border:2px solid var(--bg,#090c11);border-radius:50%;bottom:-4px;box-sizing:border-box;height:12px;position:absolute;right:-4px;width:12px;z-index:20}
.profile-presence.is-online{background:var(--profile-online)}

/* Format portrait 4:5 commun : aucune bande vide, une seule règle à modifier. */
:root{--profile-avatar-ratio:4/5}
.public-profile-avatar,.friend-card-avatar,.connections-profile-avatar,.connection-avatar,.session-avatar,.message-contact-avatar,.message-avatar,.explore-author-avatar,.admin-space-avatar,.report-avatar,.members-admin-list b,.member-avatar-preview,.premium-preview-avatar,.nav-account-avatar,.avatar,.seller-box>span{aspect-ratio:var(--profile-avatar-ratio)!important;height:auto!important}
.profile-avatar>img,.public-profile-avatar>img,.friend-card-avatar>img,.connections-profile-avatar>img,.connection-avatar>img,.session-avatar>img,.message-contact-avatar>img,.message-avatar>img,.explore-author-avatar>img,.review-author>img,.admin-space-avatar>img,.report-avatar>img,.members-admin-list b>img,.member-avatar-preview>img,.premium-preview-avatar>img,.nav-account-avatar>img,.bottom-account-avatar,.avatar>img,.seller-box>span>img{background:#000!important;object-fit:cover!important;object-position:center!important}
.seller-box>span{border-radius:var(--profile-avatar-radius)!important;flex:0 0 44px!important;width:44px!important}
.nav-account-avatar{flex-basis:32px!important;width:32px!important}
.bottom-account-avatar{aspect-ratio:var(--profile-avatar-ratio)!important;height:25px!important;max-height:25px!important;max-width:20px!important;width:20px!important}
.nav-account-copy strong,.nav-account-copy small{font-size:11px!important;font-weight:400!important;line-height:1.2!important}
.premium-profile .public-profile-avatar{border:4px solid var(--accent)!important;border-radius:8px 8px 0 0!important}
.premium-profile .public-profile-avatar>img{border-radius:4px 4px 0 0!important}
.premium-profile .public-profile-avatar>.public-premium-status{left:-4px!important;top:calc(100% - 4px)!important;width:calc(100% + 8px)!important}
.admin-context-switch .admin-space-avatar{aspect-ratio:var(--profile-avatar-ratio)!important;height:auto!important;width:32px!important}


/* Cartes d’offres partagées. */
:where(.explore-page,.premium-profile>.explore-grid) .explore-card-meta{grid-template-columns:minmax(0,1fr) auto}
:where(.explore-page,.premium-profile>.explore-grid) .explore-card-meta .explore-author{grid-column:auto}
:where(.explore-page,.premium-profile>.explore-grid) .explore-card-meta>span{display:none}
:where(.explore-page,.premium-profile>.explore-grid) .explore-card-meta>time{display:block}
:where(.explore-card,.explore-card-media){position:relative}
.explore-card-copy strong,.explore-card-meta>span,.explore-card-meta>time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Conteneurs d'avatars admin partagés. */
body.admin-console-shell .admin-member-avatar-picker .member-avatar-preview>span,
body.admin-console-shell .admin-avatar-round>span:first-child{align-items:center;display:flex;height:100%;justify-content:center;overflow:hidden;width:100%}

/* Images d'avatars partagées. */
:is(.nav-account-avatar img,.member-avatar-preview img,.session-avatar img,.members-admin-list b img,.member-account-hero .profile-avatar img,body.admin-console-shell .admin-member-avatar-picker .member-avatar-preview img,body.admin-console-shell .admin-avatar-round>span:first-child img,.public-profile-avatar img,.message-avatar img,.connections-profile-avatar img,.connection-avatar img,.boutique-card-avatar>img,.admin-member-mini-list b>img,.report-detail-person .session-avatar img){height:100%;object-fit:cover;width:100%}

/* Cartes d'offres partagées. */
:where(.explore-card,.profile-offer-card,.account-offer-card,.similar-offer-card) :where(img,video,.media-placeholder),
:where(.explore-card,.profile-offer-card,.account-offer-card,.similar-offer-card){border-radius:var(--ui-radius)}

/* Grilles de cartes d'offres partagées. */
.page-shell :is(.public-profile-page.premium-profile .premium-offers-list,.unified-offer-list)>.explore-grid{margin-left:0!important;margin-right:0!important;max-width:none!important;width:100%!important}

/* Formulaires partagés. */
:is(.photo-slot input,.public-avatar-edit input,.member-option-check input,.option-product-card>summary>.option-cart-toggle input,.account-switch-row input[type=checkbox],.member-options-page .option-product-heading>.option-cart-toggle input,.member-options-page .option-active-toggle input,.publish-option-toggle>input,.photo-pack-toggle>input,.media-mode-grid input){height:1px!important;min-height:0!important;max-height:1px!important;opacity:0;position:absolute;width:1px!important;min-width:0!important;max-width:1px!important;padding:0!important;border:0!important;clip-path:inset(50%)}
:where(.search-sheet form,.admin-form){display:grid;gap:16px}
:where(.search-sheet,.publish-form,.admin-form) label{display:grid;font-size:12px;font-weight:800;gap:7px;text-transform:uppercase}
:where(.member-option-catalog,.member-option-cart) select{background:var(--panel);border:1px solid var(--line);border-radius:10px;color:var(--text);min-height:44px;padding:0 12px}
:where(.market-filter-options,.market-all-filter-checks) input{accent-color:var(--accent);height:22px;width:22px}
.explore-page .explore-search-query input{max-width:none!important;opacity:1!important;pointer-events:auto!important}
.search-sheet label{color:#aaa}

/* ════════════════════════════════════════════════════════════════════
   MODÈLES UNIFORMES — BOUTONS & LIENS (référence pour tout le site)
   ────────────────────────────────────────────────────────────────────
   Pour toute nouvelle création, réutiliser ces classes :
   · .site-action            → bouton neutre (modèle « Voir le profil »)
   · .site-action.is-primary → bouton principal (modèle « Suivre », .button.primary)
   · .site-action.is-danger  → bouton de suppression
   · .site-link              → lien texte (modèle « Suivis / Abonnés »)
   Toutes les couleurs passent par les variables de thème
   (--surface, --line, --text, --muted, --accent, --accent-contrast)
   pour rester lisibles en mode clair ET sombre.
   ════════════════════════════════════════════════════════════════════ */

/* — Modèle : bouton neutre en pilule — */
.site-action{align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;box-sizing:border-box;color:var(--text);cursor:pointer;display:inline-flex;font-size:12px;font-weight:650;gap:7px;justify-content:center;min-height:40px;padding:9px 16px;text-align:center;text-decoration:none;transition:border-color .15s ease,color .15s ease,background .15s ease,transform .15s ease}
.site-action:hover,.site-action:focus-visible{background:var(--surface);border-color:var(--accent);color:var(--accent-text)}
.site-action svg{fill:none;height:16px;stroke:currentColor;stroke-width:1.8;width:16px}
.site-action.is-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}
.site-action.is-primary:hover,.site-action.is-primary:focus-visible{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast);filter:brightness(1.07)}
.site-action.is-danger{background:color-mix(in srgb,var(--danger) 12%,transparent);border-color:color-mix(in srgb,var(--danger) 45%,transparent);color:var(--danger-text)}
.site-action.is-danger:hover,.site-action.is-danger:focus-visible{background:var(--danger-fill);border-color:var(--danger);color:#fff}

/* — Modèle : lien texte (avec ou sans icône) — */
.site-link{align-items:center;background:transparent;border:0;border-radius:0;color:var(--muted);cursor:pointer;display:inline-flex;font-size:12px;font-weight:650;gap:6px;padding:4px 0;text-decoration:none;transition:color .15s ease}
.site-link:hover,.site-link:focus-visible{background:transparent;color:var(--accent-text)}
.site-link svg{fill:none;height:16px;stroke:currentColor;stroke-width:1.8;width:16px}

/* — Application du modèle à tous les boutons texte existants du site — */
:where(.auth-switch-action,.catalog-reset,.editorial-action,.explore-reset,.explore-sort-menu summary,.explore-category-menu button,.explore-topics a,.quick-categories a,.feed-category-row button,.premium-load-more,.profile-premium-action,.profile-action-secondary,.profile-share-action,.admin-tabs a,.admin-pagination a,.payment-filter-tabs a,.explore-view-mode a,.explore-view-actions a,.publish-options-toggle,.detail-location-toggle,.admin-secondary-action){
  align-items:center!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;box-sizing:border-box!important;color:var(--text)!important;display:inline-flex!important;font-size:12px!important;font-weight:650!important;gap:6px!important;justify-content:center!important;min-height:38px!important;padding:8px 15px!important;text-align:center!important;text-decoration:none!important;transition:border-color .15s ease,color .15s ease,background .15s ease}
:is(.auth-switch-action,.catalog-reset,.editorial-action,.explore-reset,.explore-sort-menu summary,.explore-category-menu button,.explore-topics a,.quick-categories a,.feed-category-row button,.premium-load-more,.profile-premium-action,.profile-action-secondary,.profile-share-action,.admin-tabs a,.admin-pagination a,.payment-filter-tabs a,.explore-view-mode a,.explore-view-actions a,.publish-options-toggle,.detail-location-toggle,.admin-secondary-action):hover,:is(.auth-switch-action,.catalog-reset,.editorial-action,.explore-reset,.explore-sort-menu summary,.explore-category-menu button,.explore-topics a,.quick-categories a,.feed-category-row button,.premium-load-more,.profile-premium-action,.profile-action-secondary,.profile-share-action,.admin-tabs a,.admin-pagination a,.payment-filter-tabs a,.explore-view-mode a,.explore-view-actions a,.publish-options-toggle,.detail-location-toggle,.admin-secondary-action):focus-visible{background:var(--surface)!important;border-color:var(--accent)!important;color:var(--text)!important}

/* — Boutons nus (sans classe) : même modèle — */
button:not([class]){align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;color:var(--text);display:inline-flex;font-size:12px;font-weight:650;gap:6px;justify-content:center;min-height:38px;padding:8px 15px}
:where(button:not([class])):is(:hover,:focus-visible){border-color:var(--accent);color:var(--text)}

/* — La classe .button de base : pilule neutre (secondaire) — */
.button{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:999px!important;color:var(--text)!important;font-size:12px!important;font-weight:650!important;min-height:40px!important;padding:9px 16px!important}
.button:hover{background:var(--surface)!important;border-color:var(--accent)!important;color:var(--accent-text)!important}

/* — Actions principales : pilule pleine couleur accent (modèle « Suivre ») — */
:where(.button.primary,.button.large,.button.pill,.profile-action-primary,.profile-follow-action,.connection-follow-toggle:not(.is-following),.admin-primary-action,.review-submit,.side-publish,.message-compose button,.friend-follow-check,.conversation-select-toolbar button,.admin-pagination a.active,.admin-pagination a:hover,.payment-filter-tabs a.active,.explore-view-mode a.active,.explore-view-mode a[aria-current="page"],.admin-tabs a.active,.area-switch label.active,.area-switch label:has(input:checked),.admin-form button[type="submit"],.admin-console-nav nav a b,.nav-message-badge,.empty-state-action){background:var(--accent)!important;border-color:var(--accent)!important;color:var(--accent-contrast)!important}
:where(.button.primary,.button.large,.button.pill,.profile-action-primary,.profile-follow-action,.connection-follow-toggle:not(.is-following),.admin-primary-action,.review-submit,.side-publish,.message-compose button,.friend-follow-check,.conversation-select-toolbar button,.admin-pagination a.active,.admin-pagination a:hover,.payment-filter-tabs a.active,.explore-view-mode a.active,.explore-view-mode a[aria-current="page"],.admin-tabs a.active,.area-switch label.active,.area-switch label:has(input:checked),.admin-form button[type="submit"],.admin-console-nav nav a b,.nav-message-badge,.empty-state-action):hover,:where(.button.primary,.button.large,.button.pill,.profile-action-primary,.profile-follow-action,.connection-follow-toggle:not(.is-following),.admin-primary-action,.review-submit,.side-publish,.message-compose button,.friend-follow-check,.conversation-select-toolbar button,.admin-pagination a.active,.admin-pagination a:hover,.payment-filter-tabs a.active,.explore-view-mode a.active,.explore-view-mode a[aria-current="page"],.admin-tabs a.active,.area-switch label.active,.area-switch label:has(input:checked),.admin-form button[type="submit"],.admin-console-nav nav a b,.nav-message-badge,.empty-state-action):focus-visible{background:var(--accent)!important;border-color:var(--accent)!important;color:var(--accent-contrast)!important;filter:brightness(1.07)}

/* — Boutons de formulaires (connexion, admin, publication) : même pilule — */
.auth-visual-page .auth-recovery-form .button,
.admin-form button,
.admin-panel header button{border-radius:999px!important}

/* — Compteurs de la sidebar admin (Utilisateurs, À traiter…) : chiffre lisible clair/sombre — */
.admin-console-nav nav a b{color:var(--text)!important}

/* — Actions danger : pilule teintée rouge (suppression, signalement) — */
:where(.button.danger,.admin-danger-link,.paid-option-delete button,.admin-icon-action.danger,.icon-danger-button){color:var(--danger-text)!important}
.button.danger{background:color-mix(in srgb,var(--danger) 12%,transparent)!important;border:1px solid color-mix(in srgb,var(--danger) 45%,transparent)!important;border-radius:999px!important;color:var(--danger-text)!important}
.button.danger:is(:hover,:focus-visible){background:var(--danger-fill)!important;border-color:var(--danger-fill)!important;color:var(--danger-contrast)!important}

/* — Liens texte : modèle « Suivis / Abonnés » (pas de fond, pas de soulignement) — */
.verification-resend-button,.detail-text-toggle{background:transparent!important;border:0!important;border-radius:0!important;color:var(--muted)!important;display:inline-flex!important;font-size:12px!important;font-weight:650!important;min-height:0!important;padding:4px 0!important;text-decoration:none!important}
.verification-resend-button:hover,.detail-text-toggle:hover{color:var(--accent-text)!important}
.feed-tabs a{color:var(--muted)!important}
.feed-tabs a.active{color:var(--text)!important}
.feed-tabs a.active:after{background:var(--accent)!important}
.public-profile-tabs a:hover{color:var(--accent-text)}
.admin-help a{color:var(--accent-text);text-decoration:none}
