/* ◆ v95 (03.12) — listes déroulantes aux couleurs de Nacre (voir listes.js). Toutes les pages. */

/* le champ fermé : même flèche dorée partout, plus la flèche grise du téléphone */
select.lst{-webkit-appearance:none;appearance:none;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8812F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:15px 15px!important;
  padding-right:40px!important;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
select.lst:focus-visible{outline:2px solid #A8812F;outline-offset:2px}
select.lst:disabled{opacity:.55}

/* le panneau */
html.lst-bloque,html.lst-bloque body{overflow:hidden}
.lst-fond{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;justify-content:center;
  background:rgba(24,19,10,.38);animation:lst-fond .2s ease both;-webkit-tap-highlight-color:transparent}
.lst-fond.sort{animation:lst-fond-sort .18s ease both}
.lst-panneau{display:flex;flex-direction:column;width:100%;max-width:560px;max-height:72vh;margin:0;
  background:#FAF8F4;color:#111;border-radius:26px 26px 0 0;padding:8px 0 calc(14px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -12px 40px rgba(0,0,0,.18);animation:lst-monte .28s cubic-bezier(.22,.61,.36,1) both;
  font-family:inherit;text-align:left}
.lst-fond.sort .lst-panneau{animation:lst-descend .18s ease both}
.lst-poignee{flex:none;width:40px;height:5px;border-radius:3px;background:#CFC6B5;margin:4px auto 10px}
.lst-titre{flex:none;padding:2px 26px 12px;font-size:11.5px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#8A6A22}
.lst-options{overflow-y:auto;padding:0 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.lst-opt{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:52px;margin:0;
  padding:12px 16px;border:0;border-radius:14px;background:none;color:#111;font:inherit;font-size:16px;line-height:1.3;
  text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s}
.lst-opt span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.lst-opt:hover,.lst-opt:focus-visible{background:#F2EEE6;outline:none}
.lst-opt:active{background:#E9E3D8}
.lst-opt[aria-selected=true]{background:#F2EEE6;color:#8A6A22;font-weight:600}
.lst-opt svg{flex:none;width:19px;height:19px;fill:none;stroke:#A8812F;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.lst-opt:disabled{opacity:.4;cursor:default;background:none}
.lst-groupe{padding:14px 16px 6px;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#8E877A}

/* sur ordinateur : un menu sous le champ, sans voile */
.lst-fond.pop{display:block;background:transparent;animation:none}
.lst-fond.pop .lst-panneau{position:fixed;width:auto;max-width:none;border-radius:18px;padding:8px 0;
  box-shadow:0 18px 50px rgba(0,0,0,.16),0 0 0 1px #E4DDD0;animation:lst-pop .16s ease both}
.lst-fond.pop .lst-options{padding:0 8px}
.lst-fond.pop .lst-opt{min-height:44px;padding:10px 14px;font-size:15px;border-radius:12px}
.lst-fond.pop.sort .lst-panneau{animation:lst-fond-sort .14s ease both}

/* suggestions sous un champ à compléter */
.lst-sugg{position:fixed;z-index:2147483000;overflow-y:auto;padding:6px;background:#FAF8F4;border-radius:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.16),0 0 0 1px #E4DDD0;animation:lst-pop .14s ease both;overscroll-behavior:contain}
.lst-sugg .lst-opt{min-height:46px;padding:10px 14px;font-size:15.5px;border-radius:12px}

@keyframes lst-fond{from{opacity:0}to{opacity:1}}
@keyframes lst-fond-sort{from{opacity:1}to{opacity:0}}
@keyframes lst-monte{from{transform:translateY(100%)}to{transform:none}}
@keyframes lst-descend{from{transform:none}to{transform:translateY(100%)}}
@keyframes lst-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.lst-fond,.lst-panneau,.lst-sugg,.lst-fond.sort,.lst-fond.sort .lst-panneau{animation:none!important}}
