/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:   #0b1d2e;
  --navy-l: #112840;
  --teal:   #1a8fa8;
  --teal-l: #22b5d4;
  --gold:   #c8a96e;
  --off:    #f4f7f9;
  --text:   #e8edf2;
  --muted:  #8aaabb;
  --card:   rgba(255,255,255,.04);
  --border: rgba(255,255,255,.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
body.ar { direction: rtl; font-family: 'Noto Naskh Arabic', 'Inter', sans-serif; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2.5rem;
  background: rgba(11,29,46,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.nav-logo span { color: var(--teal-l); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--teal-l); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-sw { display: flex; gap: .3rem; }
.lang-btn { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: .25rem .65rem; border-radius: 4px; cursor: pointer; font-size: .78rem; font-weight: 600; transition: all .2s; }
.lang-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
@media (max-width: 768px) {
  nav { padding: .8rem 1.2rem; }
  .nav-links { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--navy-l); flex-direction: column; gap: 0; padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1.5rem; font-size: .9rem; }
  .hamburger { display: flex; }
}

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; text-align: center; overflow: hidden; padding: 6rem 1.5rem 3rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26,143,168,.18) 0%, transparent 70%),
              linear-gradient(180deg, #0b1d2e 0%, #112840 100%);
  z-index: 0;
}
.lung-svg { position: absolute; width: min(520px, 90vw); opacity: .07; z-index: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-l); margin-bottom: 1.2rem; font-weight: 500; }
#hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; line-height: 1.15; margin-bottom: .8rem; }
#hero h1 em { color: var(--teal-l); font-style: normal; }
.hero-spec { font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; font-weight: 500; }
.hero-sub { color: var(--muted); font-size: .98rem; max-width: 600px; margin: 0 auto .6rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-strip { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--teal-l), var(--gold), var(--teal-l), transparent); }

/* ── BUTTONS ── */
.btn-p {
  display: inline-block; padding: .7rem 1.6rem; border-radius: 6px; font-size: .88rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: none;
  background: var(--teal); color: #fff; transition: background .2s, transform .15s;
}
.btn-p:hover { background: var(--teal-l); transform: translateY(-2px); }
.btn-o {
  display: inline-block; padding: .7rem 1.6rem; border-radius: 6px; font-size: .88rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .15s;
}
.btn-o:hover { border-color: var(--teal-l); color: var(--teal-l); transform: translateY(-2px); }

/* ── SECTIONS ── */
section { max-width: 1100px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-l); font-weight: 600; margin-bottom: .8rem; }
section h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: .5rem; }
.divider { width: 48px; height: 3px; background: linear-gradient(90deg, var(--teal-l), var(--gold)); border-radius: 2px; margin: 1.2rem 0 2.2rem; }

/* ── FADE-IN ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── MOT DU MÉDECIN ── */
.mot-grid { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: start; }
@media (max-width: 700px) { .mot-grid { grid-template-columns: 1fr; } }
.doc-photo { position: relative; width: 200px; }
@media (max-width: 700px) { .doc-photo { width: 140px; } }
.doc-photo-inner {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-l), #1e3d55);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.doc-badge {
  position: absolute; bottom: -10px; right: -10px;
  background: var(--teal); border-radius: 8px; padding: .4rem .7rem;
  font-size: .75rem; font-weight: 700; line-height: 1.2; text-align: center;
}
.doc-badge strong { display: block; font-size: 1.1rem; color: #fff; }
.mot-text blockquote {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; font-style: italic;
  color: var(--teal-l); border-left: 3px solid var(--teal-l); padding-left: 1rem;
  margin: 1.2rem 0; line-height: 1.6;
}
body.ar .mot-text blockquote { border-left: none; border-right: 3px solid var(--teal-l); padding-left: 0; padding-right: 1rem; }
.mot-text p { color: var(--muted); margin-bottom: .8rem; font-size: .95rem; }
.signature { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); font-size: 1.2rem; margin-top: 1.2rem; }

/* ── SPEC CARDS ── */
.spec-text p { color: var(--muted); margin-bottom: .8rem; font-size: .95rem; }
.spec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.spec-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.8rem 1.5rem; transition: border-color .2s, transform .2s;
}
.spec-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.spec-icon { font-size: 2.2rem; display: block; margin-bottom: .8rem; }
.spec-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: .6rem; color: var(--text); }
.spec-card p { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* ── PATHOLOGIES GRID ── */
.patho-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.patho-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.8rem 1.5rem; cursor: pointer; transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column; gap: .5rem;
}
.patho-card:hover { border-color: var(--teal-l); transform: translateY(-4px); }
.patho-icon { font-size: 2rem; }
.card-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.card-body { color: var(--muted); font-size: .86rem; line-height: 1.6; flex: 1; }
.patho-more { font-size: .8rem; color: var(--teal-l); font-weight: 600; margin-top: .3rem; }

/* ── MEDIA ── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.media-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .2s, border-color .2s; }
.media-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.media-thumb { position: relative; height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wave-lines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(34,181,212,.08) 18px, rgba(34,181,212,.08) 19px); }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(34,181,212,.25);
  border: 2px solid var(--teal-l); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--teal-l); cursor: pointer; position: relative; z-index: 1;
  transition: background .2s;
}
.media-card:hover .play-btn { background: rgba(34,181,212,.4); }
.media-info { padding: 1.1rem 1.2rem; }
.media-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-l); font-weight: 600; margin-bottom: .3rem; }
.media-title { font-size: .92rem; font-weight: 500; color: var(--text); }

/* ── CONTACT ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 700px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-row { display: flex; gap: 1rem; margin-bottom: 1.4rem; align-items: flex-start; }
.contact-icon-wrap { font-size: 1.3rem; min-width: 36px; padding-top: .15rem; }
.contact-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-val { font-size: .93rem; color: var(--text); line-height: 1.6; }
.rdv-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem 1.4rem; margin-top: 1.5rem;
}
.rdv-card h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: .6rem; color: var(--teal-l); }
.rdv-card p { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.map-box {
  background: linear-gradient(135deg, var(--navy-l), #1e3d55);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; min-height: 320px; overflow: hidden;
}

/* ── FOOTER ── */
footer { background: var(--navy-l); border-top: 1px solid var(--border); text-align: center; padding: 2.5rem 1.5rem; }
.f-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem; }
.f-spec { color: var(--teal-l); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
footer p { color: var(--muted); font-size: .8rem; }
.f-social { display: flex; justify-content: center; gap: .9rem; margin: 1.2rem 0; }
.f-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(34,181,212,.08); border: 1px solid var(--border);
  color: var(--teal-l); transition: background .2s, transform .2s, color .2s;
}
.f-social a:hover { background: var(--teal-l); color: #fff; transform: translateY(-2px); }
.f-social svg { width: 19px; height: 19px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,15,25,.85); backdrop-filter: blur(6px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #0e2233; border: 1px solid var(--border); border-radius: 14px;
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 2.2rem;
  position: relative; transform: translateY(20px); transition: transform .25s;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: transparent; border: none;
  color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: .3rem .5rem;
  border-radius: 4px; transition: color .2s;
}
.modal-close:hover { color: var(--text); }
body.ar .modal-close { right: auto; left: 1rem; }
.modal-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.modal h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: .8rem; }
.modal-divider { width: 40px; height: 2px; background: linear-gradient(90deg, var(--teal-l), var(--gold)); border-radius: 2px; margin-bottom: 1.2rem; }
.modal p { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; line-height: 1.7; }
.modal strong { font-weight: 600; }
