/* ==========================================================================
   MarocPsy - Thème Médical Senior UX (Adopté fidèlement de maquette.htm)
   Palette apaisante, header pleine largeur sticky, navigation sous le pouce.
   ========================================================================== */
:root {
  --mp-turquoise: #18b0a0;
  --mp-turquoise-ink: #176e69;
  --mp-turquoise-soft: #edf9f7;
  --mp-primary: #1d4ed8;
  --mp-primary-dark: #1e3a8a;
  --mp-primary-light: #eff6ff;
  --mp-teal: #1a4787;
  --mp-teal-light: #f1f6fc;
  --mp-ink: #0f172a;
  --mp-ink-soft: #334155;
  --mp-muted: #64748b;
  --mp-line: #e2e8f0;
  --mp-line-strong: #cbd5e1;
  --mp-bg: #f8fafc;
  --mp-card-bg: #ffffff;
  --mp-radius: 14px;
  --mp-radius-sm: 8px;
  --mp-radius-md: 12px;
  --mp-radius-lg: 16px;
  --mp-radius-xl: 22px;
  --mp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --mp-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --mp-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);
  --mp-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --brand-accent: var(--mp-primary);
  --brand-accent-hover: var(--mp-primary-dark);
  --brand-primary: var(--mp-ink);
}

html, body {
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--mp-font);
  background-color: var(--mp-bg);
  color: var(--mp-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif; }
h1, h2, h3 { letter-spacing: -0.015em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
::selection { background: #cddbfb; }

/* ---------- 1. Bandeau Sécurité & Sortie Rapide (Mode Discret) ---------- */
.proto-banner {
  background: #1e293b;
  color: #94a3b8;
  padding: 8px 24px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  width: 100%;
}
.proto-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.proto-badge {
  background: #3b82f6;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
}
.proto-panic-btn {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.proto-panic-btn:hover { background: #b91c1c; }
.proto-register-btn {
  background: linear-gradient(135deg, var(--mp-primary), #2563eb);
  color: #ffffff !important;
  border: none;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
  white-space: nowrap;
}
.proto-register-btn:hover {
  background: var(--mp-primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
}

.proto-contact-link:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
.proto-contact-link.active {
  background: rgba(56, 189, 248, 0.22) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* ---------- Fil d'Ariane Simple Universel (Style Profils) ---------- */
.psy-breadcrumbs.psy-profile-breadcrumbs {
  max-width: 1120px;
  margin: 10px auto 18px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  font-size: 0.77rem !important;
  line-height: 1.5 !important;
  color: #6b7c86 !important;
  padding: 0 2px !important;
}

.psy-breadcrumbs.psy-profile-breadcrumbs a {
  color: #607481 !important;
  text-decoration: none !important;
  padding-block: 5px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
}

.psy-breadcrumbs.psy-profile-breadcrumbs a:hover {
  text-decoration: underline !important;
  color: #274064 !important;
}

.psy-breadcrumbs.psy-profile-breadcrumbs .psy-breadcrumb-current {
  color: #233e49 !important;
  font-weight: 650 !important;
}

.psy-breadcrumbs.psy-profile-breadcrumbs .psy-breadcrumb-divider {
  color: #a5b2b9 !important;
  font-size: 0.82rem !important;
}

@media (max-width: 680px) {
  .psy-breadcrumbs.psy-profile-breadcrumbs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    white-space: nowrap !important;
    gap: 7px !important;
    padding-bottom: 4px !important;
  }
  .psy-breadcrumbs.psy-profile-breadcrumbs > * {
    flex-shrink: 0 !important;
  }
  .psy-breadcrumbs.psy-profile-breadcrumbs .psy-breadcrumb-current {
    display: none !important;
  }
  .psy-breadcrumbs.psy-profile-breadcrumbs .psy-breadcrumb-divider:has(+ .psy-breadcrumb-current) {
    display: none !important;
  }
}

[dir="rtl"] .psy-breadcrumbs.psy-profile-breadcrumbs .psy-breadcrumb-divider {
  display: inline-block;
  transform: scaleX(-1);
}

/* ---------- 2. Header Principal Sticky Pleine Largeur ---------- */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--mp-line);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-logo-img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(32,90,170, 0.18));
  transition: transform 0.2s ease;
}
.brand-group:hover .brand-logo-img {
  transform: scale(1.05);
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.brand-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--mp-ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.brand-slogan {
  font-size: 0.67rem;
  font-style: italic;
  color: var(--mp-muted);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 1px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--mp-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Menu Navigation Desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-btn {
  padding: 5px 9px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--mp-ink-soft);
  font-size: 0.80rem;
  font-weight: 600;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.nav-btn i {
  font-size: 0.82rem;
}
.nav-caret {
  font-size: 0.68rem;
  margin-inline-start: 1px;
}
.nav-btn:hover, .nav-btn.active {
  color: var(--mp-primary);
  background: var(--mp-primary-light);
}
.nav-guide-btn {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}
.nav-guide-btn:hover {
  background: #fde68a !important;
  color: #78350f !important;
}
.nav-support-btn {
  background: rgba(24,176,160, 0.04) !important;
  color: #176e69 !important;
  border: 1px solid rgba(24,176,160, 0.3) !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
.nav-support-btn i {
  color: #176e69 !important;
}
.nav-support-btn:hover {
  background: rgba(24,176,160, 0.09) !important;
  border-color: rgba(24,176,160, 0.5) !important;
  color: #145d58 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(24,176,160, 0.2);
}
.psy-drawer-support-link {
  background: rgba(24,176,160, 0.04) !important;
  border: 1px solid rgba(24,176,160, 0.25) !important;
  border-radius: 10px;
}
.psy-drawer-support-link .psy-drawer-icon {
  background: rgba(24,176,160, 0.08) !important;
  color: #176e69 !important;
}
.psy-drawer-support-link .psy-drawer-text {
  color: #176e69 !important;
  font-weight: 650 !important;
}
.psy-drawer-support-link:hover {
  background: rgba(24,176,160, 0.08) !important;
}

/* Espace Praticien dans le menu mobile (Bleu nuit bouton Filtrer #3e5282) */
.psy-drawer-link.psy-drawer-pro-link {
  background: #3e5282 !important;
  color: #ffffff !important;
  border: 1px solid #3e5282 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(62, 82, 130, 0.22) !important;
  transition: all 0.2s ease !important;
  margin-top: 6px;
}
.psy-drawer-link.psy-drawer-pro-link:hover {
  background: #32436d !important;
  border-color: #32436d !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(62, 82, 130, 0.32) !important;
}
.psy-drawer-link.psy-drawer-pro-link .psy-drawer-icon {
  color: #ffffff !important;
}
.psy-drawer-link.psy-drawer-pro-link .psy-drawer-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.psy-drawer-link.psy-drawer-pro-link .psy-drawer-arrow {
  color: rgba(255, 255, 255, 0.75) !important;
}
.psy-drawer-link.psy-drawer-pro-link:hover .psy-drawer-arrow {
  color: #ffffff !important;
}

/* Dropdown Métiers & Rôles */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap:focus-within .nav-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--mp-line-strong);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  z-index: 100;
  transition: all 0.2s ease;
}
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--mp-ink);
  transition: background 0.15s;
}
.nav-dropdown-item:hover {
  background: var(--mp-primary-light);
}
.nav-dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--mp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.nav-dropdown-item:hover .nav-dropdown-icon {
  background: #dbeafe;
}
.nav-dropdown-info strong {
  display: block;
  font-size: 0.81rem;
  color: var(--mp-ink);
}
.nav-dropdown-info span {
  display: block;
  font-size: 0.72rem;
  color: var(--mp-muted);
  line-height: 1.3;
  margin-top: 1px;
}

/* Actions Droite Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-details-menu {
  display: inline-flex;
  align-items: center;
}
.lang-btn {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mp-line-strong) !important;
  padding: 6px 11px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  gap: 5px;
  vertical-align: middle;
}
.lang-btn i.fa-globe {
  font-size: 0.95rem;
  line-height: 1;
}
.lang-btn span {
  line-height: 1;
}
.lang-btn .lang-caret {
  font-size: 0.68rem;
  line-height: 1;
  margin-inline-start: 1px;
}
.lang-details-menu summary {
  list-style: none;
}
.lang-details-menu summary::-webkit-details-marker {
  display: none;
}
.lang-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--mp-line-strong);
  border-radius: 10px;
  padding: 6px;
  min-width: 150px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  z-index: 100;
}
.lang-dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--mp-ink);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s;
}
.lang-dropdown-link:hover, .lang-dropdown-link.active {
  background: var(--mp-primary-light);
  color: var(--mp-primary);
}
.lang-code {
  font-size: 0.72rem;
  color: var(--mp-muted);
  margin-inline-start: 4px;
}
.nav-register-btn {
  background: var(--mp-ink) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.nav-register-btn:hover {
  background: var(--mp-primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.mobile-burger-btn {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3fc;
  border: 1px solid var(--mp-line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  color: #3e5282;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.mobile-burger-btn:hover {
  background: var(--mp-primary-light);
  border-color: #93c5fd;
  color: var(--mp-primary);
}

/* Boutons Icônes Header Mobile (Accueil & Qui consulter) */
.mobile-nav-icon-btn {
  display: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.18s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 1;
}

.mobile-nav-btn-home {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.mobile-nav-btn-home:hover,
.mobile-nav-btn-home:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateY(-1px);
}

.mobile-nav-btn-quiz {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

.mobile-nav-btn-quiz i {
  color: #d97706;
  transition: color 0.18s ease;
}

.mobile-nav-btn-quiz:hover,
.mobile-nav-btn-quiz:focus-visible {
  background: #fde68a;
  border-color: #f59e0b;
  color: #78350f;
  transform: translateY(-1px);
}

.mobile-nav-btn-quiz:hover i,
.mobile-nav-btn-quiz:focus-visible i {
  color: #b45309;
}

.mobile-nav-btn-quiz.active {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

@media (max-width: 1200px) {
  .header-inner { padding: 6px 14px; gap: 10px; }
  .nav-links { gap: 2px; }
  .nav-btn { padding: 4px 6px; font-size: 0.74rem; gap: 4px; }
  .brand-sub { display: none; }
}

@media (max-width: 980px) {
  .nav-links { display: none !important; }
  .mobile-burger-btn { display: inline-flex !important; }
  .mobile-nav-icon-btn { display: inline-flex !important; }
  .proto-banner { font-size: 0.74rem; padding: 6px 12px; }
  .brand-sub { display: none; }
}

/* ---------- Hero & Triage Search Bar (Exactement maquette.htm) ---------- */
.triage-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--mp-bg) 100%);
  padding: 32px 24px 20px;
  border-bottom: 1px solid var(--mp-line);
}
.triage-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.triage-headline {
  text-align: center;
  margin-bottom: 24px;
}
.triage-headline h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--mp-ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.triage-headline p {
  font-size: 1.02rem;
  color: var(--mp-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Smart Search Unified Bar */
.smart-search-bar {
  background: #ffffff;
  border: 2px solid var(--mp-line-strong);
  border-radius: var(--mp-radius-xl);
  padding: 6px;
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1fr auto;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.smart-search-bar:focus-within {
  border-color: var(--mp-primary);
  box-shadow: 0 12px 36px rgba(29, 78, 216, 0.12);
}
.search-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--mp-radius-lg);
  transition: background 0.15s;
  position: relative;
}
.search-input-group:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--mp-line);
}
[dir="rtl"] .search-input-group:not(:last-child)::after {
  right: auto;
  left: 0;
}
.search-input-group i {
  color: var(--mp-primary);
  font-size: 1.1rem;
}
.search-input-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}
.search-input-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--mp-muted);
}
.search-input-field {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mp-ink);
  width: 100%;
  background: transparent;
}
.search-input-field::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.search-submit-btn {
  background: #3e5282;
  color: #ffffff;
  border: none;
  border-radius: var(--mp-radius-lg);
  padding: 0 28px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(62, 82, 130, 0.25);
}
.search-submit-btn:hover {
  background: #32436d;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(62, 82, 130, 0.35);
}

/* Autocomplete ville et géolocalisation dans smart search bar */
.psy-search-city-block {
  position: relative;
}
.psy-search-city-block .search-input-wrap {
  padding-right: 58px;
}
[dir="rtl"] .psy-search-city-block .search-input-wrap {
  padding-right: 0;
  padding-left: 58px;
}
.psy-city-actions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}
[dir="rtl"] .psy-city-actions {
  right: auto;
  left: 12px;
}
.psy-geo-btn, .psy-city-clear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.psy-geo-btn:hover {
  background: #e0f2fe;
  color: #0284c7;
}
.psy-city-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}
/* Suggestions ville & autocomplete */
.psy-city-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--mp-line-strong);
  border-radius: var(--mp-radius-lg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  z-index: 150;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}
.psy-city-suggestions-dropdown[hidden] {
  display: none !important;
}
.psy-city-suggestions-header {
  padding: 6px 8px;
  border-bottom: 1px solid var(--mp-line);
  margin-bottom: 4px;
}
.psy-city-option-all {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--mp-radius-sm);
  background: var(--mp-primary-light);
  color: var(--mp-primary);
  border: 1px solid rgba(29, 78, 216, 0.15);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.psy-city-option-all:hover {
  background: var(--mp-primary);
  color: #ffffff;
}
.psy-city-suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.psy-city-suggestion-item {
  padding: 9px 12px;
  border-radius: var(--mp-radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mp-ink);
  transition: background 0.12s, color 0.12s;
}
.psy-city-suggestion-item:hover, .psy-city-suggestion-item.is-active {
  background: var(--mp-primary-light);
  color: var(--mp-primary);
}
.psy-city-suggestion-names {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.psy-city-name-primary {
  font-weight: 700;
}
.psy-city-name-primary strong {
  color: var(--mp-primary);
}
.psy-city-name-secondary {
  font-size: 0.78rem;
  color: var(--mp-muted);
}
.psy-city-badge-major {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #f1f5f9;
  color: var(--mp-ink-soft);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--mp-line);
}
.psy-city-suggestion-item:hover .psy-city-badge-major,
.psy-city-suggestion-item.is-active .psy-city-badge-major {
  background: #dbeafe;
  color: var(--mp-primary);
  border-color: #bfdbfe;
}
.psy-city-empty-item {
  padding: 14px;
  text-align: center;
  color: var(--mp-muted);
  font-size: 0.88rem;
}

/* ---------- Format Dropdown Moderne ---------- */
.psy-format-dropdown-group {
  position: relative;
  cursor: pointer;
}
.psy-format-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mp-ink);
  cursor: pointer;
  text-align: start;
}
.psy-format-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.psy-format-caret {
  font-size: 0.75rem;
  color: var(--mp-muted);
  transition: transform 0.2s ease;
  margin-inline-start: 8px;
}
.psy-format-dropdown-group.is-open .psy-format-caret {
  transform: rotate(180deg);
}
.psy-format-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 290px;
  background: #ffffff;
  border: 1px solid var(--mp-line-strong);
  border-radius: var(--mp-radius-lg);
  padding: 6px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  z-index: 150;
}
.psy-format-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--mp-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--mp-ink);
}
.psy-format-option:hover {
  background: var(--mp-primary-light);
  color: var(--mp-primary);
}
.psy-format-opt-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--mp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.15s;
}
.psy-format-option:hover .psy-format-opt-icon,
.psy-format-option.is-active .psy-format-opt-icon {
  background: #dbeafe;
  color: var(--mp-primary);
}
.psy-format-opt-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.psy-format-opt-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: inherit;
}
.psy-format-opt-text span {
  font-size: 0.74rem;
  color: var(--mp-muted);
}
.psy-format-check {
  font-size: 0.85rem;
  color: var(--mp-primary);
  opacity: 0;
  transition: opacity 0.15s;
}
.psy-format-option.is-active .psy-format-check {
  opacity: 1;
}

/* Chips rapides de filtrage */
.quick-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip-label {
  font-size: 0.8rem;
  color: var(--mp-muted);
  font-weight: 700;
  margin-right: 4px;
}
.quick-chip {
  background: #ffffff;
  border: 1px solid var(--mp-line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mp-ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.quick-chip:hover {
  border-color: var(--mp-primary);
  color: var(--mp-primary);
  background: var(--mp-primary-light);
}
.quick-chip.is-active {
  background: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}
.quick-chip.is-active i { color: #ffffff !important; }

/* ---------- Quick Chips Dropdowns (Langues & Genre) ---------- */
.quick-chip-dropdown-wrap {
  position: relative;
  display: inline-flex;
}
.quick-chip-toggle {
  background: #ffffff;
  border: 1px solid var(--mp-line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mp-ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quick-chip-toggle:hover {
  border-color: var(--mp-primary);
  color: var(--mp-primary);
  background: var(--mp-primary-light);
}
.quick-chip-toggle.is-active {
  background: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}
.quick-chip-toggle.is-active i {
  color: #ffffff !important;
}
.chip-caret {
  font-size: 0.65rem;
  margin-inline-start: 4px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.quick-chip-dropdown-wrap.is-open .chip-caret {
  transform: rotate(180deg);
}
.quick-chip-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--mp-line-strong);
  border-radius: var(--mp-radius-md);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 6px;
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quick-chip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--mp-radius-sm);
  text-decoration: none;
  color: var(--mp-ink);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.quick-chip-item:hover {
  background: var(--mp-primary-light);
  color: var(--mp-primary);
}
.quick-chip-item.is-selected {
  background: #eff6ff;
  color: var(--mp-primary);
  font-weight: 700;
}
.quick-chip-item-icon {
  width: 22px;
  text-align: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.quick-chip-item-check {
  margin-inline-start: auto;
  font-size: 0.78rem;
  color: var(--mp-primary);
}
.quick-chip-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  margin-inline-start: 4px;
}

/* Conteneur principal calqué sur maquette.htm */
.app-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 24px;
}

/* Badge texte pour langues (aucun emoticon) */
.lang-flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 4px;
  background: #f1f5f9;
  color: var(--mp-ink-soft);
  border: 1px solid var(--mp-line-strong);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.lang-dropdown-link:hover .lang-flag-badge,
.lang-dropdown-link.active .lang-flag-badge,
.psy-drawer-lang-btn.active .lang-flag-badge {
  background: var(--mp-primary);
  color: #ffffff;
  border-color: var(--mp-primary);
}

/* ---------- Results header / toolbar ---------- */
.psy-results-heading{margin:18px 0 10px;font-size:.85rem;color:var(--mp-ink-soft);display:flex;justify-content:space-between;align-items:center;gap:10px}
.psy-results-heading>p{margin:0;min-width:0}
.psy-results-heading strong{
  display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:26px;padding:0 9px;margin-inline-end:8px;
  border-radius:7px;background:#eef2f6;color:#526580;border:0;font-size:.83rem;font-weight:650;
}
.psy-favorites-link{display:inline-flex;align-items:center;gap:6px;min-height:40px;box-sizing:border-box;flex-shrink:0;padding:7px 11px;border-radius:8px;background:#fff;border:1px solid #e2e8f0;color:#526174;font-weight:500;font-size:.8rem;box-shadow:none;text-decoration:none;transition:all .2s ease}
.psy-favorites-link i{color:#3e5282;font-size:.88rem}
.psy-favorites-link:hover{border-color:#3e5282;color:#3e5282;background:rgba(62,82,130,.04);transform:translateY(-1px);box-shadow:0 2px 6px rgba(62,82,130,.12)}
.psy-toolbar-sharp{
  display:block;padding:0;
  border:1px solid #e2e8f0;border-radius:10px;
  box-shadow:none;margin-bottom:16px;overflow:hidden;background:#fff;transition:border-color .2s ease;
}
.psy-toolbar-sharp:hover{border-color:#cbd5e1}
.psy-toolbar-sharp>summary{padding:10px 14px;min-height:48px;box-sizing:border-box;font-size:.88rem;font-weight:600;color:#334155;list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;user-select:none;background:#fff;transition:background .15s ease}
.psy-toolbar-sharp>summary::-webkit-details-marker{display:none}
.psy-toolbar-sharp>summary:hover{background:#f8fafc}
.psy-toolbar-sharp>summary::before{
  content:"\f1de";font-family:"Font Awesome 6 Free";font-weight:900;
  width:28px;height:28px;display:inline-grid;place-items:center;border-radius:7px;
  background:#f1f5f9;color:#64748b;font-size:.8rem;
}
.psy-toolbar-sharp>summary::after{
  content:"\f078";font-family:"Font Awesome 6 Free";font-weight:900;margin-inline-start:auto;
  font-size:.8rem;color:#94a3b8;transition:transform .2s ease;
}
.psy-toolbar-sharp[open]>summary{border-bottom:1px solid #f1f5f9}
.psy-toolbar-sharp[open]>summary::after{transform:rotate(180deg)}
.app-container>.psy-toolbar-sharp{margin-bottom:0;border-color:#dce5ed}
.app-container>.psy-toolbar-sharp>summary{background:#eef3f7}
.app-container>.psy-toolbar-sharp>summary:hover{background:#e7eef4}
.app-container>.psy-toolbar-sharp+.psy-results-heading{margin:10px 0 14px!important}
.psy-favorites-label-short{display:none}
@media(max-width:540px){.psy-favorites-label-full{display:none}.psy-favorites-label-short{display:inline}.app-container>.psy-results-heading{font-size:.78rem;gap:6px}.app-container>.psy-results-heading .psy-favorites-link{font-size:.78rem;padding:7px 9px;min-height:44px}.app-container>.psy-results-heading strong{margin-inline-end:4px}}
.psy-toolbar-main-row{padding:16px 20px 10px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.psy-toolbar-right-controls{display:flex;align-items:center;gap:10px}
.psy-btn-sharp-reset{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;background:#fef2f2;border:1px solid #fecaca;color:#dc2626;font-size:.82rem;font-weight:650;text-decoration:none;transition:all .2s ease}
.psy-btn-sharp-reset:hover{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}
.psy-filter-tabs-sharp{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.psy-tab-sharp{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px!important;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:.88rem;font-weight:650;text-decoration:none;transition:all .2s ease}
.psy-tab-sharp i{font-size:.85rem;color:#64748b;transition:color .15s ease}
.psy-tab-count{background:#e2e8f0;color:#475569;font-size:.74rem;font-weight:750;padding:2px 8px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;line-height:1.2}
.psy-tab-sharp:hover{background:#f1f5f9;border-color:#cbd5e1;color:#1e293b;transform:translateY(-1px)}
.psy-tab-sharp:hover i{color:#3e5282}
.psy-tab-sharp.active{background:#3e5282!important;border-color:#3e5282!important;color:#ffffff!important;box-shadow:0 3px 10px rgba(62,82,130,.28)}
.psy-tab-sharp.active i{color:#ffffff!important}
.psy-tab-sharp.active .psy-tab-count{background:rgba(255,255,255,.25)!important;color:#ffffff!important}
.psy-reasons-row{padding:12px 20px 16px;border-top:1px solid #f1f5f9;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.psy-reasons-label{font-size:.82rem;font-weight:750;color:#64748b;text-transform:uppercase;letter-spacing:.04em;display:inline-flex;align-items:center;gap:6px;margin-inline-end:4px}
.psy-reasons-label i{color:#205aaa;font-size:.82rem}
.psy-reason-chip{padding:7px 15px;border-radius:999px!important;background:#ffffff;border:1px solid #e2e8f0;color:#334155;font-size:.84rem;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.psy-reason-chip:hover{background:rgba(32,90,170,.08);border-color:rgba(32,90,170,.35);color:#153a6d;transform:translateY(-1px);box-shadow:0 2px 6px rgba(32,90,170,.12)}
.psy-reason-chip.active{background:#205aaa!important;border-color:#205aaa!important;color:#ffffff!important;font-weight:700;box-shadow:0 2px 8px rgba(32,90,170,.3)}
.psy-active-filters span{border-radius:999px;padding:5px 12px;font-weight:600}

/* ---------- Practitioner cards ---------- */
.psy-grid-2col{gap:18px}
.psy-directory-card{
  position:relative;
  background:#ffffff;
  border:1px solid #e2e8f0!important;
  border-radius:14px!important;
  box-shadow:0 1px 3px rgba(15,23,42,.04),0 4px 12px -2px rgba(15,23,42,.03);
  padding:22px 20px 18px;
  transition:transform .22s cubic-bezier(0.16,1,0.3,1),box-shadow .22s cubic-bezier(0.16,1,0.3,1),border-color .2s ease;
}
.psy-directory-card:hover{
  transform:translateY(-2px);
  border-color:#cbd5e1!important;
  box-shadow:0 10px 24px -4px rgba(15,23,42,.07),0 4px 10px -2px rgba(15,23,42,.03);
}
.psy-compact-photo{
  flex:0 0 74px;width:74px;height:74px;border-radius:50%;
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  color:#1d4ed8;
  box-shadow:0 0 0 3px #ffffff,0 0 0 4.5px #e2e8f0;
  transition:box-shadow .25s ease;
  overflow:hidden;
}
.psy-directory-card:hover .psy-compact-photo{
  box-shadow:0 0 0 3px #ffffff,0 0 0 4.5px #93c5fd;
}
.psy-compact-photo img{
  width:100%;height:100%;object-fit:cover;object-position:center 20%;
  transition:transform .3s cubic-bezier(0.16,1,0.3,1);
}
.psy-directory-card:hover .psy-compact-photo img{
  transform:scale(1.04);
}
.psy-compact-identity h2{font-size:1.12rem;font-weight:750;margin-bottom:3px}
.psy-compact-identity h2 a{color:var(--mp-ink)}
.psy-compact-identity h2 a:hover{color:var(--mp-primary)}
.psy-compact-identity p:first-of-type{color:var(--mp-primary-dark);font-weight:600}
.psy-compact-identity p.psy-muted{display:inline-flex;align-items:center;gap:6px}
.psy-compact-identity p.psy-muted::before{
  content:"\f3c5";font-family:"Font Awesome 6 Free";font-weight:900;font-size:.75rem;color:var(--mp-muted);
}
.psy-compact-meta{gap:6px;color:var(--mp-ink-soft)}
.psy-compact-meta span{display:flex;align-items:baseline;gap:8px}
.psy-compact-meta span:nth-of-type(1)::before,.psy-compact-meta span:nth-of-type(2)::before{
  font-family:"Font Awesome 6 Free";font-weight:900;font-size:.75rem;color:#9aa8bd;width:14px;flex-shrink:0;text-align:center;
}
.psy-compact-meta span:nth-of-type(1)::before{content:"\f1ab"}
.psy-compact-meta span:nth-of-type(2)::before{content:"\f500"}
.psy-badge-sharp{border-radius:999px!important;padding:4px 10px;font-weight:650;display:inline-flex;align-items:center;gap:5px}
.psy-badge-cabinet{background:#f3f5f9;border-color:#e3e8f1;color:var(--mp-ink-soft)}
.psy-badge-cabinet::before{content:"\f0f8";font-family:"Font Awesome 6 Free";font-weight:900;font-size:.68rem}
.psy-badge-teleconsult{background:var(--mp-teal-soft);border-color:rgba(25,70,133,.22);color:var(--mp-teal)}
.psy-badge-teleconsult::before{content:"\f03d";font-family:"Font Awesome 6 Free";font-weight:900;font-size:.68rem}
.psy-compact-actions{
  border-top:1px solid #f1f5f9;
  padding-top:14px;
  gap:8px;
  display:flex!important;
  align-items:center!important;
}
.psy-compact-actions>a,
.psy-compact-actions>button{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  box-sizing:border-box!important;
}
.psy-action-btn{
  font-weight:700;
  white-space:nowrap!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 16px!important;
  border-radius:10px!important;
  font-size:.88rem!important;
  line-height:1!important;
  transition:transform .15s ease,box-shadow .15s ease,background .15s;
}
.psy-btn-profile{
  background:#3e5282!important;
  color:#ffffff!important;
  white-space:nowrap!important;
  box-shadow:0 2px 6px rgba(62,82,130,.2)!important;
}
.psy-btn-profile:hover{
  background:#32436d!important;
  color:#ffffff!important;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(62,82,130,.3)!important;
}
.psy-btn-preview{
  background:#f8fafc!important;
  color:#1e293b!important;
  border:1px solid #cbd5e1!important;
  white-space:nowrap!important;
  border-radius:10px!important;
}
.psy-btn-preview:hover{
  background:#e2e8f0!important;
  border-color:#94a3b8!important;
}
.psy-icon-btn{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid var(--mp-line);
  background:#fff;
  transition:all .15s;
  padding:0!important;
  box-sizing:border-box!important;
}
.psy-icon-btn:hover{border-color:var(--mp-primary);color:var(--mp-primary);background:var(--mp-primary-soft)}
.psy-compact-heading .psy-icon-btn{border-color:transparent}
.psy-icon-btn.is-saved{border-color:transparent}

/* ---------- Empty state ---------- */
.psy-empty-state{border:1px dashed var(--mp-line-strong);border-radius:var(--mp-radius);box-shadow:none}

/* ---------- Portal sections ---------- */
.psy-portal-sections{border-top:0;margin-top:48px;padding-top:0}
.psy-portal-sections-grid{gap:18px}
.psy-portal-block{
  background:var(--mp-surface);border:1px solid var(--mp-line);
  border-radius:var(--mp-radius);padding:24px;box-shadow:var(--mp-shadow-sm);
}
.psy-portal-block h2{display:flex;align-items:center;gap:10px;font-size:1.05rem;font-weight:750;color:var(--mp-ink)}
.psy-portal-block h2::before{
  font-family:"Font Awesome 6 Free";font-weight:900;font-size:.85rem;
  width:32px;height:32px;display:inline-grid;place-items:center;border-radius:9px;
  background:var(--mp-primary-soft);color:var(--mp-primary);content:"\f3c5";
}
#specialites.psy-portal-block h2::before{content:"\f5dc";background:var(--mp-teal-soft);color:var(--mp-teal)}
#guide.psy-portal-block h2::before{content:"\f0eb";background:#fff4e0;color:#b76e00}
.psy-portal-links-grid{gap:8px}
.psy-portal-link{border-radius:10px;border-color:var(--mp-line);font-size:.88rem;color:var(--mp-ink-soft)}
.psy-portal-link:hover{border-color:var(--mp-primary);color:var(--mp-primary);background:var(--mp-primary-soft)}
.psy-portal-link i{color:#9aa8bd;transition:transform .15s,color .15s}
.psy-portal-link:hover i{color:var(--mp-primary);transform:translateX(3px)}
#guide p{line-height:1.7}

/* ---------- Profile page / modals ---------- */
.psy-profile-main,.psy-profile-panel{border-color:var(--mp-line);border-radius:var(--mp-radius);box-shadow:var(--mp-shadow-sm)}
.psy-profile-main .psy-compact-photo{width:112px;height:112px;flex-basis:112px;border-radius:50%}
.psy-request-dialog,.psy-modal-container,.psy-modal-dialog{border-radius:20px!important}
.psy-input-sharp,.psy-form-input,.psy-form-select,.psy-form-textarea{border-radius:10px!important;border-color:var(--mp-line-strong)}
.psy-input-sharp:focus,.psy-form-input:focus,.psy-form-select:focus,.psy-form-textarea:focus{
  border-color:var(--mp-primary)!important;box-shadow:0 0 0 4px rgba(43,89,195,.12);outline:none;
}

/* ---------- Catalog pages (spécialités / compétences / techniques / inscription) ---------- */
.psy-specialties-hero,.psy-competences-hero,.psy-techniques-hero,.psy-reg-hero{
  border-radius:24px!important;border:1px solid var(--mp-line)!important;box-shadow:var(--mp-shadow-sm);
}
.psy-pole-card,.psy-subspecialty-card,.psy-comp-pole-card,.psy-tech-pole-card,.psy-competence-card,.psy-technique-card,.psy-reg-card{
  border-radius:var(--mp-radius)!important;border-color:var(--mp-line)!important;box-shadow:var(--mp-shadow-sm);
}
.psy-pole-tab-btn,.psy-comp-pole-btn,.psy-tech-pole-btn{border-radius:999px!important}

/* ---------- Footer Minimaliste & Épuré (Couleur Topline #1e293b) ---------- */
.psy-footer-rich {
  margin-top: 36px;
  padding: 24px 0 0;
  text-align: start;
  background: #1e293b;
  color: #94a3b8;
  border-top: 1px solid #334155;
  font-size: 0.84rem;
}
.psy-footer-rich .container {
  padding-top: 0;
  padding-bottom: 0;
}
.psy-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 16px;
}
.psy-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-logo-footer {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.footer-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}
.footer-brand-slogan {
  font-size: 0.68rem;
  font-style: italic;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
}
.psy-footer-brand p,
.psy-footer-desc {
  margin: 6px 0 10px;
  max-width: 300px;
  line-height: 1.4;
  font-size: 0.78rem;
  color: #94a3b8;
}
.psy-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.76rem;
  transition: all 0.15s ease;
}
.psy-footer-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: #ffffff;
}
.psy-footer-col h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin: 0 0 10px;
  font-weight: 700;
}
[dir="rtl"] .psy-footer-col h2 {
  letter-spacing: 0;
}
.psy-footer-col ul,
.psy-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.psy-footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.81rem;
  transition: color 0.15s ease;
}
.psy-footer-col a:hover {
  color: #ffffff;
}

/* Espace Partenaires */
.psy-footer-partners {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.psy-partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.psy-partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.74rem;
  color: #cbd5e1;
  font-weight: 500;
}
.psy-partner-pill i {
  color: #60a5fa;
  font-size: 0.72rem;
}
.psy-partner-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s ease;
}
.psy-partner-cta-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* ==========================================================================
   Bandeau d'urgence & Ecoute psychologique au Maroc (Differencie du footer)
   ========================================================================== */
.psy-emergency-strip {
  margin-top: 36px;
  margin-bottom: 0 !important;
  background: #f5f8fa;
  border-top: 1px solid #e4cfd2;
  border-bottom: 1px solid #dfe6eb;
  box-shadow: none;
  color: #334155;
  position: relative;
  z-index: 10;
}
.psy-emergency-strip + .psy-footer-rich {
  margin-top: 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
}
.psy-emergency-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 16px 14px;
}
.psy-emergency-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.psy-emergency-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.psy-emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9f414b;
  background: #fff0f1;
  border: 1px solid #f0dadd;
  padding: 4px 11px;
  border-radius: 6px;
  white-space: normal;
  box-shadow: none;
}
[dir="rtl"] .psy-emergency-badge {
  letter-spacing: 0;
}
.psy-emergency-desc {
  font-size: 0.8rem;
  color: #526174;
  margin: 0;
  line-height: 1.45;
  font-weight: 500;
}

/* 1. Grille prioritaire des 7 numéros d'urgence */
.psy-emergency-chips {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.psy-emergency-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #dfe6eb;
  border-inline-start: 2px solid #d9a2aa;
  text-decoration: none;
  color: #334155;
  transition: all 0.16s ease;
  min-width: 0;
}
.psy-emergency-chip:hover {
  background: #fff8f8;
  border-color: #d9a2aa;
  color: #334155;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(51, 65, 85, 0.06);
}
.psy-emergency-num {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
  font-size: 0.98rem;
  color: #9f414b;
  background: #fff4f4;
  border: 1px solid #f1dfe2;
  padding: 2px 7px;
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.psy-emergency-num i {
  font-size: 0.72rem;
  color: #b45d68;
}
.psy-emergency-chip.psy-emergency-featured {
  background: #f1f5fa;
  border-color: #d0dae7;
  border-inline-start: 2px solid #8299b9;
}
.psy-emergency-chip.psy-emergency-featured .psy-emergency-num {
  background: #e6ecf5;
  border-color: #ced8e7;
  color: #21406c;
}
.psy-emergency-chip.psy-emergency-featured .psy-emergency-num i {
  color: #33537f;
}
.psy-emergency-text {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
  min-width: 0;
  width: 100%;
}
.psy-emergency-text strong {
  font-size: 0.78rem;
  color: #334155;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.psy-emergency-text small {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Sous-barre secondaire (Prendre de l'air, Associations & Centres, Sortie rapide) qui vient après */
.psy-emergency-subbar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.psy-emergency-sublabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #526174;
}
.psy-emergency-sublabel i {
  color: #3583a5;
}
.psy-emergency-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.psy-emergency-sublink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #334155;
  border: 1px solid #dbe5ec;
  background: #ffffff;
  transition: all 0.16s ease;
}
.psy-emergency-sublink .psy-emergency-text {
  width: auto;
}
.psy-emergency-sublink .psy-emergency-text strong {
  font-size: 0.74rem;
}
.psy-emergency-sublink .psy-emergency-text small {
  font-size: 0.64rem;
  color: #64748b;
}
.psy-emergency-calm {
  background: #edf7fc;
  border-color: #d1e8f2;
}
.psy-emergency-calm:hover {
  background: #e2f2fa;
  border-color: #abd5e7;
  color: #245b74;
}
.psy-emergency-calm .psy-emergency-icon {
  color: #507cba;
}
.psy-emergency-directory {
  background: #f0f5fc;
  border-color: #d9e4f4;
}
.psy-emergency-directory:hover {
  background: #e7effa;
  border-color: #b5cceb;
  color: #345c91;
}
.psy-emergency-exit {
  background: #fffaef;
  border-color: #eee2c4;
}
.psy-emergency-exit:hover {
  background: #fff3d9;
  border-color: #e3ce9b;
  color: #805c20;
}
.psy-emergency-exit .psy-emergency-icon {
  color: #977122;
}
.psy-emergency-icon {
  color: #60a5fa;
  font-size: 0.88rem;
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .psy-emergency-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Reduction des marges en mobile */
@media (max-width: 768px) {
  .psy-emergency-container {
    padding: 12px 10px 12px !important;
  }
  .psy-emergency-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .psy-emergency-chip {
    padding: 7px 9px;
  }
  .psy-emergency-num {
    font-size: 0.88rem;
  }
  .psy-emergency-subbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .psy-emergency-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
  }
}

/* Villes en une seule ligne avec séparateurs verticaux */
.psy-footer-cities-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 10px 0;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  margin: 10px 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
.psy-cities-label {
  font-weight: 700;
  color: #cbd5e1;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-inline-end: 4px;
}
.psy-cities-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.psy-cities-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}
.psy-cities-nav a:hover {
  color: #ffffff;
}
.psy-v-sep {
  color: #475569;
  font-weight: 300;
  font-size: 0.75rem;
  user-select: none;
  opacity: 0.7;
}
.psy-footer-more-cities {
  font-weight: 600;
  color: #60a5fa !important;
}
.psy-footer-more-cities:hover {
  color: #93c5fd !important;
  text-decoration: underline;
}

/* Pied légal */
.psy-footer-bottom {
  padding: 6px 0 16px;
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.psy-footer-bottom strong,
.psy-footer-copy strong {
  color: #f1f5f9;
}
.psy-footer-copy {
  margin: 0;
  font-size: 0.78rem;
}
.psy-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}
.psy-footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.psy-footer-legal-links a:hover {
  color: #ffffff;
}
.psy-footer-sep {
  opacity: 0.4;
  color: #64748b;
}

/* ---------- Responsive Optimizations (Mobile-first improvements) ---------- */
@media(max-width:900px){
  .psy-footer-grid{grid-template-columns:1fr 1fr;gap:20px}
  .psy-footer-brand{grid-column:1/-1}
}
@media(max-width:600px){
  .psy-footer-rich{margin-top:24px;padding-top:18px}
  .psy-footer-grid{grid-template-columns:1fr;gap:16px;padding-bottom:12px}
  .psy-footer-cities-strip{padding:8px 0;gap:4px 6px}
  .psy-footer-bottom{flex-direction:column;align-items:flex-start;gap:8px;padding:6px 0 14px}
}

/* 1. Smart Search Bar Responsive (Sur mobile & tablette) */
@media (max-width: 880px) {
  .smart-search-bar {
    grid-template-columns: 1fr !important;
    gap: 6px;
    padding: 6px;
    border-radius: var(--mp-radius-lg);
  }
  .search-input-group {
    padding: 8px 12px;
  }
  .search-input-group:not(:last-child)::after {
    display: none !important;
  }
  .search-input-group:not(:last-child) {
    border-bottom: 1px solid var(--mp-line);
  }
  .search-submit-btn {
    width: 100%;
    min-height: 46px;
    padding: 12px;
    font-size: 1rem;
    border-radius: var(--mp-radius-md);
  }
}

/* 2. Allégement des marges gauche/droite pour donner un maximum d'espace au contenu (Tablettes et Mobiles <= 768px) */
@media (max-width: 768px) {
  .app-container {
    padding: 16px 12px !important;
  }
  .triage-hero {
    padding: 22px 12px 16px !important;
  }
  .header-inner {
    padding: 10px 12px !important;
  }
  .container {
    padding: 14px 12px !important;
  }
  .proto-banner {
    padding: 6px 12px !important;
    font-size: 0.74rem;
  }
  .proto-register-btn {
    padding: 4px 8px !important;
    gap: 0 !important;
    justify-content: center !important;
    min-width: 28px !important;
  }
  .proto-register-btn .proto-register-text {
    display: none !important;
  }
  .psy-hero-simple {
    padding: 20px 12px 18px !important;
  }
  .psy-directory-card {
    padding: 14px 12px !important;
  }
  .psy-results-heading {
    margin: 16px 0 10px !important;
    font-size: 0.88rem;
  }
  .psy-profile-container {
    padding: 0 12px !important;
  }
  .psy-profile-main, .psy-profile-panel {
    padding: 16px 12px !important;
  }
  .catalog-container {
    padding: 16px 12px !important;
  }
  .quiz-container {
    padding: 16px 12px !important;
  }
  .psy-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 360px) {
  .proto-banner-left { display: none; }
  .proto-banner-right { width: 100%; justify-content: space-between; }
}

/* 3. Optimisation ciblée Smartphones (<= 540px) : Espaces ultra-optimisés et ergonomie tactile */
@media (max-width: 540px) {
  .app-container {
    padding: 14px 12px !important;
  }
  .triage-hero {
    padding: 18px 8px 14px !important;
  }
  .header-inner {
    padding: 8px 8px !important;
  }
  .header-actions {
    gap: 6px !important;
  }
  .mobile-nav-icon-btn {
    width: 35px;
    height: 35px;
    min-width: 35px;
    font-size: 0.95rem;
  }
  .brand-group {
    gap: 8px;
  }
  .brand-logo-img {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-slogan {
    font-size: 0.7rem;
  }
  .proto-banner {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
  }
  .proto-banner-left {
    gap: 6px;
    min-width: 0;
    flex: 1;
  }
  .proto-banner-right { min-width: 0; flex-shrink: 0; }
  .proto-badge { flex-shrink: 0; }
  .proto-banner-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;
  }
  .proto-register-btn {
    padding: 4px 8px !important;
    font-size: 0.76rem !important;
    gap: 0 !important;
    justify-content: center !important;
    min-width: 28px !important;
  }
  .container {
    padding: 12px 12px !important;
  }
  .psy-hero-eyebrow {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }
  .psy-hero-headline, .triage-headline h1 {
    font-size: 1.45rem !important;
  }
  .triage-headline p {
    font-size: 0.88rem;
  }
  .psy-hero-popular {
    gap: 6px;
    font-size: 0.8rem;
  }
  
  /* Cartes praticiens compactes et aérées */
  .psy-directory-card {
    padding: 12px 10px !important;
    gap: 10px !important;
    border-radius: var(--mp-radius-lg) !important;
  }
  .psy-compact-heading {
    gap: 10px !important;
  }
  .psy-compact-photo {
    width: 58px !important;
    height: 66px !important;
    flex-basis: 58px !important;
  }
  .psy-compact-identity h2 {
    font-size: 1.02rem !important;
  }
  .psy-compact-identity p {
    font-size: 0.82rem;
  }

  /* Actions de carte disposées pour le pouce et sans débordement */
  .psy-compact-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 6px !important;
    padding-top: 10px !important;
  }
  .psy-compact-actions > a.psy-btn-profile {
    flex: 1 1 100% !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 0.92rem !important;
    justify-content: center !important;
  }
  .psy-compact-actions > button.psy-btn-preview {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 0.84rem !important;
    padding: 0 10px !important;
    justify-content: center !important;
  }
  .psy-compact-actions > .psy-icon-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
  }

  /* Fiche praticien détaillée */
  .psy-profile-main, .psy-profile-panel {
    padding: 14px 10px !important;
  }
  .psy-profile-actions-bar {
    gap: 8px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
  }
  .psy-profile-actions-bar .psy-action-book {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }
  .psy-profile-actions-bar .psy-action-wa,
  .psy-profile-actions-bar .psy-action-call {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-height: 42px !important;
  }
  .psy-profile-billing-panel {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .psy-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .psy-footer-rich {
    margin-top: 32px;
    padding-top: 28px;
  }
}

@media (max-width: 380px) {
  .header-actions {
    gap: 4px !important;
  }
  .mobile-nav-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.88rem;
    border-radius: 6px;
  }
  .mobile-burger-btn {
    height: 32px;
    min-height: 32px;
    padding: 6px 8px !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
  }
  .lang-btn {
    height: 32px;
    min-height: 32px;
    padding: 4px 6px !important;
    font-size: 0.74rem !important;
    border-radius: 6px !important;
  }
}
@media(hover:none){.psy-directory-card:hover{transform:none}}

/* ---------- WhatsApp Card Icon & Visitor Contact Modal ---------- */
.psy-btn-card-wa {
  background: #eaf0f8 !important;
  color: #194685 !important;
  border-color: #c6d5eb !important;
  font-size: 1.15rem !important;
  transition: all .2s ease !important;
}
.psy-btn-card-wa:hover {
  background: #286ed0 !important;
  color: #ffffff !important;
  border-color: #286ed0 !important;
  box-shadow: 0 4px 14px rgba(40,110,208, 0.35) !important;
  transform: translateY(-2px);
}
.psy-visitor-modal-box {
  max-width: 500px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}
.psy-visitor-modal-box .psy-request-header {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--mp-line);
}
.psy-visitor-head-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.psy-visitor-head-avatar {
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  font-size: 1.05rem !important;
}
.psy-visitor-head-text h2 {
  font-size: 1.08rem;
  margin: 0 0 2px;
  color: var(--mp-ink);
  line-height: 1.25;
}
.psy-visitor-modal-body {
  padding: 20px;
}
.psy-visitor-badge-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #f0f6ff;
  border: 1px solid #d4e2fa;
  border-radius: 12px;
  margin-bottom: 18px;
}
.psy-visitor-badge-alert i {
  color: var(--mp-primary);
  font-size: 1.25rem;
  margin-top: 2px;
}
.psy-visitor-badge-alert strong {
  display: block;
  font-size: 0.94rem;
  color: var(--mp-primary-dark);
  margin-bottom: 2px;
}
.psy-visitor-badge-alert p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mp-ink-soft);
  line-height: 1.4;
}
.psy-visitor-trust-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--mp-muted);
  margin-top: 14px;
  margin-bottom: 0;
  line-height: 1.4;
}
.psy-unlocked-card {
  background: #f1f6fc;
  border: 1px solid #bfd5f3;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.psy-unlocked-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.psy-unlocked-check-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2566c2;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.psy-contact-actions-list {
  display: grid;
  gap: 12px;
}
.psy-contact-action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  text-decoration: none;
  min-height: 56px;
  transition: transform .15s ease, box-shadow .15s ease !important;
}
.psy-contact-action-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow-md);
}
.psy-contact-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}
.psy-contact-item-text {
  flex: 1;
  text-align: start;
}
.psy-contact-item-text strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}
.psy-contact-item-text span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}
.psy-contact-item-arrow {
  font-size: 0.9rem;
  opacity: 0.8;
}
[dir="rtl"] .psy-contact-item-arrow {
  transform: scaleX(-1);
}
.psy-contact-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.psy-contact-secondary-grid > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  font-size: 0.86rem;
  border-radius: 10px;
  text-decoration: none;
}
.psy-visitor-edit-footer {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--mp-line);
}
.psy-visitor-edit-link {
  background: none;
  border: none;
  color: var(--mp-muted);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .15s;
}
.psy-visitor-edit-link:hover {
  color: var(--mp-primary);
  background: var(--mp-primary-soft);
}


/* Mobile filters: align controls and keep every panel inside its search area. */
@media (max-width: 880px) {
  .quick-chips-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-inline:8px; text-align:start; }
  .quick-chips-row>.chip-label { display:none; }
  .quick-chips-row .quick-chip { width:100%; min-width:0; min-height:44px; box-sizing:border-box; border-radius:12px; padding:8px 10px; justify-content:center; font-size:.78rem; line-height:1.4; text-align:start; }
  .quick-chip-dropdown-wrap { min-width:0; }
  .quick-chip-toggle>span { min-width:0; overflow-wrap:anywhere; }
  .quick-chip-toggle .chip-caret { margin-inline-start:auto; flex-shrink:0; }
  .quick-chips-row>.quick-chip-quiz { grid-column:1/-1; }
  .quick-chip-menu { min-width:0; width:calc(200% + 8px); max-width:calc(100vw - 24px); box-sizing:border-box; max-height:min(360px,60dvh); overflow-y:auto; overscroll-behavior:contain; text-align:start; }
  #quickGenderMenu { inset-inline-start:auto; inset-inline-end:0; }
  #quickLangMenu { max-height:min(230px,45dvh); overflow-y:scroll; scrollbar-width:thin; scrollbar-color:#b3bfce #f1f5f9; scrollbar-gutter:stable; }
  #quickLangMenu::-webkit-scrollbar { width:4px; }
  #quickLangMenu::-webkit-scrollbar-track { background:#f1f5f9; border-radius:4px; }
  #quickLangMenu::-webkit-scrollbar-thumb { background:#b3bfce; border-radius:4px; }
  .quick-chip-item { min-height:44px; box-sizing:border-box; padding:9px 10px; }
  .quick-chip-item>span:not(.quick-chip-item-icon) { min-width:0; overflow-wrap:anywhere; }
  .psy-format-menu, .psy-city-suggestions-dropdown { min-width:0; width:100%; max-width:100%; box-sizing:border-box; max-height:min(320px,55dvh); overflow-y:auto; overscroll-behavior:contain; text-align:start; }
  .psy-format-opt-text, .psy-city-suggestion-names { min-width:0; overflow-wrap:anywhere; }
  .psy-city-suggestion-names { flex-wrap:wrap; gap:2px 6px; }
  .psy-format-opt-icon, .psy-city-badge-major { flex-shrink:0; }
  .psy-format-option { gap:8px; padding:10px 8px; }
  .psy-toolbar-main-row, .psy-reasons-row { padding:12px; }
  .psy-filter-tabs-sharp { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .psy-tab-sharp { min-width:0; padding:9px 8px; gap:5px; font-size:.76rem; border-radius:10px!important; }
  .psy-tab-sharp>span:not(.psy-tab-count) { min-width:0; overflow-wrap:anywhere; }
  .psy-tab-count { margin-inline-start:auto; padding:2px 5px; }
  .psy-toolbar-right-controls { flex-wrap:wrap; min-width:0; }
  .psy-reasons-label { width:100%; }
  .psy-reason-chip { min-height:40px; max-width:100%; white-space:normal; }
  .lang-dropdown-panel { right:auto; inset-inline-end:0; min-width:140px; max-width:calc(100vw - 24px); box-sizing:border-box; }
}

/* Search suggestions are requested on typing, never included in the initial page. */
.psy-directory-suggestions { position:absolute; top:calc(100% + 6px); inset-inline:0; z-index:150; background:#fff; border:1px solid var(--mp-line-strong); border-radius:12px; padding:5px; box-shadow:0 12px 28px rgba(15,23,42,.13); max-height:min(300px,45dvh); overflow-y:auto; scrollbar-width:thin; text-align:start; }
.psy-directory-suggestions[hidden] { display:none; }
.psy-directory-suggestion { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; border:0; background:transparent; padding:10px; min-height:44px; border-radius:8px; text-align:start; color:var(--mp-ink); font:inherit; font-size:.8rem; cursor:pointer; }
.psy-directory-suggestion>span { min-width:0; overflow-wrap:anywhere; }
.psy-directory-suggestion small { color:var(--mp-muted); font-size:.66rem; flex-shrink:0; }
.psy-directory-suggestion:hover,.psy-directory-suggestion[aria-selected="true"] { background:var(--mp-primary-light); color:var(--mp-primary); }
@media(max-width:880px) {
  #quickLangBtnText { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; overflow-wrap:normal; text-align:start; }
  #quickLangBtnText>bdi { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  #quickLangBtnText .quick-lang-fr { display:none; }
  .quick-chips-row #quickLangToggleBtn { gap:4px; padding-inline:8px; }
  #quickLangToggleBtn>.fa-comments { flex-shrink:0; }
  .quick-chips-row .quick-chip-dropdown-wrap>.quick-chip-toggle { height:100%; min-height:44px; }
}

/* Mobile footer: grouped links and compact city navigation, including RTL. */
@media (max-width: 600px) {
  .psy-footer-rich { padding-top: 20px; }
  .psy-footer-grid { gap: 18px; padding-bottom: 12px; }
  .psy-footer-brand { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .psy-footer-brand p { max-width: none; margin: 0; }
  .psy-footer-cta { justify-self: start; min-height: 40px; }
  .psy-footer-col h2 { margin-bottom: 8px; }
  .psy-footer-col .psy-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .psy-footer-links a { display: flex; align-items: center; min-height: 42px; line-height: 1.4; border-bottom: 1px solid #ffffff0a; }
  .psy-footer-col-partners { border-top: 1px solid #334155; padding-top: 12px; }
  .psy-footer-partners { gap: 6px; }
  .psy-partner-badges { gap: 6px; }
  .psy-partner-pill { padding: 5px 8px; font-size: .72rem; }
  .psy-partner-cta-link { min-height: 40px; display: inline-flex; align-items: center; }
  .psy-footer-cities-strip { display: block; margin: 0 0 10px; padding: 12px 0; }
  .psy-cities-label { display: block; margin: 0 0 6px; }
  .psy-cities-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
  .psy-cities-nav a { display: flex; align-items: center; min-height: 40px; font-size: .76rem; }
  .psy-cities-nav .psy-v-sep { display: none; }
  .psy-footer-more-cities { grid-column: span 2; }
  .psy-footer-bottom { gap: 6px; }
  .psy-footer-copy { line-height: 1.6; font-size: .72rem; }
  .psy-footer-legal-links { flex-wrap: wrap; gap: 0 10px; }
  .psy-footer-legal-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: .72rem; }
}

/* Directory cards stay white; actions and verification states carry the color. */
.app-container .psy-directory-card .psy-compact-actions>.psy-btn-profile{background:#edf3fc!important;color:#365b91!important;border-color:#cddcf1!important;box-shadow:none!important}
.app-container .psy-directory-card .psy-compact-actions>.psy-btn-profile:hover{background:#365b91!important;color:#fff!important;border-color:#365b91!important}
.app-container .psy-directory-card .psy-compact-actions>.psy-btn-preview{background:#fff!important;color:#64748b!important;border-color:#dce3eb!important}
.psy-directory-card .psy-verification-professional_verified{background:#ecfdf5!important;color:#166534!important;border-color:#a7e3be!important}
.psy-directory-card .psy-verification-contact_verified{background:#fff7e6!important;color:#92400e!important;border-color:#f2cf86!important}
.psy-directory-card .psy-verification-unverified{background:#f1f5f9!important;color:#64748b!important;border-color:#d7dee8!important}

.nav-btn.nav-support-btn.active{background:#edf9f7!important;color:#176e69!important;border-color:#c4e7df!important}
.psy-drawer-link.psy-drawer-support-link.active{background:#edf9f7!important;border-color:#c4e7df!important}

/* Directory: clear identity, readable details and one unmistakable primary action. */
.app-container .psy-directory-card{border-radius:16px!important;border-color:#dce3ed!important;box-shadow:0 3px 14px #263d5b08;gap:12px}
.app-container .psy-directory-card .psy-compact-heading{gap:14px;padding-bottom:12px;border-bottom:1px solid #edf0f5;align-items:flex-start}
.app-container .psy-directory-card .psy-compact-photo{width:70px!important;height:82px!important;flex-basis:70px!important;border-radius:12px!important;box-shadow:0 0 0 3px #fff,0 0 0 4px #e2e8f0}
.app-container .psy-directory-card .psy-card-title{font-size:1.12rem;line-height:1.4;font-weight:750;margin-bottom:4px}
.app-container .psy-directory-card .psy-card-specialty{font-size:.87rem;line-height:1.55;margin:4px 0}
.app-container .psy-directory-card .psy-spec-link{color:#365b91;font-weight:600}
.app-container .psy-directory-card .psy-card-location{font-size:.78rem;line-height:1.6;color:#64748b;margin:5px 0 0}
.app-container .psy-directory-card .psy-card-location .psy-muted{color:#8490a2}
.app-container .psy-directory-card .psy-card-chips-wrap{gap:6px;align-items:center}
.app-container .psy-directory-card .psy-chip{border-radius:6px;font-size:.72rem;line-height:1.5;padding:4px 7px}
.app-container .psy-directory-card .psy-chip-format{background:#f3f6fa;border-color:#dde5ef;color:#53667e}
.app-container .psy-directory-card .psy-card-catalog-summary{padding-block:3px;font-size:.77rem}
.app-container .psy-directory-card .psy-card-catalog-competences>i{background:#f3f5f8;color:#64748b}
.app-container .psy-directory-card .psy-card-bottom-bar{padding-top:12px;border-color:#e8edf4;gap:10px}
.app-container .psy-directory-card .psy-card-price-tag{background:#f6f8fb;border:1px solid #e5eaf2;border-radius:6px;padding:5px 8px;font-size:.75rem}
.app-container .psy-directory-card .psy-card-price-tag .psy-price-val{font-size:.86rem;color:#334a6a}
.app-container .psy-directory-card .psy-compact-actions>.psy-btn-profile{background:#365b91!important;color:#fff!important;border-color:#365b91!important;box-shadow:0 2px 6px #365b9112!important}
.app-container .psy-directory-card .psy-compact-actions>.psy-btn-profile:hover{background:#294775!important;border-color:#294775!important}
.app-container .psy-directory-card .psy-compact-actions>.psy-btn-preview{background:#fff!important;color:#53667e!important;border-color:#d4deeb!important}
.app-container .psy-directory-card:focus-within{border-color:#a9bdd9!important}
@media(hover:hover){.app-container .psy-directory-card:hover{border-color:#b4c5dd!important;box-shadow:0 8px 24px #263d5b10}}
@media(max-width:540px){.app-container .psy-directory-card .psy-compact-heading{gap:11px;padding-bottom:10px}.app-container .psy-directory-card .psy-compact-photo{width:58px!important;height:70px!important;flex-basis:58px!important;border-radius:10px!important}.app-container .psy-directory-card .psy-card-title{font-size:1.02rem}.app-container .psy-directory-card .psy-card-specialty{font-size:.79rem}.app-container .psy-directory-card .psy-card-location{font-size:.74rem}.app-container .psy-directory-card .psy-chip{font-size:.68rem;padding:3px 6px}}

/* The same remote-consultation cue in the directory and practitioner profiles. */
.app-container .psy-directory-card .psy-chip-format:has(.fa-video),
.psy-profile-redesign .psy-chip-format:has(.fa-video){background:#edf4fc;border-color:#c7d9ec;color:#315d91}
.app-container .psy-directory-card .psy-chip-format:has(.fa-video) i,
.psy-profile-redesign .psy-chip-format:has(.fa-video) i{color:#315d91}
