/* ==========================================================================
   Dr. Charbel Kortbawi — Ostéopathe Beyrouth
   Design system · Direction B (Achrafieh Modern, blue palette)
   ========================================================================== */

:root {
  --primary:        #0C4A6E;   /* sky-900 */
  --primary-dark:   #082F49;   /* sky-950 */
  --accent:         #0891B2;   /* cyan-600 */
  --accent-soft:    #ECFEFF;   /* cyan-50 */
  --cta:            #0369A1;   /* sky-700 */
  --cta-dark:       #075985;   /* sky-800 */
  --bg:             #FFFFFF;
  --surface:        #F8FAFC;   /* slate-50 */
  --text:           #0F172A;   /* slate-900 */
  --muted:          #475569;   /* slate-600 */
  --muted-soft:     #94A3B8;   /* slate-400 */
  --border:         #E2E8F0;   /* slate-200 */
  --footer-bg:      #0F172A;
  --star:           #F59E0B;
  --shadow-sm:      0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.04);
  --shadow:         0 2px 8px rgba(15,23,42,.06), 0 16px 48px rgba(15,23,42,.06);
  --radius:         16px;
  --radius-lg:      24px;
  --radius-pill:    9999px;
  --container:      1152px;
  --container-narrow: 720px;
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }

h1,h2,h3,h4 { letter-spacing: -0.025em; line-height: 1.2; margin: 0; font-weight: 700; }
h1 { font-size: clamp(1.625rem, 1.5vw + 1rem, 2.5rem); }
h2 { font-size: clamp(1.5rem, 1.2vw + 0.875rem, 2.125rem); }
h3 { font-size: 1.25rem; }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--primary); color: white;
  padding: 12px 16px; border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: static;
  z-index: 50;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  background: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Desktop: classic centered header — logo centered, menu row below (original design) */
@media (min-width: 820px) {
  .nav-inner {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 22px 24px 0;
  }
  .nav-inner .nav-logo-img { height: 103px; }
  .nav-brand { gap: 14px; }
  .nav-brand-text { align-items: center; }
  .nav-inner .nav-brand-name { font-size: 26px; letter-spacing: 0.08em; }
  .nav-inner .nav-brand-sub { font-size: 15px; }
  .nav-links { padding-bottom: 18px; }
  .nav-actions { position: absolute; right: 24px; top: 30px; }
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 36px; height: 36px;
  background: var(--primary);
  color: white;
  font-weight: 700; font-size: 16px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-logo-img { height: 54px; width: auto; display: block; }
.nav-brand-name { color: var(--primary); letter-spacing: 0.04em; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name { font-weight: 700; font-size: 14px; }
.nav-brand-sub { font-size: 12px; color: var(--muted); }
.nav-links { display: none; gap: 16px; font-size: 13px; font-weight: 500; align-items: center; }
.nav-links > a, .nav-links > .nav-mega > a { white-space: nowrap; }
.nav-links > a:hover, .nav-links > .nav-mega > a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile header (<820px): logo + brand left, hamburger right, no CTA */
@media (max-width: 819px) {
  .nav-inner { gap: 12px; }
  .nav-brand { flex: 1 1 auto; min-width: 0; gap: 12px; align-items: center; }
  .nav-logo-img { height: 60px; }
  .nav-brand-text { min-width: 0; }
  .nav-brand-name { font-size: 18px; line-height: 1.15; letter-spacing: 0.04em; }
  .nav-brand-sub { font-size: 13px; }
  .nav-actions { flex: 0 0 auto; gap: 6px; }
  .nav-actions .nav-cta { display: none; }
  .nav-burger { order: 3; width: 40px; height: 40px; }
}

/* Mega menu */
.nav-mega { position: relative; }
.nav-mega > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.nav-mega > a > svg { width: 11px; height: 11px; transition: transform .2s; }
.nav-mega:hover > a > svg { transform: rotate(180deg); }
.mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  min-width: 540px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  z-index: 100;
  animation: megaFadeIn .15s ease;
}
.nav-mega:hover .mega-dropdown,
.nav-mega:focus-within .mega-dropdown { display: grid; }
/* Single-column dropdown for menus with ≤4 items (Sport, Exercices) */
.mega-dropdown.mega-single { grid-template-columns: 1fr; min-width: 320px; }
.mega-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.mega-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}
.mega-dropdown a:hover { background: var(--surface); color: var(--primary); }
.mega-dropdown a strong {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.mega-dropdown a span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}
@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1024px) {
  .nav-links { gap: 24px; font-size: 14px; }
  .nav-actions { gap: 12px; }
}

/* Mobile hamburger */
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}
.nav-burger:hover { background: var(--surface); }
.nav-burger svg { width: 22px; height: 22px; }
@media (min-width: 820px) { .nav-burger { display: none; } }

/* Mobile drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: white;
  z-index: 70;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.15);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-close {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  display: flex;
  border-radius: 8px;
}
.mobile-drawer-close:hover { background: var(--surface); }
.mobile-drawer-header { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 16px; }
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-links a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  color: var(--text);
}
.mobile-drawer-links a:hover { background: var(--surface); color: var(--primary); }
.mobile-drawer-langs {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}
.mobile-drawer-langs a {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--surface);
  border-radius: 8px;
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
}
.mobile-drawer-langs a.active { background: var(--primary); color: white; }

.lang-switch {
  display: none;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-pill);
}
.lang-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: all .2s;
}
.lang-pill:hover { color: var(--primary); }
.lang-pill.active { background: var(--primary); color: white; }

@media (min-width: 640px)  { .lang-switch { display: inline-flex; } .nav-cta-text { display: inline; } }
@media (min-width: 820px)  { .nav-links { display: flex; } }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: var(--cta); color: white; }
.btn-primary:hover { background: var(--cta-dark); }
.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--surface); }

.btn-on-dark-primary { background: white; color: var(--primary); }
.btn-on-dark-primary:hover { background: var(--surface); }
.btn-on-dark-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(8px);
}
.btn-on-dark-secondary:hover { background: rgba(255,255,255,0.25); }

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

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.08) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 920px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid #A5F3FC;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  margin-bottom: 28px;
  line-height: 1.05;
  font-size: clamp(1.95rem, 1.8vw + 1.2rem, 3rem);
}
@media (min-width: 1024px) {
  .hero-sub { white-space: nowrap; font-size: 1.75rem; }
}
.hero-sub {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.625rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 auto 16px;
  max-width: 800px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.hero-tagline {
  font-size: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 720px;
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ==========================================================================
   HERO IMAGE BAND
   ========================================================================== */
.hero-image-band {
  margin: 32px 0 64px;
}
.hero-image-band img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ==========================================================================
   TRUST METRICS
   ========================================================================== */
.trust-metrics {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.metric-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -0.025em;
}
.metric-label { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   SECTION
   ========================================================================== */
.section { padding: 96px 0; }
.section-tinted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.section-header { margin-bottom: 64px; max-width: 640px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.section-header h2 { margin-bottom: 16px; }
.lede { font-size: 1.125rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ==========================================================================
   CREDENTIALS
   ========================================================================== */
.creds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .creds-grid { grid-template-columns: 4fr 8fr; gap: 64px; align-items: stretch; } .creds-photo { max-width: 324px; aspect-ratio: auto; height: 100%; } }

.creds-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--primary) 0%, var(--accent) 100%);
}
.creds-photo img { width: 100%; height: 100%; object-fit: cover; }

.creds-content h2 { margin-bottom: 24px; }
.creds-content .lede { margin-bottom: 32px; }

.creds-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 16px 24px;
  margin-bottom: 32px;
}
@media (min-width: 640px) { .creds-list { grid-template-columns: 1fr 1fr; } }
.cred {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.cred-title { font-weight: 700; margin-bottom: 2px; }
.cred-sub { font-size: 14px; color: var(--muted); }

.link-strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
}
.link-strong:hover { text-decoration: underline; }

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .conditions-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .conditions-grid { grid-template-columns: repeat(3, 1fr); } }

.condition-card {
  background: white;
  border: 1px solid var(--border);
  padding: 0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: all .2s;
  overflow: hidden;
}
.condition-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.condition-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.condition-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.condition-card:hover .condition-img img { transform: scale(1.04); }
.condition-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.condition-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 16px;
}
.condition-card p {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
  flex: 1;
  text-align: justify;
}
.condition-card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  align-self: flex-start;
}
.condition-card .link-arrow svg { transition: transform .2s; }
.condition-card:hover .link-arrow svg { transform: translateX(4px); }

/* ==========================================================================
   CLINIC GALLERY + INFO
   ========================================================================== */
/* Clinic gallery: horizontal scroll carousel with arrow buttons */
.gallery-carousel { position: relative; margin-bottom: 48px; }
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4/3;
}
@media (min-width: 640px) { .gallery-slide { flex-basis: 48%; } }
@media (min-width: 1024px) { .gallery-slide { flex-basis: 31.5%; } }
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-slide:hover { box-shadow: var(--shadow); }
.gallery-slide:hover img { transform: scale(1.03); }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.gallery-nav:hover { background: var(--surface); }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav--prev { left: -8px; }
.gallery-nav--next { right: -8px; }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .gallery-nav--prev { left: 4px; }
  .gallery-nav--next { right: 4px; }
}
/* legacy grid (kept harmless) */
.clinic-gallery { display: none; }
.gallery-tile {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4/3;
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 768px) {
  .gallery-tile { aspect-ratio: auto; height: 100%; }
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-tile:hover { box-shadow: var(--shadow); }
.gallery-tile:hover img { transform: scale(1.03); }

.clinic-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 640px) { .clinic-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .clinic-info-grid { grid-template-columns: repeat(4, 1fr); } }

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card svg { color: var(--primary); margin-bottom: 12px; }
.info-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.info-text { font-size: 1rem; line-height: 1.5; }

.clinic-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  list-style: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { color: var(--primary); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.final-cta h2 {
  color: white;
  margin-bottom: 16px;
}
.final-cta p {
  font-size: 1.125rem;
  margin: 0 auto 32px;
  max-width: 560px;
  opacity: 0.92;
}
.final-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) { .final-cta { padding: 96px 64px; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}
.footer-logo {
  width: 36px; height: 36px;
  background: white;
  color: var(--primary);
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-logo img { height: 26px; width: auto; display: block; }
.footer-text { font-size: 14px; line-height: 1.6; opacity: 0.8; }
.footer-heading {
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}
.footer-grid ul li { margin-bottom: 8px; font-size: 14px; }
.footer-grid ul li a:hover { color: #67E8F9; }

.footer-langs { display: flex; gap: 8px; margin-bottom: 24px; }
.footer-lang {
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.footer-lang:hover { background: rgba(255,255,255,0.25); }
.footer-lang.active { background: white; color: var(--primary); }
.footer-meta-link { font-size: 14px; }
.footer-meta-link:hover { color: #67E8F9; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.7;
}
.footer-meta { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* ==========================================================================
   FAB
   ========================================================================== */
.fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 40;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.05); }

/* ==========================================================================
   BLOG INDEX
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
a.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.blog-card-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
}
.blog-card-img--placeholder {
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
}
.blog-card-img--placeholder::after {
  content: "À paraître";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-tag {
  display: inline-block;
  align-self: flex-start;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-card h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
}
.blog-card-body p {
  text-align: justify;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}
.blog-card--placeholder { opacity: 0.65; }
.blog-card--placeholder h2 { color: var(--muted); }

/* Paris BEM aliases — when we port Paris's `<h2>À lire aussi</h2>` blocks
   the markup uses `.blog-card__img / __body / __tag / __meta`. Mirror those
   to Lebanon's kebab-style rules so the cards render without rewriting HTML. */
.blog-card__img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
}
.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}
.blog-card__meta {
  font-size: 12px;
  color: var(--muted-soft);
  font-weight: 500;
  margin-top: auto;
}

/* "À lire aussi" wrapper section, styled as a clearly delimited band
   that sits below the article content and above the footer. */
section.related-articles,
.article-body + section,
main > section.section {
  padding: 24px 0 48px;
}
.related-articles-heading {
  margin-bottom: 32px;
}

/* ==========================================================================
   ARTICLE / BLOG POST
   ========================================================================== */
.article {
  padding: 48px 0 80px;
}
@media (min-width: 768px) { .article { padding: 64px 0 96px; } }

/* Article content matches homepage hero width (~920px), centered.
   Constrains EVERYTHING inside article body — headings, lists, grids — so 2-col
   inline grids from Paris source don't span full container width. */
.article .breadcrumb,
.article .article-header,
.article .article-body,
.article .article-cta,
.article .author-box {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
/* Article body H2 / H3: cap at the same size used in main-page sections */
.article .article-body h2 {
  font-size: clamp(1.5rem, 1.2vw + 0.875rem, 2rem);
  margin: 40px 0 16px;
  color: var(--primary);
}
.article .article-body h3 {
  font-size: 1.1875rem;
  margin: 28px 0 10px;
  color: var(--text);
}
.article .article-body h4 {
  font-size: 1rem;
  margin: 20px 0 8px;
}
/* Override any inline max-width:420px Paris kept on body images */
.article .article-body img[style*="max-width:420px"],
.article .article-body img[style*="max-width: 420px"] {
  max-width: min(100%, 640px) !important;
}
/* Constrain Paris's inline 2-column grids (e.g., diploma lists, motifs lists) */
.article .article-body div[style*="grid-template-columns:1fr 1fr"],
.article .article-body div[style*="grid-template-columns: 1fr 1fr"] {
  max-width: 920px;
}
/* Paris's `.condition-grid` and `.condition-card` (used in service-page bodies
   like /douleur-chronique/'s "Principaux syndromes traités") — text-only cards
   linking to sub-pages. Different from homepage `.condition-card` (with image). */
.article .article-body .condition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
@media (max-width: 640px) {
  .article .article-body .condition-grid { grid-template-columns: 1fr; }
}
.article .article-body .condition-grid .condition-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none !important;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all .2s;
}
.article .article-body .condition-grid .condition-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.article .article-body .condition-grid .condition-card h3 {
  font-size: 1.0625rem;
  color: var(--primary);
  margin: 0 0 4px;
  font-weight: 700;
}
.article .article-body .condition-grid .condition-card p {
  color: var(--muted);
  margin: 0 0 8px !important;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.article .article-body .condition-grid .card__link {
  color: var(--cta);
  font-weight: 600;
  font-size: 13px;
  margin-top: auto;
}
.article .article-body .condition-grid .condition-card:hover .card__link {
  color: var(--primary);
}

/* Paris's image-grid-2 wrapper — show 2 images side-by-side on desktop */
.article .article-body .image-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px auto;
  max-width: 920px;
}
.article .article-body .image-grid-2 > div {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.article .article-body .image-grid-2 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  .article .article-body .image-grid-2 { grid-template-columns: 1fr; }
}
/* Contact page — 2-column layout: WhatsApp/phone on left, form on right; stack on mobile */
.article .article-body .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.article .article-body .contact-doctolib { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.article .article-body .contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.article .article-body .doctolib-logo { display: inline-flex; align-items: center; padding: 8px 14px; background: #25D366; color: #fff; font-weight: 700; border-radius: 999px; font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 16px; }
.article .article-body .map-placeholder { display: block; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; color: var(--cta); font-weight: 500; text-decoration: none; transition: all 0.2s; }
.article .article-body .map-placeholder:hover { background: var(--bg-alt, #f8fafc); border-color: var(--cta); }
@media (max-width: 768px) {
  .article .article-body .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .article .article-body .contact-doctolib,
  .article .article-body .contact-info { padding: 24px; }
}
/* Profil page intro — text on the left, small portrait on the right; stack on mobile */
.article .article-body .profil-intro { display: flex; gap: 32px; align-items: flex-start; margin: 8px 0 28px; }
.article .article-body .profil-intro img { width: 147px; height: 212px; flex-shrink: 0; }
@media (max-width: 640px) {
  .article .article-body .profil-intro { flex-direction: column-reverse; gap: 16px; }
  .article .article-body .profil-intro img { width: 100%; max-width: 240px; height: auto; aspect-ratio: 147/212; margin: 0 auto; }
}
/* Override Paris's inline shrunk font-size + muted color on body lists,
   so list items match the rest of the page's paragraph size (1.0625rem = 17px). */
.article .article-body ul,
.article .article-body ol,
.article .article-body li {
  font-size: 1.0625rem !important;
  color: var(--text) !important;
  line-height: 1.7;
}
.article .article-body li strong { color: var(--text) !important; }
.article .article-body li a { color: var(--cta) !important; }
.article .article-body li a:hover { color: var(--primary) !important; }

.breadcrumb {
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--muted-soft);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

.article-header { margin-bottom: 40px; }
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.article-header h1 {
  margin-bottom: 16px;
}
.page-hero {
  margin: 0 auto 32px;
  text-align: center;
}
.page-hero img {
  max-width: 100%;
  width: auto;
  max-height: 360px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: inline-block;
}
@media (max-width: 640px) {
  .page-hero img { max-height: 240px; }
}
.article-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.article-meta .dot { color: var(--muted-soft); }

.article-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}
.article-body > p,
.article-body > ul,
.article-body > ol {
  margin: 0 0 24px;
}
.article-body p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-body .lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  text-align: left;
  hyphens: none;
}
.article-body h2 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 1.875rem);
  margin: 56px 0 16px;
  color: var(--primary);
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
  color: var(--text);
}
.article-body ul, .article-body ol {
  padding-left: 28px;
  list-style: revert;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  margin-bottom: 10px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  padding-left: 4px;
}
.article-body li::marker { color: var(--accent); }
.article-body strong { color: var(--text); }
.article-body a { color: var(--cta); text-decoration: underline; text-underline-offset: 2px; }
.article-body { overflow-wrap: break-word; }
.article-body a { word-break: break-word; }
.article-body .article-cta p, .article-cta p { text-align: center; }
.article-body .article-cta a, .article-cta a { text-decoration: none; }
.article-body a:hover { color: var(--primary); }

.article-figure {
  margin: 40px 0;
  text-align: center;
}
.article-figure img {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0 auto;
}
.article-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.article-refs {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 20px;
}
.article-refs li { margin-bottom: 8px; }
.article-refs em { color: var(--text); }

/* Article inline CTA */
.article-cta {
  margin: 56px 0 40px;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta h3 { color: white; font-size: 1.375rem; margin: 0 0 8px; }
.article-cta h2 { color: white; font-size: 1.375rem; margin: 0 0 8px; }
.article-cta p { margin: 0 0 24px; opacity: 0.92; }
.article-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.article-cta .btn-primary { background: white; color: var(--primary); }
.article-cta .btn-primary:hover { background: var(--surface); }
.article-cta .btn-secondary {
  background: rgba(255,255,255,0.18);
  color: white;
  border-color: rgba(255,255,255,0.25);
}
.article-cta .btn-secondary:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.4); }

/* Author box */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 56px;
  padding: 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.author-box::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}
.author-avatar {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(12, 74, 110, 0.25);
}
.author-content { min-width: 0; }
.author-name {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.author-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.author-bio {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 24px;
  line-height: 1.6;
  text-align: left;
  hyphens: none;
}
.author-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 12px;
}
.author-creds {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}
@media (min-width: 480px) {
  .author-creds { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
}
.author-creds li {
  position: relative;
  padding-left: 24px;
  margin: 0 !important;
  text-align: left !important;
  hyphens: none !important;
  line-height: 1.45;
}
.author-creds li::marker { content: ""; }
.author-creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C4A6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}
@media (max-width: 640px) {
  .author-box {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
    padding: 28px 24px;
  }
  .author-creds { text-align: left; justify-self: stretch; }
  .author-creds li { text-align: left !important; }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   PAGE HERO + FILTER PILLS (blog index, Paris-style)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #082F49 0%, #0C4A6E 55%, #0369A1 100%);
  padding: 72px 0 52px;
}
.page-hero-kicker {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.page-hero h1 { color: #fff; margin: 0 0 12px; }
.page-hero-lead { color: rgba(255, 255, 255, 0.92); max-width: 680px; margin: 0 auto; }

.pill-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.pill.active, .pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* blog cards never inherit article-body link underline */
.article-body a.blog-card { text-decoration: none; }


/* ==========================================================================
   COMPAT: aliases for Paris-style vars/classes used in ported page markup
   ========================================================================== */
:root {
  --text-muted: var(--muted-soft);
  --text-mid: var(--muted);
  --radius-xl: var(--radius-lg);
  --blue-light: var(--cta);
  --bg-alt: var(--surface);
}
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-dark); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--outline { background: #fff; border: 1px solid var(--border); color: var(--primary); }
.btn--outline:hover { border-color: var(--primary); background: var(--surface); }
.article-body a.btn { text-decoration: none; }
.article-body a.btn--primary { color: #fff; }
.article-body a.btn--outline, .article-body a.btn-outline { color: var(--primary); }

/* Contact page: both cards same height, compact booking card */
.article .article-body .contact-grid { align-items: stretch; }
.article .article-body .contact-doctolib h2 { font-size: 1.25rem; margin-bottom: 8px; }
.article .article-body .contact-doctolib p { text-align: left; }


/* Justify body reading text (desktop + mobile). Centered blocks keep their
   own center rules / inline text-align:center, which win by specificity. */
.article-body p,
.article-body li {
  text-align: justify;
}
.article-body .article-cta p,
.article-cta p { text-align: center; }


/* Blog hero: practitioner name as a smaller second line under the title */
.page-hero h1 .page-hero-name {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}


/* 'À lire aussi' / related-articles wrapper (Paris-ported class): align with
   the site container so it has proper side margins instead of hugging edges */
.inner-layout { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
