/* ===== BOUTON NAVBAR ⌘K ===== */
.nav-cmdk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #f7f7f5;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  cursor: pointer;
  color: #888;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.25s;
  white-space: nowrap;
}
.nav-cmdk:hover {
  background: #f0f0ec;
  color: #333;
  border-color: rgba(16,171,175,0.3);
}
.nav-cmdk svg { opacity: 0.5; }
.nav-cmdk-kbd {
  font-size: 9px;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 4px;
  color: #888;
  line-height: 1.2;
}

/* ===== MODAL RECHERCHE ⌘K ===== */
.cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 11vh;
}
.cmd-overlay.open {
  display: flex;
  animation: cmdOverlayIn 0.2s ease;
}
.cmd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cmd-container {
  position: relative;
  width: 580px;
  max-width: calc(100vw - 48px);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  animation: cmdModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-box {
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}
.cmd-input-area {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.cmd-input-area svg {
  color: #10ABAF;
  flex-shrink: 0;
}
.cmd-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: #1a1a2e;
  caret-color: #10ABAF;
}
.cmd-input::placeholder { color: #bbb; }
.cmd-esc {
  font-size: 9px;
  padding: 4px 8px;
  background: #f7f7f5;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1.2;
}
.cmd-results {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.cmd-results::-webkit-scrollbar { width: 4px; }
.cmd-results::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
}
.cmd-item:hover, .cmd-item.sel {
  background: rgba(16,171,175,0.04);
  border-left-color: #10ABAF;
}
.cmd-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #f7f7f5;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.05);
}
.cmd-item-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-item-title mark {
  background: rgba(16,171,175,0.15);
  color: #0d8e91;
  border-radius: 2px;
  padding: 0 2px;
}
.cmd-item-arrow {
  color: #ddd;
  flex-shrink: 0;
  transition: all 0.2s;
}
.cmd-item:hover .cmd-item-arrow {
  color: #10ABAF;
  transform: translateX(3px);
}
.cmd-empty {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.cmd-empty.vis { display: block; }

@keyframes cmdOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmdModalIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-cmdk { display: none; }
}
