/* ── 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 — Fond bleu cobalt + accents floraux ── */
:root {
  /* Fonds bleu cobalt */
  --bg:      #1b3f6b;
  --bg-l:    #224e82;
  --bg-d:    #142f52;

  /* Bleu cobalt vif (accents, liens) */
  --blue:    #7dc4f5;
  --blue-l:  #5aaee8;

  /* Corail / orange-rouge (fleurs orangées du logo) */
  --coral:   #c8a96e;
  --coral-l: #e0c080;

  /* Vert botanique (feuilles du logo) */
  --green:   #6abf82;
  --green-l: #88d49e;

  /* Textes */
  --text:    #eef4fc;
  --muted:   #9bbdd8;

  /* Cartes & bordures */
  --card:    rgba(255,255,255,.06);
  --border:  rgba(255,255,255,.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  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 1.5rem;
  background: rgba(20,47,82,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.nav-logo { display: flex; align-items: center; gap: .6rem; font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.nav-logo span { color: var(--blue-l); }
.nav-logo-img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(90,174,232,.35); box-shadow: 0 2px 10px rgba(0,0,0,.3); flex-shrink: 0; }
@media (max-width: 768px) { .nav-logo-img { width: 34px; height: 34px; } }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .66rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; transition: color .2s; padding: 0 .68rem; white-space: nowrap; }
.nav-links a:hover { color: var(--blue-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(--blue); border-color: var(--blue); 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(--bg-d); flex-direction: column; gap: 0; padding: 1rem 0; border-bottom: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1.5rem; font-size: .9rem; }
  .hamburger { display: flex; }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .nav-links a { font-size: .6rem; padding: 0 .45rem; }
}

/* ── 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 70% 55% at 25% 65%, rgba(200,169,110,.18) 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 75% 35%, rgba(106,191,130,.14) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(90,174,232,.22) 0%, transparent 65%),
    linear-gradient(160deg, #1b3f6b 0%, #142f52 60%, #0e2240 100%);
  z-index: 0;
}
.lung-svg { position: absolute; width: min(520px, 90vw); opacity: .08; 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(--blue-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; color: var(--text); }
#hero h1 em { color: var(--blue-l); font-style: normal; }
.hero-spec { font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); 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(--blue-l), var(--coral-l), var(--green-l), var(--blue-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(--blue-l); color: #fff; transition: background .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(90,174,232,.35);
}
.btn-p:hover { background: var(--blue); 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: rgba(255,255,255,.08); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.btn-o:hover { border-color: var(--blue-l); color: var(--blue-l); background: rgba(90,174,232,.1); 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(--blue-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; color: var(--text); }
.divider { width: 48px; height: 3px; background: linear-gradient(90deg, var(--blue-l), var(--coral-l)); border-radius: 2px; margin: 1.2rem 0 2.2rem; }

/* ── SÉPARATEURS ENTRE SECTIONS ── */
section:nth-child(even) { background: rgba(0,0,0,.12); border-radius: 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: rgba(255,255,255,.08);
  border: 3px solid rgba(90,174,232,.4);
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
  overflow: hidden;
}
.doc-badge {
  position: absolute; bottom: -10px; right: -10px;
  background: var(--coral); border-radius: 8px; padding: .4rem .7rem;
  font-size: .75rem; font-weight: 700; line-height: 1.2; text-align: center; color: #fff;
  box-shadow: 0 4px 12px rgba(200,169,110,.4);
}
.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(--coral); border-left: 3px solid var(--coral); padding-left: 1rem;
  margin: 1.2rem 0; line-height: 1.6;
}
body.ar .mot-text blockquote { border-left: none; border-right: 3px solid var(--coral); 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(--coral-l); 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, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.spec-card:hover { border-color: var(--blue-l); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.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, box-shadow .2s;
  display: flex; flex-direction: column; gap: .5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.patho-card:hover { border-color: var(--blue-l); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(90,174,232,.2); }
.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(--blue-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, box-shadow .2s; text-decoration: none; color: inherit; display: block; }
.media-card:hover { transform: translateY(-4px); border-color: var(--blue-l); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.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(255,255,255,.04) 18px, rgba(255,255,255,.04) 19px); }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12);
  border: 2px solid var(--blue-l); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--blue-l); cursor: pointer; position: relative; z-index: 1;
  transition: background .2s, border-color .2s;
}
.media-card:hover .play-btn { background: rgba(90,174,232,.25); border-color: var(--coral-l); color: var(--coral-l); }
.media-info { padding: 1.1rem 1.2rem; }
.media-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-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;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.rdv-card h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: .6rem; color: var(--blue-l); }
.rdv-card p { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.map-box {
  background: rgba(0,0,0,.2);
  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(--bg-d); border-top: none; 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; color: var(--text); }
.f-spec { color: var(--coral-l); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; font-weight: 600; }
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(255,255,255,.07); border: 1px solid var(--border);
  color: var(--blue-l); transition: background .2s, transform .2s, color .2s;
}
.f-social a:hover { background: var(--coral); border-color: var(--coral); color: #fff; transform: translateY(-2px); }
.f-social svg { width: 19px; height: 19px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,20,40,.85); backdrop-filter: blur(8px);
  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: var(--bg-l); 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;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.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; color: var(--text); }
.modal-divider { width: 40px; height: 2px; background: linear-gradient(90deg, var(--blue-l), var(--coral-l)); 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; color: var(--blue-l); }

/* ── ÉTUDES & SPÉCIALISATIONS — style simple ── */
.etudes-list { display: flex; flex-direction: column; gap: 0; }
.etude-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 1.5rem; align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.etude-row:last-child { border-bottom: none; }
@media (max-width: 600px) {
  .etude-row { grid-template-columns: 1fr; gap: .3rem; }
}
.etude-year {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-l); white-space: nowrap;
}
.etude-current .etude-year { color: var(--coral); }
.etude-info { display: flex; flex-direction: column; gap: .15rem; }
.etude-info strong { font-size: .95rem; font-weight: 600; color: var(--text); font-family: 'Playfair Display', serif; }
.etude-info span { font-size: .85rem; color: var(--muted); }
