/* ============================================================
   SAHADOC — Design System
   Annuaire médical algérien
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  /* Brand Colors */
  --teal:        #37cbd1;
  --teal-dark:   #2aabb0;
  --teal-light:  #f1fbfc;
  --teal-glow:   rgba(55, 203, 209, 0.15);
  --navy:        #1a2547;
  --navy-light:  #2a3d6b;
  --gold:        #F59E0B;

  /* Neutrals */
  --white:       #FFFFFF;
  --bg:          #F4F8FB;
  --bg-card:     #FFFFFF;
  --border:      #E2EBF3;
  --border-soft: #EDF3F8;
  --text-primary:  #111E2D;
  --text-secondary: #4a4f6e;
  --text-muted:  #8f91ab;
  --text-light:  #B8CCE0;

  /* Status */
  --green:       #10B981;
  --red:         #EF4444;
  --orange:      #F97316;

  /* Spacing */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(26,37,71,.06), 0 1px 2px rgba(26,37,71,.04);
  --shadow-sm:   0 2px 8px rgba(26,37,71,.08), 0 1px 3px rgba(26,37,71,.05);
  --shadow:      0 4px 20px rgba(26,37,71,.10), 0 2px 6px rgba(26,37,71,.06);
  --shadow-md:   0 8px 32px rgba(26,37,71,.12), 0 2px 8px rgba(26,37,71,.07);
  --shadow-lg:   0 16px 48px rgba(26,37,71,.15), 0 4px 12px rgba(26,37,71,.08);
  --shadow-teal: 0 8px 24px rgba(55,203,209,.30);

  /* Fonts */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Transitions */
  --t-fast:  150ms cubic-bezier(.4,0,.2,1);
  --t-base:  250ms cubic-bezier(.4,0,.2,1);
  --t-slow:  400ms cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-secondary); }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 900px;
}

/* ─── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--navy-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.navbar__logo-text span {
  color: var(--teal);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.nav-link:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.btn-lang:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-pro {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  font-size: .88rem;
  font-weight: 600;
  border: none;
  box-shadow: var(--shadow-teal);
  transition: all var(--t-base);
}

.btn-pro:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(55,203,209,.40);
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  border: none;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  box-shadow: var(--shadow-teal);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(55,203,209,.40);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn--outline:hover {
  background: var(--teal-light);
}

.btn--ghost {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.btn--ghost:hover {
  background: rgba(55,203,209,.2);
}

.btn--navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  box-shadow: 0 8px 24px rgba(17,26,53,.30);
}

.btn--navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(17,26,53,.40);
}

.btn--sm {
  padding: 7px 14px;
  font-size: .82rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ─── FORM ELEMENTS ─────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-select,
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: .92rem;
  color: var(--text-primary);
  transition: all var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

/* ─── SEARCH BAR ────────────────────────────────────────── */
.search-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-bar__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}

.search-bar__field:hover {
  background: var(--bg);
}

.search-bar__icon {
  color: var(--teal);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.search-bar__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: .95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.search-bar__input:focus { outline: none; }
.search-bar__input::placeholder { color: var(--text-muted); font-weight: 400; }

.search-bar__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.search-bar__btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border: none;
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-base);
  box-shadow: var(--shadow-teal);
  cursor: pointer;
}

.search-bar__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(55,203,209,.45);
}

/* ─── BADGE ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}

.badge--teal  { background: var(--teal-light); color: var(--teal-dark); }
.badge--navy  { background: rgba(17,26,53,.1); color: var(--navy); }
.badge--green { background: rgba(16,185,129,.12); color: var(--green); }
.badge--gold  { background: rgba(245,158,11,.12); color: var(--gold); }
.badge--grey  { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }

/* ─── VERIFIED BADGE ────────────────────────────────────── */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
}

.verified::before {
  content: '✓';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── STARS ─────────────────────────────────────────────── */
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--gold);
  font-size: .9rem;
}

.stars__count {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

/* ─── SECTION TITLE ─────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  color: var(--navy);
  margin-bottom: 10px;
}

.section-title p {
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.section-title .title-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  margin: 0 4px;
  vertical-align: middle;
}

/* ─── SPECIALTY CARDS ───────────────────────────────────── */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  transition: all var(--t-base);
  cursor: pointer;
  text-align: center;
}

.specialty-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.specialty-card:hover .specialty-card__icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
}

.specialty-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--t-base);
}

.specialty-card__name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.specialty-card__count {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ─── WILAYA CARDS ──────────────────────────────────────── */
.wilaya-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.wilaya-card {
  padding: 14px 12px;
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--t-base);
  cursor: pointer;
}

.wilaya-card:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.wilaya-card__name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.wilaya-card:hover .wilaya-card__name {
  color: var(--teal-dark);
}

.wilaya-card__num {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── DOCTOR CARD ───────────────────────────────────────── */
.doctor-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  transition: all var(--t-base);
  animation: fadeInUp var(--t-slow) both;
}

.doctor-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doctor-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-light), #c3eff1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 700;
  overflow: hidden;
  position: relative;
}

.doctor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card__info {
  flex: 1;
  min-width: 0;
}

.doctor-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.doctor-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
}

.doctor-card__spec {
  font-size: .88rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 6px;
}

.doctor-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.doctor-card__loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--text-muted);
}

.doctor-card__loc::before {
  content: '📍';
  font-size: .7rem;
}

.doctor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.doctor-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.doctor-card__rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* ─── DOCTOR PROFILE PAGE ───────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.profile-main {}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.profile-header {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1.5px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.profile-header__top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.profile-header__avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-light), #c3eff1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--teal);
  overflow: hidden;
  border: 3px solid var(--teal-light);
}

.profile-header__info { flex: 1; }

.profile-header__name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.profile-header__spec {
  font-size: 1rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}

.profile-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1.5px solid var(--border-soft);
  margin-bottom: 16px;
}

.profile-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-soft);
}

.profile-section__title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

/* ─── LANG PILLS ────────────────────────────────────────── */
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-pill {
  padding: 6px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ─── SOCIAL LINKS ──────────────────────────────────────── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--t-base);
  text-decoration: none;
}

.social-link--fb  { background: rgba(24,119,242,.1); color: #1877F2; }
.social-link--tw  { background: rgba(29,161,242,.1); color: #1DA1F2; }
.social-link--ig  { background: rgba(225,48,108,.1); color: #E1306C; }
.social-link--yt  { background: rgba(255,0,0,.1); color: #FF0000; }
.social-link--tk  { background: rgba(0,0,0,.08); color: #000; }
.social-link--li  { background: rgba(0,119,181,.1); color: #0077B5; }

.social-link:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ─── PHOTOS GRID ───────────────────────────────────────── */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.photo-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1.5px solid var(--border-soft);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-base);
}

.photo-thumb:hover { transform: scale(1.02); box-shadow: var(--shadow-sm); }

.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── REVIEWS ───────────────────────────────────────────── */
.review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.review-item:last-child { border-bottom: none; }

.review-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-item__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.review-item__name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.review-item__date {
  font-size: .78rem;
  color: var(--text-muted);
}

.review-item__text {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
}

/* ─── SIDEBAR WIDGETS ───────────────────────────────────── */
.widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border-soft);
  overflow: hidden;
}

.widget--contact {
  padding: 20px;
}

.widget__contact-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-base);
  box-shadow: var(--shadow-teal);
}

.widget__contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(55,203,209,.45);
}

.widget__map {
  height: 200px;
  background: #EEF2F7;
  position: relative;
  overflow: hidden;
}

.widget__map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(55,203,209,.05), rgba(17,26,53,.05));
}

.widget__address {
  padding: 16px 20px;
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.widget__address strong { color: var(--text-primary); }

.widget__itinerary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--white);
  cursor: pointer;
  transition: all var(--t-fast);
}

.widget__itinerary-btn:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}

/* ─── HORAIRES ──────────────────────────────────────────── */
.horaires-table {
  width: 100%;
}

.horaires-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: .85rem;
}

.horaires-row:last-child { border-bottom: none; }

.horaires-row__day { color: var(--text-secondary); font-weight: 500; }
.horaires-row__time { font-weight: 600; color: var(--teal-dark); }
.horaires-row__closed { font-weight: 600; color: var(--red); }
.horaires-row--today { background: var(--teal-light); }
.horaires-row--today .horaires-row__day { color: var(--teal-dark); font-weight: 700; }

/* ─── BREADCRUMB ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-muted);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 500;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb__sep { color: var(--text-light); }

.breadcrumb__current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── PAGINATION ────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}

.page-item {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  color: var(--text-secondary);
}

.page-item:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.page-item--active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: var(--shadow-teal);
}

.page-item--dots {
  border: none;
  background: none;
  cursor: default;
}

.page-item--dots:hover {
  border: none;
  color: var(--text-muted);
}

/* ─── STATS COUNTER ─────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--navy) 0%, #1E4D73 50%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(55,203,209,.2) 0%, transparent 70%);
}

.stat-item {
  padding: 0 20px;
  position: relative;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,.15);
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item__number span {
  color: var(--teal);
}

.stat-item__label {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ─── MORE BUTTON ───────────────────────────────────────── */
.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  gap: 8px;
  padding: 10px 22px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base);
}

.more-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.more-btn__arrow {
  transition: transform var(--t-base);
}

.more-btn.open .more-btn__arrow {
  transform: rotate(180deg);
}

/* ─── DROPDOWN MORE ─────────────────────────────────────── */
.dropdown-more {
  display: none;
  margin-top: 16px;
  padding: 20px;
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.dropdown-more.open { display: block; }

.dropdown-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 0;
}

.dropdown-more__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--t-fast);
}

.dropdown-more__link:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* ─── TABS ──────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: fit-content;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.tab-btn.active {
  background: var(--white);
  color: var(--teal);
  box-shadow: var(--shadow-xs);
}

/* ─── ALERT BANNER ──────────────────────────────────────── */
.alert-banner {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .88rem;
  margin: 20px 0 0 0;
}

.alert-banner--warning {
  background: rgba(245,158,11,.1);
  border: 1.5px solid rgba(245,158,11,.3);
  color: #92400E;
}

/* ─── RELATED DOCTORS ───────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  transition: all var(--t-base);
  cursor: pointer;
}

.related-card:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  transform: translateY(-2px);
}

.related-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 10px;
  overflow: hidden;
}

.related-card__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.related-card__spec {
  font-size: .75rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.related-card__loc {
  font-size: .72rem;
  color: var(--text-muted);
}

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  margin-top: 80px;
  padding: 56px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}

.footer__logo-text span { color: var(--teal); }

.footer__tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: all var(--t-fast);
}

.footer__social-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 18px;
}

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

.footer__link {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--t-fast);
}

.footer__link:hover { color: var(--teal); }

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-label {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.newsletter-input-wrap {
  display: flex;
  gap: 6px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: white;
  font-size: .88rem;
}

.newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-input:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(55,203,209,.1);
}

.newsletter-btn {
  padding: 10px 16px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.newsletter-btn:hover { background: var(--teal-dark); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ─── HERO (index) ──────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, #1E5070 45%, #137D74 100%);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(55,203,209,.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 40px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  margin-bottom: 16px;
}

.hero__title .highlight {
  color: var(--teal);
  position: relative;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ─── SEARCH TABS ───────────────────────────────────────── */
.search-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.search-panel__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
}

.search-panel__tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: all var(--t-fast);
  color: var(--text-muted);
  background: var(--bg);
  border: none;
}

.search-panel__tab.active {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 2px 0 var(--teal) inset;
}

.search-panel__body {
  padding: 24px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

/* ─── SECTION ───────────────────────────────────────────── */
.section { padding: 64px 0; }
.section--grey { background: var(--bg); }
.section--white { background: var(--white); }

/* ─── SEARCH HEADER (search.html) ──────────────────────────*/
.search-header {
  background: white;
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
  position: sticky;
  top: 68px;
  z-index: 90;
  box-shadow: var(--shadow-xs);
}

.search-header__bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-header__select-wrap {
  position: relative;
  flex: 1;
}

.search-header__select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

.search-header__select {
  width: 100%;
  padding: 11px 36px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: .9rem;
  color: var(--text-primary);
  appearance: none;
  transition: all var(--t-fast);
}

.search-header__select:focus {
  outline: none;
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.search-header__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: .9rem;
}

/* ─── SEARCH RESULTS ────────────────────────────────────── */
.results-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 32px;
}

.results-sidebar {
  position: sticky;
  top: 150px;
}

.filter-panel {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.filter-panel__title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.filter-checkbox:hover { color: var(--teal); }

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

.results-main {}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-header h1 {
  font-size: 1.5rem;
}

.results-count {
  font-size: .92rem;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--teal);
  font-weight: 700;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.2); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s both;
}

.animate-in:nth-child(1) { animation-delay: .05s; }
.animate-in:nth-child(2) { animation-delay: .10s; }
.animate-in:nth-child(3) { animation-delay: .15s; }
.animate-in:nth-child(4) { animation-delay: .20s; }
.animate-in:nth-child(5) { animation-delay: .25s; }
.animate-in:nth-child(6) { animation-delay: .30s; }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .specialty-grid { grid-template-columns: repeat(4, 1fr); }
  .wilaya-grid    { grid-template-columns: repeat(4, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .footer__grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .results-layout { grid-template-columns: 1fr; }
  .results-sidebar { position: static; display: none; }
}

@media (max-width: 768px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .wilaya-grid    { grid-template-columns: repeat(3, 1fr); }
  .stats-band     { grid-template-columns: 1fr; gap: 24px; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; }
  .navbar__nav    { display: none; }
  .search-row     { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; gap: 28px; }
  .related-grid   { grid-template-columns: repeat(2, 1fr); }
  .doctor-card    { flex-wrap: wrap; }
  .doctor-card__actions { flex-direction: row; width: 100%; }
}

@media (max-width: 480px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .wilaya-grid    { grid-template-columns: repeat(2, 1fr); }
  .container      { padding: 0 16px; }
}

/* ─── SELECT2 OVERRIDES ─────────────────────────────────── */
.select2-container { width: 100% !important; }

.select2-container--default .select2-selection--single {
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
  outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary);
  font-size: .92rem;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 44px;
  padding-left: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--teal) transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--teal) transparent;
}

.select2-dropdown {
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(26,37,71,.12);
  font-family: var(--font-body);
  overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .88rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  outline: none;
  border-color: var(--teal);
}

.select2-container--default .select2-results__option {
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--text-secondary);
  transition: background var(--t-fast);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: var(--teal);
  color: white;
}

.search-header .select2-container--default .select2-selection--single {
  background: var(--bg);
  height: 42px;
  border-color: var(--border);
}

.search-header .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 38px;
  line-height: 40px;
}

/* ─── SERVICE PILLS ─────────────────────────────────────── */
.services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, rgba(26,37,71,.08), rgba(55,203,209,.08));
  border: 1.5px solid rgba(26,37,71,.2);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--t-fast);
}

.service-pill:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.service-pill::before {
  content: '✦';
  font-size: .65rem;
  color: var(--teal);
}

/* ─── PROSE SECTIONS ────────────────────────────────────── */
.prose-block {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.prose-block p + p { margin-top: 12px; }

/* ─── VERIFIED BADGE (profile) ──────────────────────────── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(55,203,209,.1));
  border: 1.5px solid rgba(16,185,129,.35);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  color: #059669;
}

.verified-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ─── REVIEW FORM ───────────────────────────────────────── */
.review-form {
  display: none;
  margin-top: 20px;
  padding: 24px;
  background: var(--bg);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  animation: slideDown .3s ease both;
}

.review-form.open { display: block; }

.review-form__title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.review-form__stars {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.star-btn {
  font-size: 1.6rem;
  color: var(--border);
  cursor: pointer;
  transition: color var(--t-fast), transform var(--t-fast);
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.star-btn:hover,
.star-btn.active { color: var(--gold); transform: scale(1.15); }

.review-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.review-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  resize: vertical;
  min-height: 90px;
  margin-bottom: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.review-form__textarea:focus,
.review-form__input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.review-form__input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.review-form__input::placeholder,
.review-form__textarea::placeholder { color: var(--text-muted); }

.review-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── BTN-PRO RESPONSIVE TEXT ───────────────────────────── */
.btn-pro__short { display: none; }
.btn-pro__long  { display: inline; }

/* ─── SEARCH HEADER RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .search-header {
    position: static;      /* ne plus coller sous la navbar sur mobile */
  }

  .search-header__bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Spécialité et wilaya côte à côte sur une ligne */
  .search-header__bar > .search-header__select-wrap {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0;
  }

  /* Bouton rechercher pleine largeur sur la deuxième ligne */
  .search-header__bar > .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ─── MOBILE FIXES ──────────────────────────────────────── */
@media (max-width: 768px) {

  /* Navbar actions — compact text & padding */
  .btn-lang {
    padding: 5px 8px;
    font-size: .78rem;
  }

  .btn-pro {
    padding: 6px 10px;
    font-size: .78rem;
  }

  /* btn-pro: short text on mobile */
  .btn-pro__short { display: inline; }
  .btn-pro__long  { display: none; }

  /* Profile header — centré, photo au-dessus du nom */
  .profile-header__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-header__info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-header__badges {
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 6px;
  }

  .profile-header__badges .badge,
  .profile-header__badges .verified-badge {
    flex: 0 0 auto;
    width: auto;
  }

  /* Results header — stack vertically */
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .results-header > div:last-child {
    width: 100%;
  }

  /* Ville select in results-header: full width */
  #ville-select {
    width: 100% !important;
  }
}

/* ─── COORDS BUTTON (widget) ────────────────────────────── */
.widget__coords-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  margin: 0 20px 16px;
  padding: 11px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: 0 4px 14px rgba(26,37,71,.30);
}

.widget__coords-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26,37,71,.40);
}

/* ─── DOCTOR PAGE SPECIFIC ──────────────────────────────── */

/* Alert banner claim: always flex-wrap so button can go below */
.alert-banner--claim {
  flex-wrap: wrap;
  align-items: center;
}

.alert-banner__text {
  flex: 1 1 50px;
}

/* Coords button inside profile-header: hidden on desktop */
.profile-header__coords-mobile {
  display: none;
  margin-top: 16px;
  width: 100%;
}

.profile-header__coords-mobile .widget__coords-btn {
  width: 100%;
  margin: 0;
}

/* Sidebar: full width when stacked */
@media (max-width: 1024px) {
  .profile-sidebar,
  .profile-sidebar--ordered {
    position: static;
    width: 100%;
  }
}

@media (max-width: 768px) {

  /* Alert banner: text full width, button below */
  .alert-banner--claim {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .alert-banner__text {
    width: 100%;
  }

  .alert-banner--claim .alert-banner__btn {
    align-self: flex-start;
  }

  /* Show coords button inside profile header on mobile */
  .profile-header__coords-mobile {
    display: block;
  }
}

@media (max-width: 1024px) {
  .profile-sidebar .widget__coords-btn {
    display: none;
  }
}

/* Bouton Professionnel — marine */
.btn-pro {
  background: var(--navy);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}
.btn-pro:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* Bouton Voir le profil — outline teal */
.btn--outline-teal {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  display: inline-block;
}
.btn--outline-teal:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
}

/* ── Timeline parcours ──────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item__annee {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  color: var(--teal); white-space: nowrap; min-width: 80px;
  padding-top: 2px;
}
.timeline-item__desc {
  font-size: .9rem; color: var(--text-secondary); line-height: 1.6; flex: 1;
}