/* Yafoye — le menu deroulant premium a icone et libelle.
 *
 * V101.627. Ces regles vivaient dans le `<head>` d'`explorer-annonces.html`.
 * La V101.622 a EXPOSE le composant (`YIPremiumSelects.appliquer`) pour que le
 * tri de Yafoye Match et les questionnaires aient la meme apparence — mais sa
 * feuille de style, elle, est restee dans la page d'Explorer.
 *
 * CE QUE CA DONNAIT SUR YAFOYE MATCH. Le composant s'installait bien, sans une
 * seule de ses regles : le menu s'affichait deplie en permanence (il n'est
 * masque que par `.yi-premium-select-menu{visibility:hidden}`), et le select
 * natif restait visible a cote (il n'est efface que par
 * `.yi-native-select-hidden`). D'ou les DEUX menus de tri sur un meme ecran.
 *
 * Un composant partage a besoin d'une feuille partagee. Toute page qui appelle
 * `YIPremiumSelects.appliquer` doit charger ce fichier.
 */

.yi-native-select-hidden{
  position:absolute!important;width:1px!important;height:1px!important;
  opacity:0!important;pointer-events:none!important;clip:rect(0 0 0 0)!important;
}
.yi-premium-select{position:relative;width:100%;font-family:Manrope,Arial,sans-serif}
.yi-premium-select-trigger{
  width:100%;min-height:54px;padding:8px 46px 8px 14px;border:1px solid #d9e2ec;
  border-radius:16px;background:linear-gradient(180deg,#fff,#fbfcfe);color:#031b3a;
  display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;
  box-shadow:0 8px 22px rgba(3,27,58,.055);transition:.2s ease
}
.yi-premium-select-trigger:hover{border-color:#b8c5d4;box-shadow:0 12px 28px rgba(3,27,58,.09)}
.yi-premium-select.open .yi-premium-select-trigger,
.yi-premium-select-trigger:focus-visible{outline:0;border-color:#031b3a;box-shadow:0 0 0 4px rgba(3,27,58,.09)}
.yi-premium-select-icon{
  width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;
  background:#f3f6fa;color:#031b3a;font-size:14px
}
.yi-premium-select-copy{min-width:0;display:grid;gap:1px}
.yi-premium-select-label{font-size:10px;font-weight:800;color:#7b8797;text-transform:uppercase;letter-spacing:.055em}
.yi-premium-select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800;color:#031b3a}
.yi-premium-select-chevron{
  position:absolute;right:16px;top:50%;transform:translateY(-50%);pointer-events:none;
  color:#667085;transition:transform .2s ease
}
.yi-premium-select.open .yi-premium-select-chevron{transform:translateY(-50%) rotate(180deg)}
.yi-premium-select-menu{
  position:absolute;z-index:3200;left:0;right:0;top:calc(100% + 9px);padding:9px;
  border:1px solid #e0e6ed;border-radius:18px;background:rgba(255,255,255,.985);
  box-shadow:0 24px 60px rgba(3,27,58,.19);backdrop-filter:blur(16px);
  opacity:0;visibility:hidden;transform:translateY(-6px) scale(.985);transform-origin:top;
  transition:.18s ease
}
.yi-premium-select.open .yi-premium-select-menu{opacity:1;visibility:visible;transform:none}
.yi-premium-select-search-wrap{position:relative;margin-bottom:7px}
.yi-premium-select-search-wrap i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#98a2b3;font-size:12px}
.yi-premium-select-search{
  width:100%;height:42px;padding:0 12px 0 36px;border:1px solid #e4e9ef;border-radius:12px;
  background:#f7f9fb;color:#031b3a;font:700 12px Poppins,Arial,sans-serif
}
.yi-premium-select-search:focus{outline:0;border-color:#9aaabd;background:#fff;box-shadow:0 0 0 3px rgba(3,27,58,.06)}
.yi-premium-select-options{max-height:235px;overflow:auto;display:grid;gap:3px;scrollbar-width:thin}
.yi-premium-option{
  min-height:43px;padding:0 11px;border:0;border-radius:11px;background:transparent;color:#344054;
  display:grid;grid-template-columns:1fr;align-items:center;gap:0;text-align:left;
  font:700 12px Poppins,Arial,sans-serif;cursor:pointer
}
.yi-premium-option:hover,.yi-premium-option.focused{background:#f2f5f8;color:#031b3a}
.yi-premium-option.selected{background:#eef8fa;color:#031b3a;font-weight:850}
.yi-premium-empty{padding:18px 10px;text-align:center;color:#98a2b3;font-size:12px}
.toolbar .yi-premium-select{width:190px}
.toolbar .yi-premium-select-trigger{min-height:42px;border-radius:999px;padding-top:5px;padding-bottom:5px}
.toolbar .yi-premium-select-icon,.toolbar .yi-premium-select-label{display:none}
.toolbar .yi-premium-select-menu{left:auto;width:255px}
@media(max-width:700px){
  .toolbar .yi-premium-select{width:150px}
  .toolbar .yi-premium-select-trigger{padding-left:13px}
  .toolbar .yi-premium-select-menu{
    position:fixed;left:10px;right:10px;top:auto;bottom:calc(84px + env(safe-area-inset-bottom));
    width:auto;border-radius:22px;padding:12px
  }
  .yi-explorer-filter-sheet .yi-premium-select-menu{
    position:fixed;left:10px;right:10px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));
    width:auto;max-height:72dvh;border-radius:24px;padding:13px;z-index:4000
  }
  .yi-explorer-filter-sheet .yi-premium-select-options{max-height:46dvh}
}

/* ------------------------------------------------------------------
   Yafoye Match — la barre de tri.
   Le composant occupe toute la largeur par defaut, ce qui conviendrait
   a un formulaire mais pas a un menu range au bout d'un titre. Meme
   forme que dans la barre d'outils d'Explorer : une pastille compacte,
   alignee a droite, pleine largeur sur telephone.
   ------------------------------------------------------------------ */
.summary .yi-premium-select{width:auto;min-width:212px;margin-left:auto}
.summary .yi-premium-select-trigger{min-height:44px;border-radius:999px;padding:6px 42px 6px 13px}
.summary .yi-premium-select-icon{width:28px;height:28px;flex:0 0 28px;border-radius:9px;font-size:12px}
.summary .yi-premium-select-menu{left:auto;right:0;width:262px}
@media(max-width:650px){
  .summary .yi-premium-select{width:100%;min-width:0;margin-left:0}
  .summary .yi-premium-select-menu{left:0;right:0;width:auto}
}
