/* ============================================================
   Ophtacard — feuille de style
   Palette : sauge/teal profond (identité "santé"), sable clair,
   corail doux pour les appels à l'action.
   ============================================================ */

:root {
  --teal-900: #0d3b3e;
  --teal-700: #12595e;
  --teal-600: #166f75;
  --teal-500: #1d8790;
  --teal-100: #e3f0ef;
  --sand-50: #faf8f4;
  --sand-100: #f3efe6;
  --coral-500: #e2724f;
  --coral-600: #cc5f3d;
  --ink-900: #1c2624;
  --ink-600: #4b5957;
  --ink-400: #7c8a87;
  --line: #e2e0d8;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(13, 59, 62, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 59, 62, 0.10);
  --shadow-lg: 0 20px 48px rgba(13, 59, 62, 0.16);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--sand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--teal-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-600); }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--coral-600); }
img { max-width: 100%; display: block; }
ul { padding-left: 1.1em; color: var(--ink-600); }
li { margin-bottom: 0.35em; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--teal-900); color: #fff; padding: 10px 16px;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--teal-900);
  color: #eef5f4;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #eef5f4; }
.topbar a:hover { color: var(--coral-500); }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar-info span { white-space: nowrap; }
.lang-switch a {
  padding: 2px 6px; border-radius: 4px; font-weight: 600;
  letter-spacing: 0.03em;
}
.lang-switch a.active { background: rgba(255,255,255,0.16); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--teal-900);
}
.brand-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-family: "Fraunces", serif; font-size: 1.2rem; }
.brand-text span { font-size: 0.78rem; color: var(--ink-400); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.main-nav a {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  color: var(--ink-900); font-weight: 600; font-size: 0.96rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--teal-100); color: var(--teal-700);
}
.nav-cta {
  background: var(--coral-500) !important; color: #fff !important;
  padding: 10px 20px !important; margin-left: 6px;
}
.nav-cta:hover { background: var(--coral-600) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--teal-900); margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--teal-900), var(--teal-600));
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.32;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 84px 0 96px;
  max-width: 720px;
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: #cfe8e6; font-weight: 700; margin-bottom: 14px;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #e7f2f1; font-size: 1.12rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.page-hero {
  background: linear-gradient(120deg, var(--teal-900), var(--teal-600));
  color: #fff; padding: 56px 0 68px;
}
.page-hero .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: #cfe8e6; font-weight: 700; margin-bottom: 10px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #e7f2f1; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700;
  font-size: 0.96rem; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--coral-500); color: #fff; }
.btn-primary:hover { background: var(--coral-600); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-line { color: var(--teal-700); border-color: var(--teal-500); background: #fff; }
.btn-line:hover { background: var(--teal-100); color: var(--teal-700); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--sand-100); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem;
  color: var(--coral-600); font-weight: 700; margin-bottom: 8px;
}

/* ---------- Info strip ---------- */
.info-strip {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: -46px; position: relative; z-index: 2;
}
.info-card {
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 22px 24px;
  border: 1px solid var(--line);
}
.info-card h3 { font-size: 1rem; margin-bottom: 6px; }
.info-card p { margin: 0; font-size: 0.94rem; }
.info-card a { font-weight: 700; }

/* ---------- Cards grid (specialties / practical) ---------- */
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-2 { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.tile .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--teal-100);
  color: var(--teal-700); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.tile h3 { margin-bottom: 8px; }
.tile p:last-child { margin-bottom: 0; }

/* ---------- Doctor cards ---------- */
.doctor-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doctor-photo { aspect-ratio: 4 / 3; background: var(--teal-100); overflow: hidden; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.doctor-role { color: var(--coral-600); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.doctor-body h3 { margin-bottom: 6px; }
.doctor-body p { font-size: 0.94rem; }
.doctor-days { font-size: 0.86rem; color: var(--ink-400); margin: 10px 0 16px; }
.doctor-body .btn { margin-top: auto; align-self: flex-start; }

.team-solo { max-width: 270px; margin: 24px auto 0; }

/* ---------- Doctor detail page ---------- */
.doctor-detail {
  display: grid; gap: 44px; grid-template-columns: 300px 1fr; align-items: start;
}
.doctor-detail .photo-col img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.contact-box {
  margin-top: 20px; background: var(--teal-100); border-radius: var(--radius-md);
  padding: 20px; font-size: 0.92rem;
}
.contact-box h3 { font-size: 0.95rem; margin-bottom: 10px; }
.detail-block { margin-bottom: 30px; }
.detail-block h2 { font-size: 1.3rem; }
.location-card {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px;
  margin-bottom: 14px; background: #fff;
}
.location-card h4 { margin: 0 0 6px; font-family: inherit; color: var(--teal-900); font-size: 1rem; }
.location-card p { margin: 0; font-size: 0.92rem; }

/* ---------- Schedule table ---------- */
.schedule { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.schedule th, .schedule td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.schedule th { background: var(--teal-100); color: var(--teal-900); font-family: "Fraunces", serif; font-weight: 600; }
.schedule tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal-900); color: #fff; border-radius: var(--radius-lg);
  padding: 44px; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #d9ece9; margin: 0; }

/* ---------- Map / contact ---------- */
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #cfe0de; margin-top: 60px; }
.footer-top { padding: 52px 0 32px; display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr 1fr; }
.site-footer h4 { color: #fff; font-family: "Fraunces", serif; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cfe0de; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; color: #cfe0de; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-brand p { color: #a9c3c0; font-size: 0.9rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 0.82rem; color: #9fbab7;
}
.footer-bottom a { color: #9fbab7; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 620px; margin: 0 auto; background: #fff; color: var(--ink-900);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 18px 20px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: 0.86rem; flex: 1 1 260px; }
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: 10px; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; border-radius: 999px; font-weight: 700; cursor: pointer; }
.btn-sm.accept { background: var(--teal-700); color: #fff; border: none; }
.btn-sm.decline { background: transparent; color: var(--ink-600); border: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .doctor-detail { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: #fff; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform 0.22s ease;
    padding: 90px 24px 24px; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
  .info-strip { margin-top: 24px; }
  .hero-inner { padding: 56px 0 64px; }
}
