/* ==========================================================================
   M03 — PROFIL ET PARAMÈTRES MÉDECIN
   ========================================================================== */

.prof-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- ONGLETS ---------- */

.prof-tabs {
  display: flex;
  gap: 4px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #E4E6E2;
  overflow-x: auto;
  flex-shrink: 0;
}

.prof-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 7px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #64695F;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.prof-tab:hover:not(.is-active) {
  background: #F2F2F2;
  color: #3A3E38;
}

.prof-tab.is-active {
  background: #E8F1FB;
  color: #1A5DA0;
  font-weight: 600;
}

.prof-tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- COVER PROFIL ---------- */

.prof-cover {
  background: linear-gradient(135deg, #F8F9FA 0%, #E8F1FB 100%);
  border-radius: 12px;
  border: 1px solid #E4E6E2;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.prof-cover__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.prof-cover__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prof-cover__avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4A90E2;
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.prof-cover__avatar-edit:hover {
  background: #3A7BC8;
  transform: scale(1.1);
}

.prof-cover__info {
  flex: 1;
  min-width: 0;
}

.prof-cover__name {
  font-family: 'Prompt', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #3A3E38;
  margin: 0 0 4px;
  line-height: 1.2;
}

.prof-cover__role {
  font-size: 13px;
  color: #64695F;
  margin-bottom: 10px;
}

.prof-cover__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- GRID ---------- */

.prof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prof-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.prof-field__label {
  font-size: 11px;
  color: #9CA09A;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  margin-bottom: 4px;
}

.prof-field__value {
  font-size: 13px;
  color: #3A3E38;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- QUALIFICATIONS ---------- */

.prof-quals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prof-qual {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: #F8F9FA;
  border-radius: 8px;
}

.prof-qual__badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #4A90E2;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.prof-qual__badge--cert {
  background: #2D8A4E;
}

.prof-qual__name {
  font-size: 13px;
  font-weight: 600;
  color: #3A3E38;
  margin-bottom: 2px;
}

.prof-qual__meta {
  font-size: 11px;
  color: #64695F;
}

/* ---------- SIGNATURE NUMÉRIQUE ---------- */

.prof-signature {
  max-width: 720px;
}

.prof-signature__preview {
  background: #FFFFFF;
  border: 2px dashed #C8CBC7;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-signature__preview svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.prof-signature__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background: #F8F9FA;
  border-radius: 10px;
  margin-bottom: 16px;
}

.prof-signature__meta-item {
  min-width: 0;
}

.prof-signature__meta-label {
  font-size: 11px;
  color: #9CA09A;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  margin-bottom: 3px;
}

.prof-signature__meta-value {
  font-size: 12px;
  color: #3A3E38;
  font-weight: 500;
  word-break: break-all;
}

.prof-signature__meta-value--mono {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #64695F;
}

.prof-signature__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.prof-signature__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #E3F4E8;
  border-radius: 8px;
  font-size: 12px;
  color: #2D8A4E;
  line-height: 1.5;
}

.prof-signature__note svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- HORAIRES ---------- */

.prof-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prof-hours > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F8F9FA;
  border-radius: 6px;
  font-size: 13px;
}

.prof-hours span {
  color: #64695F;
  font-weight: 500;
}

.prof-hours strong {
  color: #3A3E38;
  font-weight: 600;
}

/* ---------- SECURITY ---------- */

.prof-security {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prof-security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid #F2F2F2;
}

.prof-security-item:hover {
  background: #F8F9FA;
}

.prof-security-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #3A3E38;
}

.prof-security-item__meta {
  font-size: 12px;
  color: #64695F;
  margin-top: 2px;
}

/* ---------- PREFERENCES (switches) ---------- */

.prof-prefs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prof-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
}

.prof-pref-item:hover {
  background: #F8F9FA;
}

.prof-pref-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #3A3E38;
}

.prof-pref-item__meta {
  font-size: 12px;
  color: #64695F;
  margin-top: 2px;
}

.prof-switch {
  position: relative;
  width: 38px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

.prof-switch input {
  opacity: 0;
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.prof-switch span {
  position: absolute;
  inset: 0;
  background: #C8CBC7;
  border-radius: 9999px;
  transition: background 200ms ease;
}

.prof-switch span::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.prof-switch input:checked + span {
  background: #4A90E2;
}

.prof-switch input:checked + span::before {
  transform: translateX(16px);
}

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

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

.frame--tablet .prof-fields {
  grid-template-columns: 1fr;
}

.frame--tablet .prof-cover {
  flex-wrap: wrap;
}

.frame--tablet .prof-signature__meta {
  grid-template-columns: 1fr;
}
