/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  cm-recherche.css — LA recherche du site — RECHERCHE-20261002, v6 (02/10) ║
   ║  David : « juste en dessous du header, valable pour tout le site, même    ║
   ║  pour toutes les locations : un article, une question récurrente sur      ║
   ║  l'outil, à peu près tout ; dans l'air du temps, un peu futuriste :       ║
   ║  auto-complétion, propositions, une petite image à gauche » — puis        ║
   ║  « mets-la aussi sur les sites des résidences ».                          ║
   ╚══════════════════════════════════════════════════════════════════════════╝
   UN module, trois hôtes : le bandeau partagé (accueil + blog, monté par cm-header.js dans #cmHead) et la
   barre .main-nav des vitrines de résidence (site.php / index.html, monté par leur propre appel à
   cmRecherche.monter). Balisage construit par cm-recherche.js :
   <div class="cms"><div class="cms-in"><form class="cms-box" role="search">…<input>…</form>
     <div class="cms-panel" hidden>chips · <ul role="listbox"> · vide · indice</div></div></div>
   Index : /api/coloc-recherche.php (logements, questions, articles, pages) + les entrées LOCALES de la page
   hôte (chambres et sections d'une résidence : « cette résidence d'abord »).
   Rendu par défaut = boîte encre sur fond clair (bandeau en verre, barre blanche des vitrines) ; sur la PHOTO
   du hero de l'accueil (bandeau ni .is-solid ni .cms-open) la boîte passe en verre clair, texte blanc.
   Les variables --cmh-* ont ici leurs valeurs par défaut : un hôte sans bandeau les a quand même. */
.cms{--cmh-ink:#14181f;--cmh-muted:#5b564f;--cmh-accent:#3d5a80;--cmh-border:rgba(20,24,31,.12);
  height:var(--cms-h,48px);display:flex;align-items:flex-start;box-sizing:border-box;font-family:var(--cm-font,inherit);text-align:left}
.cms *,.cms *::before,.cms *::after{box-sizing:border-box}
.cms svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cms-in{position:relative;max-width:1080px;width:100%;margin:0 auto;padding:0 20px}
/* La boîte : encre sur fond clair par défaut (bandeau en verre, barre blanche des vitrines). */
.cms-box{position:relative;display:flex;align-items:center;gap:10px;height:38px;margin:0 auto;max-width:720px;padding:0 10px 0 14px;border-radius:999px;
  border:1px solid var(--cmh-border);background:rgba(20,24,31,.055);color:var(--cmh-ink);
  -webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);
  transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease,color .25s ease}
.cms-box:focus-within{background:#fff;border-color:rgba(61,90,128,.55);box-shadow:0 0 0 3px rgba(61,90,128,.16),0 10px 30px rgba(20,24,31,.08)}
/* Sur la photo du hero de l'accueil (bandeau transparent, panneau fermé) : verre clair, texte blanc. */
.cmh:not(.is-solid):not(.cms-open) .cms-box{color:#fff;border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.15);box-shadow:0 1px 0 rgba(255,255,255,.18) inset}
.cmh:not(.is-solid):not(.cms-open) .cms-box:focus-within{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.6);box-shadow:0 0 0 3px rgba(255,255,255,.14),0 10px 30px rgba(0,0,0,.18)}
.cms-lp{width:17px;height:17px;flex:0 0 17px;opacity:.85}
.cms-input{flex:1 1 auto;min-width:0;height:100%;border:0;background:transparent;color:inherit;font:inherit;font-size:15px;font-weight:500;outline:none;padding:0;-webkit-appearance:none;appearance:none}
.cms-input::placeholder{color:currentColor;opacity:.68}
.cms-input::-webkit-search-decoration,.cms-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.cms-kbd{display:none;flex:none;font:inherit;font-size:11.5px;font-weight:700;line-height:1;padding:4px 7px;border-radius:7px;border:1px solid currentColor;opacity:.55}
.cms-x{display:none;flex:none;width:28px;height:28px;align-items:center;justify-content:center;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent}
.cms-x svg{width:15px;height:15px}
.cms-x:hover,.cms-x:focus-visible{background:rgba(127,127,127,.18);outline:none}
.cms-box.a-saisie .cms-x{display:inline-flex}.cms-box.a-saisie .cms-kbd{display:none!important}
@media(hover:hover) and (pointer:fine){.cms-kbd{display:inline-block}}

/* Le panneau : verre blanc sous la boîte, une ligne = une petite image à gauche + titre + détail + nature. */
.cms-panel{position:absolute;left:20px;right:20px;top:calc(100% + 6px);z-index:1;max-width:720px;margin:0 auto;
  max-height:calc(100dvh - var(--cmh-h,120px) - 18px);overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  padding:10px;border-radius:18px;border:1px solid rgba(20,24,31,.1);background:rgba(255,255,255,.965);color:var(--cmh-ink);
  -webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%);
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 24px 60px rgba(20,24,31,.18);
  -webkit-user-select:none;user-select:none}
.cms-panel[hidden],.cms-chips[hidden],.cms-empty[hidden]{display:none}  /* display:flex battrait [hidden] (piège déjà vu sur l'ancienne barre du blog) */
.cms-grp{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px 6px;font-size:11.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--cmh-muted)}
.cms-chips{display:flex;flex-wrap:wrap;gap:6px;padding:2px 8px 8px}
.cms-chip{font:inherit;font-size:13px;font-weight:600;padding:6px 11px;border-radius:999px;border:1px solid var(--cmh-border);background:rgba(20,24,31,.03);color:var(--cmh-ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.cms-chip:hover,.cms-chip:focus-visible{background:rgba(61,90,128,.1);border-color:rgba(61,90,128,.35);outline:none}
.cms-list{list-style:none;margin:0;padding:0}
.cms-item{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;text-decoration:none;color:inherit;cursor:pointer}
.cms-item,.cms-item:hover,.cms-item:visited{color:var(--cmh-ink);text-decoration:none}
.cms-item:hover,.cms-item[aria-selected="true"]{background:rgba(61,90,128,.09)}
.cms-item[aria-selected="true"]{box-shadow:0 0 0 1px rgba(61,90,128,.28) inset}
.cms-tile{flex:0 0 44px;width:44px;height:44px;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e9eff6,#f6f4f0);color:var(--cmh-accent)}
.cms-tile img{width:100%;height:100%;object-fit:cover;display:block}
.cms-tile svg{width:20px;height:20px;stroke-width:1.8}
.cms-tile.ici{background:linear-gradient(135deg,#e3ebf5,#d2deee)}.cms-tile.q{background:linear-gradient(135deg,#eef3f9,#dfe8f3)}.cms-tile.p{background:linear-gradient(135deg,#f3f1ec,#e6e1da);color:#5b564f}
.cms-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.cms-t{font-size:14.5px;font-weight:650;line-height:1.3;color:var(--cmh-ink);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cms-t mark{background:rgba(61,90,128,.16);color:inherit;border-radius:3px;padding:0 1px}
.cms-d{font-size:12.5px;line-height:1.35;color:var(--cmh-muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.cms-k{flex:none;align-self:flex-start;margin-top:2px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 7px;border-radius:7px;background:rgba(20,24,31,.05);color:var(--cmh-muted)}
.cms-k.ici{background:rgba(61,90,128,.16);color:var(--cmh-accent)}.cms-k.logement{background:rgba(47,125,84,.12);color:#236343}.cms-k.article{background:rgba(61,90,128,.12);color:var(--cmh-accent)}.cms-k.question{background:rgba(200,177,137,.22);color:#6b5630}
.cms-empty{margin:0;padding:12px 10px 14px;font-size:14px;color:var(--cmh-muted)}
.cms-hint{display:none;margin:4px 0 0;padding:8px 10px 2px;border-top:1px solid var(--cmh-border);font-size:11.5px;color:var(--cmh-muted)}
.cms-hint kbd{font:inherit;font-weight:700;padding:1px 5px;border-radius:5px;border:1px solid var(--cmh-border)}
@media(hover:hover) and (pointer:fine){.cms-hint{display:block}}
@media(max-width:759px){
  .cms{height:var(--cms-h,44px)}
  .cms-in{padding:0 10px}
  .cms-box{height:36px;padding:0 8px 0 12px;gap:8px}
  .cms-input{font-size:14.5px}
  .cms-panel{left:8px;right:8px;top:calc(100% + 4px);padding:8px;border-radius:16px}
  .cms-item{gap:10px;padding:7px 8px}
  .cms-tile{flex-basis:40px;width:40px;height:40px;border-radius:10px}
  .cms-k{display:none}
  .cms-d{-webkit-line-clamp:2}
}
@media(prefers-reduced-motion:reduce){.cms-box{transition:none}}

