/* ==========================================================================
   M05 : Enregistrement patient sans mobile
   Prefixe : npat-
   ========================================================================== */

.npat-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- INTRO ---------- */

.npat-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #E8F1FB;
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  font-size: 13px;
  color: #1A5DA0;
  flex-shrink: 0;
}

.npat-intro svg { flex-shrink: 0; color: #4A90E2; margin-top: 1px; }
.npat-intro strong { font-weight: 600; display: block; margin-bottom: 2px; }

/* ---------- BODY 2 COLONNES ---------- */

.npat-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ---------- FORMULAIRE ---------- */

.npat-form-card {
  background: #FFFFFF;
  border: 1px solid #E4E6E2;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.npat-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.npat-section__title {
  font-size: 10px;
  font-weight: 600;
  color: #9CA09A;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.npat-row {
  display: grid;
  gap: 10px;
}

.npat-row--2 {
  grid-template-columns: 1fr 1fr;
}

.npat-field .field__label {
  font-size: 12px;
}

.npat-textarea {
  height: auto;
  min-height: 56px;
  padding: 10px 14px;
  resize: vertical;
  line-height: 1.4;
  font-family: inherit;
}

.npat-field-input--filled {
  animation: npat-field-flash 900ms ease-out;
}

@keyframes npat-field-flash {
  0% { background: #E8F1FB; border-color: #4A90E2; }
  100% { background: #FFFFFF; border-color: #E4E6E2; }
}

/* ---------- EXTRACTION VOCALE ---------- */

.npat-voice-card {
  background: #FFFFFF;
  border: 1px solid #E4E6E2;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
}

.npat-voice-card__title {
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3A3E38;
}

.npat-voice-card__subtitle {
  font-size: 12px;
  color: #64695F;
  margin-top: 4px;
  line-height: 1.4;
}

.npat-voice-lines {
  max-height: 320px;
  min-height: 80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.npat-voice-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: npat-line-in 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes npat-line-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.npat-voice-line__role {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.npat-voice-line--assistant .npat-voice-line__role { color: #4A90E2; }
.npat-voice-line--patient .npat-voice-line__role { color: #2D8A4E; }

.npat-voice-line__text {
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 92%;
}

.npat-voice-line--assistant .npat-voice-line__text {
  background: #F8F9FA;
  color: #3A3E38;
}

.npat-voice-line--patient .npat-voice-line__text {
  background: #E3F4E8;
  color: #1F5C36;
}

.npat-voice-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #E3F4E8;
  color: #2D8A4E;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.npat-voice-note--hidden { display: none; }

.npat-voice-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.npat-voice-footer__hint {
  font-size: 12px;
  color: #9CA09A;
}

.npat-mic-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #4A90E2;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
  transition: background 250ms ease, box-shadow 250ms ease, transform 150ms ease;
}

.npat-mic-btn:hover {
  transform: scale(1.06);
}

.npat-mic-btn[data-mic-state="recording"] {
  background: #BB3A0A;
  box-shadow: 0 4px 12px rgba(187, 58, 10, 0.35);
}

.npat-mic-btn[data-mic-state="done"] {
  background: #2D8A4E;
  box-shadow: 0 4px 12px rgba(45, 138, 78, 0.3);
  cursor: default;
}

.npat-mic-btn__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #BB3A0A;
  opacity: 0;
  pointer-events: none;
}

.npat-mic-btn[data-mic-state="recording"] .npat-mic-btn__pulse {
  opacity: 0.4;
  animation: npat-mic-pulse 1.6s ease-out infinite;
}

@keyframes npat-mic-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- FOOTER ---------- */

.npat-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  background: #FFFFFF;
  border: 1px solid #E4E6E2;
  border-radius: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   ADAPTATION TABLETTE
   ========================================================================== */

.frame--tablet .npat-body {
  grid-template-columns: 1fr;
}

.frame--tablet .npat-row--2 {
  grid-template-columns: 1fr;
}

.frame--tablet .npat-voice-card {
  position: static;
}

.frame--tablet .npat-voice-lines {
  max-height: 260px;
}
