/* CardCairn V15 — Suggestions de recherche du catalogue
   Palette Atlas claire. Styles localisés à la fenêtre d'autocomplétion.
   Aucun changement au moteur de recherche ni à l'ajout rapide. */
.cc-search-panel {position:relative;overflow:visible}
.catalogue-quick-popover {
  position:absolute; z-index:160; left:0; right:0; top:74px;
  bottom:auto!important; transform:none!important;
  border:1px solid #cfdeed; border-radius:16px;
  background:#ffffff; background-image:none;
  color:#243748; box-shadow:0 20px 44px rgba(35,54,76,.19);
  overflow:hidden; overscroll-behavior:contain;
}
.catalogue-quick-popover[hidden]{display:none!important}
.catalogue-quick-popover *{box-sizing:border-box}
.catalogue-quick-popover .catq-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:14px; padding:14px 16px;
  background:#f1f6fd; border-bottom:1px solid #dbe6f1;
}
.catalogue-quick-popover .catq-head>div{display:grid;gap:3px}
.catalogue-quick-popover .catq-head b{font-size:15px;line-height:1.25;color:#20394e}
.catalogue-quick-popover .catq-head span{font-size:11px;line-height:1.45;color:#63788d}
.catalogue-quick-popover .catq-head button{
  flex:0 0 auto;display:grid;place-items:center;width:32px;height:32px;
  padding:0;border-radius:10px;border:1px solid #cfdce9;
  background:#fff;color:#39536c;font-size:20px;cursor:pointer;
}
.catalogue-quick-popover .catq-head button:hover{background:#e7f0fa;color:#163e66}
.catalogue-quick-popover .catq-results{display:grid;max-height:min(525px,65vh);overflow:auto;overscroll-behavior:contain}
.catalogue-quick-popover .catq-card{
  min-width:0; padding:13px 15px 14px;
  background:#fff;border-bottom:1px solid #e7edf4;
  transition:background .15s ease;
}
.catalogue-quick-popover .catq-card:last-child{border-bottom:0}
.catalogue-quick-popover .catq-card:hover,.catalogue-quick-popover .catq-card:focus-within{background:#f8fbff}
.catalogue-quick-popover .catq-main{
  display:grid;grid-template-columns:54px minmax(0,1fr) auto;
  align-items:center;gap:13px;min-width:0;
  color:#23374b;text-decoration:none;
}
.catalogue-quick-popover .catq-main:hover{color:#173b64}
.catalogue-quick-popover .catq-main img{
  width:54px;height:74px;object-fit:contain;border-radius:8px;
  background:#f2f6fc;border:1px solid #e1e9f2;
}
.catalogue-quick-popover .catq-copy{min-width:0;display:grid;gap:3px}
.catalogue-quick-popover .catq-game{
  width:max-content;max-width:100%;font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:.05em;color:#566e87;
}
.catalogue-quick-popover .catq-game.pokemon{color:#7258b5}
.catalogue-quick-popover .catq-game.yugioh{color:#b04c69}
.catalogue-quick-popover .catq-game.magic{color:#167c86}
.catalogue-quick-popover .catq-copy>b{
  font-size:14px;line-height:1.35;color:#183b56;font-weight:800;
  white-space:normal;overflow-wrap:anywhere;
}
.catalogue-quick-popover .catq-copy em{
  font-size:11px;line-height:1.4;color:#62788d;font-style:normal;
  white-space:normal;overflow-wrap:anywhere;
}
.catalogue-quick-popover .catq-copy strong{font-size:14px;line-height:1.35;color:#155eaa;margin-top:2px}
.catalogue-quick-popover .catq-owned{
  width:max-content;max-width:100%;font-style:normal;font-size:10px;
  font-weight:800;color:#0b765d;padding:4px 8px;
  border-radius:999px;background:#e8f8f0;border:1px solid #bae6d4;
}
.catalogue-quick-popover .catq-owned[hidden]{display:none!important}
.catalogue-quick-popover .catq-open{
  font-size:12px;font-weight:800;color:#2866a0;white-space:nowrap;
}
.catalogue-quick-popover .catq-main:hover .catq-open{text-decoration:underline}
.catalogue-quick-popover .catq-finishes{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 0 67px;
}
.catalogue-quick-popover .catq-finishes>span{
  font-size:10px;color:#63788d;font-weight:800;text-transform:uppercase;letter-spacing:.04em;
}
.catalogue-quick-popover .catq-finishes button{
  appearance:none;border:1px solid #ccdbea;background:#f3f7fc;color:#304e67;
  border-radius:999px;padding:7px 11px;font:inherit;font-size:11px;font-weight:800;
  line-height:1.2;cursor:pointer;transition:background .14s,border-color .14s,transform .14s;
}
.catalogue-quick-popover .catq-finishes button:hover:not(:disabled){
  background:#eaf2ff;color:#195daf;border-color:#91b8e9;transform:translateY(-1px);
}
.catalogue-quick-popover .catq-finishes button:disabled{cursor:wait;opacity:.8}
.catalogue-quick-popover .catq-finishes button.is-added{
  background:#e4f8ef;border-color:#9bd9bf;color:#096748;
}
.catalogue-quick-popover .catq-finishes button.is-error{
  background:#fff0f0;border-color:#e6afb5;color:#ab3145;
}
.catalogue-quick-popover .catq-foot{
  padding:11px 15px;background:#f8fbff;border-top:1px solid #dfeaf4;
  color:#61788d;font-size:10px;line-height:1.5;
}
.catalogue-quick-popover .catq-status{
  padding:24px 18px;text-align:center;color:#5c7084;font-size:13px;background:#fff;
}
.catalogue-quick-popover .catq-status.loading:before{content:'↻';display:inline-block;margin-right:7px}
.catalogue-quick-popover .catq-status.error{color:#a82f44}
.catalogue-quick-popover .catq-status.empty{color:#63768a}
.catalogue-quick-popover :is(a,button):focus-visible{
  outline:3px solid #2d76d3!important;outline-offset:3px;
}
/* Préserver le filtrage des impressions Pokémon. */
.cc-pokemon-language-filter{margin-top:12px;padding-top:12px;border-top:1px solid #dce5ef}
.cc-pokemon-language-filter .cc-language-filters{display:flex;gap:8px;flex-wrap:wrap}
.cc-pokemon-language-filter small{display:block;margin-top:7px;color:#667a8d;font-size:.76rem}
.cc-pokemon-language-filter .chip{min-width:58px;justify-content:center}
@media(max-width:650px){
  .cc-search-panel{z-index:80}
  .catalogue-quick-popover{z-index:999;max-height:min(55dvh,470px);border-radius:14px}
  .catalogue-quick-popover .catq-results{max-height:min(39dvh,345px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .catalogue-quick-popover .catq-card{padding:11px 12px 12px}
  .catalogue-quick-popover .catq-main{grid-template-columns:45px minmax(0,1fr);gap:10px}
  .catalogue-quick-popover .catq-main img{width:45px;height:63px}
  .catalogue-quick-popover .catq-open{display:none}
  .catalogue-quick-popover .catq-finishes{margin-left:55px;gap:5px}
  .catalogue-quick-popover .catq-finishes button{padding:7px 9px;font-size:10px}
  .catalogue-quick-popover .catq-head span{display:none}
  .catalogue-quick-popover .catq-foot{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .catalogue-quick-popover .catq-card,
  .catalogue-quick-popover .catq-finishes button{transition:none;transform:none!important}
}
