/* th-built *//* Growth Gusto — « Rechercher » (js/recherche.js). Prefix « rx ». Téléphone : plein écran posé sur le clavier ; ordinateur : palette au centre. */
.rx{position:fixed;inset:0;z-index:120;pointer-events:none}
.rx[hidden]{display:none}
.rx.on{pointer-events:auto}
.rx-scrim{position:absolute;inset:0;background:rgb(var(--sk) / .34);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transition:opacity .22s var(--ease)}
.rx.on .rx-scrim{opacity:1}
.rx-panel{position:absolute;left:0;right:0;top:0;height:100%;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);opacity:0;transform:translateY(-14px);transition:opacity .2s var(--ease),transform .32s var(--spring-soft);overflow:hidden}
.rx.on .rx-panel{opacity:1;transform:none}
.rx.out .rx-panel{transition-duration:.16s}
html.kb .rx-panel{top:var(--vvt,0px);height:var(--vvh,100%)}

.rx-bar{display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 8px 14px;flex:none}
.rx-inw{position:relative;flex:1;min-width:0;display:flex}
.rx-glass{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);display:grid;place-items:center;pointer-events:none}
.rx-glass .ico{width:20px;height:20px}
.rx-bar input{flex:1;min-width:0;width:100%;height:48px;border:0;outline:0;border-radius:16px;padding:0 44px 0 44px;font:650 17px/1 var(--f);letter-spacing:-.01em;color:var(--ink);background:var(--glass-hi);box-shadow:0 0 0 1px var(--line) inset,0 8px 22px -14px rgb(var(--sk) / .4);-webkit-appearance:none;appearance:none}
.rx-bar input::placeholder{color:var(--faint);font-weight:550}
.rx-bar input::-webkit-search-cancel-button{display:none}
.rx-bar input:focus{box-shadow:0 0 0 2px var(--accent) inset,0 8px 22px -14px rgb(var(--sk) / .4)}
.rx-x,.rx-mic{all:unset;cursor:pointer;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--muted)}
.rx-x{position:absolute;right:4px;top:50%;transform:translateY(-50%)}
.rx-x[hidden]{display:none}
.rx-x .ico,.rx-mic .ico{width:20px;height:20px}
.rx-mic{background:var(--glass-hi);box-shadow:0 0 0 1px var(--line) inset}
.rx-mic.on{background:var(--bad);color:#fff;box-shadow:none;animation:rxPulse 1.2s ease-in-out infinite}
@keyframes rxPulse{50%{box-shadow:0 0 0 8px rgba(212,42,72,.18)}}
.rx-cancel{all:unset;cursor:pointer;font:700 15px/1 var(--f);color:var(--accent-ink);padding:12px 4px 12px 6px;flex:none}

.rx-chips{display:flex;gap:6px;overflow-x:auto;padding:2px 14px 10px;flex:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.rx-chips::-webkit-scrollbar{display:none}
.rx-chips[hidden]{display:none}
.rx-chip{all:unset;cursor:pointer;flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;border-radius:999px;font:700 13px/1 var(--f);color:var(--ink-2);background:var(--glass-hi);box-shadow:0 0 0 1px var(--line) inset;transition:background .18s,color .18s,transform .25s var(--spring)}
.rx-chip i{font-style:normal;font-size:11.5px;font-weight:750;color:var(--muted);font-variant-numeric:tabular-nums}
.rx-chip.on{background:var(--ink-bg);color:var(--on-ink);box-shadow:none}
.rx-chip.on i{color:inherit;opacity:.7}
.rx-chip:active{transform:scale(.95)}

.rx-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 10px calc(16px + env(safe-area-inset-bottom,0px))}
.rx-grp{margin:0 0 6px}
.rx-gt{font:800 11.5px/1 var(--f);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:12px 8px 6px}
.rx-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 8px;border-radius:16px;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .12s}
.rx-row.on{background:var(--glass-hi);box-shadow:0 0 0 1px var(--line) inset}
.rx-row:active{background:var(--tint-acc)}
.rx-ic{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;flex:none;background:var(--wb,#EFE9FF);color:var(--wc,#5B2BFF)}:where(html[data-theme=dark]) .rx-ic{background:var(--wb,rgb(36, 33, 51));color:var(--wc,rgb(157, 162, 249))}
.rx-ic .ico{width:21px;height:21px}
.rx-ic .ico path[fill]{fill:var(--wf,currentColor)}
.rx-ic.w-vi{--wb:#EFE9FF;--wc:#5B2BFF;--wf:#C9BFFF}:where(html[data-theme=dark]) .rx-ic.w-vi{--wb:rgb(36, 33, 51);--wc:rgb(157, 162, 249);--wf:rgb(42, 31, 76)}
.rx-ic.w-sa{--wb:#FFF3D6;--wc:#9A6200;--wf:#F6B93B}:where(html[data-theme=dark]) .rx-ic.w-sa{--wb:rgb(53, 39, 0);--wc:rgb(217, 157, 81)}
.rx-ic.w-in{--wb:#1B1530;--wc:#fff;--wf:#F6B93B}
.rx-ic.w-sk{--wb:#E6F0FF;--wc:#2F5FBF;--wf:#9EC5FF}:where(html[data-theme=dark]) .rx-ic.w-sk{--wb:rgb(35, 31, 49);--wc:rgb(132, 172, 248);--wf:rgb(12, 40, 79)}
.rx-ic.w-to{--wb:#FFE9DE;--wc:#C8432A;--wf:#FFB8A6}:where(html[data-theme=dark]) .rx-ic.w-to{--wb:rgb(35, 32, 50);--wc:rgb(249, 133, 109);--wf:rgb(72, 22, 10)}
.rx-ic.w-mi{--wb:#E3F5EA;--wc:#1E7F55;--wf:#9EE3BC}:where(html[data-theme=dark]) .rx-ic.w-mi{--wb:rgb(34, 31, 49);--wc:rgb(103, 192, 146);--wf:rgb(5, 49, 30)}
.rx-ic.w-nd{--wb:#F1E9DA;--wc:#4A4560;--wf:#DCCFB8}:where(html[data-theme=dark]) .rx-ic.w-nd{--wb:rgb(38, 35, 53);--wc:rgb(194, 188, 177);--wf:rgb(58, 54, 74)}
.rx-tx{flex:1;min-width:0;display:block}
.rx-tx b{display:block;font-weight:750;font-size:15px;letter-spacing:-.015em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rx-tx em{display:block;font-style:normal;font-size:12.5px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rx-tx mark{background:none;color:var(--accent-ink);font-weight:800}
.rx-tx em mark{font-weight:700}
.rx-go{display:flex;align-items:center;gap:8px;color:var(--faint);flex:none}
.rx-go .ico{width:18px;height:18px}
.rx-row.on .rx-go{color:var(--accent-ink)}
.rx-tag{font:750 11px/1 var(--f);padding:5px 8px;border-radius:999px;background:var(--well);color:var(--muted)}
.rx-more{all:unset;cursor:pointer;display:block;font:700 13.5px/1 var(--f);color:var(--accent-ink);padding:10px 8px 8px 60px}
.rx-none{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:34px 24px 10px;color:var(--muted);font-size:14px}
.rx-none b{color:var(--ink);font-size:16px}
.rx-none-ic{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:var(--well);color:var(--muted);margin-bottom:4px}
.rx-none-ic .ico{width:24px;height:24px}
.rx-tip{color:var(--faint);font-size:12.5px;text-align:center;padding:18px 16px 4px;line-height:1.6}
.rx-foot{display:none}

/* ordinateur et tablette : la palette au centre, sous le haut de l'écran (posée au-dessus du clavier de l'iPad) */
@media (min-width:700px){
  .rx-panel{left:50%;right:auto;top:11vh;width:min(680px,calc(100vw - 48px));height:auto;max-height:min(620px,76vh);transform:translate(-50%,-10px) scale(.985);border-radius:24px;background:var(--solid);box-shadow:var(--sh-lg),0 0 0 1px var(--line);transition:opacity .16s var(--ease),transform .26s var(--spring-soft)}
  .rx.on .rx-panel{transform:translate(-50%,0)}
  .rx-bar{padding:12px 12px 8px 14px}
  .rx-bar input{height:52px;font-size:18px;background:transparent;box-shadow:none;padding-left:42px}
  .rx-bar input:focus{box-shadow:none}
  .rx-glass{left:12px}
  .rx-bar{border-bottom:1px solid var(--line)}
  .rx-cancel{padding:8px}
  .rx-chips{padding:10px 14px 4px}
  .rx-list{padding:0 8px 8px}
  .rx-row{min-height:52px}
  .rx-foot{gap:16px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid var(--line);color:var(--faint);font-size:12px;flex:none}
  .rx-foot .kbd{margin-right:4px}
  html.kb .rx-panel{top:calc(var(--vvt,0px) + 4vh);height:auto;max-height:calc(var(--vvh,100%) - 4vh - 14px)}
}
@media (min-width:960px){.rx-top{display:none}}
@media (min-width:700px) and (hover:hover) and (pointer:fine){.rx-foot{display:flex}}

/* les portes d'entrée */
.rx-side{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:10px;width:100%;height:42px;padding:0 10px 0 12px;margin:0 0 10px;border-radius:14px;background:var(--glass-2);box-shadow:0 0 0 1px var(--line) inset;color:var(--muted);font:650 14px/1 var(--f);transition:background .18s}
.rx-side:hover{background:var(--glass-hi)}
.rx-side .ico{width:18px;height:18px;flex:none}
.rx-side span:not(.kbd){flex:1}
.rx-field{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:10px;width:100%;height:50px;padding:0 16px;margin:12px 0 4px;border-radius:16px;background:var(--glass-hi);box-shadow:0 0 0 1px var(--line) inset,0 8px 22px -16px rgb(var(--sk) / .4);color:var(--faint);font:600 15px/1 var(--f)}
.rx-field .ico{width:20px;height:20px;color:var(--muted);flex:none}
.rx-field span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rx-top .ico{width:20px;height:20px}
.rx-field.rx-home{height:46px;margin:2px 0 14px}

/* la ligne trouvée, montrée dans son écran */
.rx-hl{position:relative;animation:rxHl 2.4s var(--ease) both;border-radius:14px}
@keyframes rxHl{0%{box-shadow:0 0 0 0 rgba(122,77,255,0);background-color:transparent}12%{box-shadow:0 0 0 3px rgba(122,77,255,.55);background-color:var(--tint-acc)}70%{box-shadow:0 0 0 3px rgba(122,77,255,.4);background-color:var(--tint-acc)}100%{box-shadow:0 0 0 0 rgba(122,77,255,0)}}
@media (prefers-reduced-motion:reduce){.rx-panel,.rx-scrim{transition:none}.rx-hl{animation-duration:.01s;box-shadow:0 0 0 3px rgba(122,77,255,.55)}}
