/* ==========================================================================
   P05 : RECHERCHE PHARMACIE — Loading card centrée (mobile)
   Préfixe : psrch-
   ========================================================================== */

.psrch-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  position: relative;
}

/* ---------- CARTE CENTRALE ---------- */

.psrch-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  width: 272px;
  animation: psrch-card-in 500ms var(--ease-out) both;
}

@keyframes psrch-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- LOGO + SPINNER ---------- */

.psrch-logo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psrch-spinner {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-primary-soft);
  border-top-color: var(--color-primary);
  animation: psrch-spin 1s linear infinite;
}

@keyframes psrch-spin {
  to { transform: rotate(360deg); }
}

.psrch-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

/* ---------- TEXTES ---------- */

.psrch-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-dark);
  text-align: center;
  animation: pat-fade-in 500ms var(--ease-out) 200ms both;
}

.psrch-sub {
  font-size: var(--fs-xs);
  color: var(--color-gray);
  text-align: center;
  line-height: 1.5;
  margin-top: -12px;
  animation: pat-fade-in 500ms var(--ease-out) 350ms both;
}

/* ---------- PROGRESS BAR ---------- */

.psrch-progress {
  width: 100%;
  height: 4px;
  background: var(--color-gray-lighter);
  border-radius: var(--radius-full);
  overflow: hidden;
  animation: pat-fade-in 500ms var(--ease-out) 500ms both;
}

.psrch-progress__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  animation: psrch-progress 2600ms var(--ease-out) 300ms forwards;
}

@keyframes psrch-progress {
  0%  { width: 0%; }
  40% { width: 55%; }
  80% { width: 82%; }
  100% { width: 100%; }
}

/* ---------- CHIPS RÉSULTATS (apparaissent en fin) ---------- */

.psrch-results-hint {
  position: absolute;
  bottom: var(--space-6);
  display: flex;
  gap: var(--space-2);
  opacity: 0;
  animation: pat-fade-in 500ms var(--ease-out) 2400ms forwards;
}

.psrch-result-chip {
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: var(--fs-xs);
  color: var(--color-primary-dark);
  font-weight: var(--fw-medium);
}
