/* Correctifs 2.0.2 */

/* L'en-tête reste collé en haut même quand une page met body en overflow:hidden (page Proposer, etc.). */
html body.coab-as-on{overflow-x:clip!important;overflow-y:visible!important}

/* Messagerie : les filtres Non lues / À traiter / Actifs masquent réellement les conversations. */
html body.coab-m3 .ddbz-msg-list .ddbz-msg-thread.m3-hide,
html body.coab-m3.coab-msg-mobile-v4:not(.ddbz-msg-thread-focus) .ddbz-msg-thread.m3-hide{display:none!important}

/* Messagerie plus visible sur ordinateur : l'icône de l'en-tête porte son nom. */
@media (min-width:980px){
  html body.coab-as-on .as-top a.as-ib.as-only-d[href*="messages-coabonnement"]{width:auto!important;padding:0 14px 0 11px!important;gap:7px;display:inline-flex!important;align-items:center;border-radius:999px!important;font:700 13px/1 var(--as-font)}
  html body.coab-as-on .as-top a.as-ib.as-only-d[href*="messages-coabonnement"]::after{content:"Messages"}
}

/* Suggestions de la recherche : panneau lisible, large, texte court, clair et sombre. */
html body.coab-as-on .as-top .ddbz-live-search__panel{min-width:min(400px,92vw)!important;max-width:92vw;max-height:min(70vh,520px)!important;overflow:auto!important;background:var(--as-surface)!important;color:var(--as-ink)!important;border:1px solid var(--as-line)!important;border-radius:16px!important;box-shadow:0 18px 44px var(--as-shadow)!important;padding:6px!important}
html body.coab-as-on .as-top .ddbz-live-search__label{font:800 11px/1 var(--as-font)!important;letter-spacing:.08em;text-transform:uppercase;color:var(--as-muted)!important;padding:10px 10px 6px!important}
html body.coab-as-on .as-top .ddbz-live-search__item{display:grid!important;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;padding:8px 10px!important;border-radius:12px;color:var(--as-ink)!important;-webkit-text-fill-color:currentcolor!important;text-decoration:none!important}
html body.coab-as-on .as-top .ddbz-live-search__item:hover{background:var(--as-surface-2)!important}
html body.coab-as-on .as-top .ddbz-live-search__thumb{width:40px!important;height:40px!important;border-radius:10px!important;overflow:hidden}
html body.coab-as-on .as-top .ddbz-live-search__thumb img{width:100%;height:100%;object-fit:cover}
html body.coab-as-on .as-top .ddbz-live-search__title{display:block!important;font:700 14px/1.3 var(--as-font)!important;color:var(--as-ink)!important;-webkit-text-fill-color:var(--as-ink)!important}
html body.coab-as-on .as-top .ddbz-live-search__excerpt{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:500 12.5px/1.35 var(--as-font)!important;color:var(--as-muted)!important;-webkit-text-fill-color:var(--as-muted)!important}
html body.coab-as-on .as-top .ddbz-live-search__keywords a{color:var(--as-blue-ink)!important;-webkit-text-fill-color:currentcolor!important}

/* Mode sombre : certaines pages du thème imposent champs blancs et textes bleu foncé en !important.
   On reprend la main pour l'en-tête, les menus déroulants et les feuilles de l'interface. */
html[data-coab-theme="dark"] body.coab-as-on .as-top-search input{background:transparent!important;color:var(--as-ink)!important;-webkit-text-fill-color:var(--as-ink)!important;border:0!important;box-shadow:none!important}
html[data-coab-theme="dark"] body.coab-as-on .as-top-search input::placeholder{color:var(--as-muted)!important;-webkit-text-fill-color:var(--as-muted)!important;opacity:1}
html[data-coab-theme="dark"] body.coab-as-on :is(.as-sheet,.as-pop) :is(input,select,textarea){background:var(--as-surface-2)!important;color:var(--as-ink)!important;-webkit-text-fill-color:var(--as-ink)!important;border-color:var(--as-line)!important}
html[data-coab-theme="dark"] body.coab-as-on :is(.as-top,.as-sheet,.as-pop) :is(.as-ib,.as-mi,.as-row,.as-me){color:var(--as-ink)!important;-webkit-text-fill-color:currentcolor!important}
html[data-coab-theme="dark"] body.coab-as-on :is(.as-top,.as-sheet,.as-pop) .as-ib svg{stroke:currentColor!important;color:inherit!important}
html[data-coab-theme="dark"] body.coab-as-on :is(.as-mi b,.as-row-txt b,.as-me-txt b){color:var(--as-ink)!important;-webkit-text-fill-color:var(--as-ink)!important}
html[data-coab-theme="dark"] body.coab-as-on :is(.as-mi small,.as-row-txt small,.as-me-txt small,.as-row em){color:var(--as-muted)!important;-webkit-text-fill-color:var(--as-muted)!important}
html[data-coab-theme="dark"] body.coab-as-on .as-top .as-dl:not(.is-deal){color:var(--as-ink)!important;-webkit-text-fill-color:currentcolor!important}
html[data-coab-theme="dark"] body.coab-as-on .as-top .as-dl.is-on:not(.is-deal){color:var(--as-blue-ink)!important}
html[data-coab-theme="dark"] body.coab-as-on nav.coab-as-tabbar a.as-tab:not(.is-active):not(.is-deal){color:var(--as-muted)!important;-webkit-text-fill-color:currentcolor!important}
