/* =========================================================
   I3PS — Design system
   Sober, medical-grade, mobile-first
   ========================================================= */

:root {
  --navy-900: #0a1f3d;
  --navy-800: #102a4c;
  --navy-700: #163760;
  --navy-600: #1e3a5f;
  --teal-700: #0a5f60;
  --teal-600: #0e7c7b;
  --teal-500: #129ea0;
  --teal-100: #d9efef;
  --warm-50:  #faf8f4;
  --warm-100: #f4f0e8;
  --warm-200: #e6e2d9;
  --slate-900: #0f1722;
  --slate-700: #1a2433;
  --slate-600: #36465a;
  --slate-500: #5b6b81;
  --slate-400: #8696ab;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,23,34,.04), 0 1px 1px rgba(15,23,34,.03);
  --shadow-md: 0 8px 24px rgba(15,23,34,.06), 0 2px 6px rgba(15,23,34,.04);
  --shadow-lg: 0 24px 48px rgba(15,23,34,.10), 0 6px 12px rgba(15,23,34,.05);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1140px;
  --gutter: clamp(20px, 4.5vw, 32px);
  --header-h: 64px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--warm-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }

h1,h2,h3,h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; color: var(--navy-900); }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

button { font: inherit; cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy-900); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 999;
}
.skip:focus { left: 8px; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}
.section-alt { background: var(--warm-100); }
.section-dark {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: rgba(255,255,255,.86);
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--teal-100); }
.section-dark a { color: #fff; }
.section-dark .btn-primary { background: var(--teal-500); color: #fff; }
.section-dark .btn-primary:hover { background: var(--teal-600); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .section-lede { color: var(--slate-600); font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--teal-700); font-weight: 600; margin: 0 0 14px;
}
.eyebrow-light { color: var(--teal-100); }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.two-col-eq > * { align-self: stretch; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.94);
  border-bottom: 1px solid var(--warm-200);
}
/* Blur only on desktop — on mobile, backdrop-filter creates a containing block
   that clips the fixed-position drawer to header height. */
@media (min-width: 901px) {
  .site-header {
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    background: rgba(250,248,244,.85);
  }
}
.header-row {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy-900); text-decoration: none;
  min-width: 0; /* allow flex children to shrink */
  flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; padding: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem;
  color: var(--navy-900); letter-spacing: .02em;
}
.brand-tag {
  font-size: .72rem; color: var(--slate-500); letter-spacing: .03em;
  white-space: nowrap;
}

.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--slate-700); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 2px; position: relative; transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content:""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1.5px;
  background: var(--teal-600); transition: right .25s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--navy-900); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

.nav .nav-cta-mobile { display: none; }

.header-cta { white-space: nowrap; padding: 10px 18px; font-size: .9rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px;
  margin-left: auto; cursor: pointer;
  min-width: 44px; min-height: 44px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--warm-100); }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy-900);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
  border-radius: 2px;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tablet: compact nav labels, smaller CTA, no tagline */
@media (max-width: 1100px) {
  .brand-tag { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
}

/* Mobile breakpoint: switch to hamburger + drawer menu */
@media (max-width: 900px) {
  .site-header .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: var(--header-h); left: auto; right: 0; bottom: 0;
    width: min(340px, 88vw);
    background: var(--warm-50);
    flex-direction: column; gap: 0;
    align-items: stretch; justify-content: flex-start;
    padding: 12px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -16px 0 48px rgba(10,31,61,.18);
    transform: translateX(100%);
    pointer-events: none;
    transition: transform .32s var(--ease);
    z-index: 49;
  }
  .nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav[inert] { pointer-events: none; }
  .nav a {
    padding: 16px 6px;
    border-bottom: 1px solid var(--warm-200);
    font-size: 1.05rem; font-weight: 500;
    min-height: 52px; display: flex; align-items: center;
    color: var(--slate-700);
  }
  .nav a::after { display: none; }
  .nav .nav-cta-mobile {
    display: inline-flex;
    margin-top: 24px;
    border-bottom: 0;
    justify-content: center;
    padding: 16px 22px;
    font-size: 1rem;
    border-radius: 999px;
    min-height: auto;
    color: #fff;
  }
  /* prevent page scroll when drawer open */
  body.nav-open { overflow: hidden; touch-action: none; }
}

/* Backdrop behind drawer */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 31, 61, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  z-index: 48;
  display: none;
}
@media (max-width: 900px) {
  .nav-backdrop { display: block; }
}
.nav-backdrop.is-visible {
  opacity: 1; pointer-events: auto;
}

/* Smallest mobile: tighten brand */
@media (max-width: 380px) {
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------- floating RDV button (mobile only) ---------- */
.fab-rdv {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 40;
  display: none;
  align-items: center; gap: 8px;
  padding: 14px 20px 14px 18px;
  border-radius: 999px;
  background: var(--teal-600);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(14,124,123,.45), 0 2px 6px rgba(0,0,0,.15);
  transform: translateY(120%);
  transition: transform .35s var(--ease), background .2s var(--ease);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.fab-rdv svg { width: 20px; height: 20px; }
.fab-rdv.is-visible { transform: translateY(0); }
.fab-rdv:hover, .fab-rdv:focus-visible { background: var(--teal-700); outline: none; }

@media (max-width: 900px) {
  .fab-rdv { display: inline-flex; }
}

/* ---------- scroll anchors offset ---------- */
section[id], #top { scroll-margin-top: 80px; }
@media (max-width: 900px) { section[id], #top { scroll-margin-top: 72px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; line-height: 1;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(80px, 14vh, 140px) 0 clamp(64px, 10vw, 110px);
  color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(10,31,61,.92) 0%, rgba(10,31,61,.78) 45%, rgba(10,31,61,.45) 100%),
    linear-gradient(180deg, rgba(10,31,61,0) 60%, rgba(10,31,61,.5) 100%);
}
.hero-content { max-width: 760px; }
.hero .eyebrow { color: var(--teal-100); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .hl {
  display: block; color: var(--teal-100); font-style: italic; font-weight: 400;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.88); margin-bottom: 32px; max-width: 640px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero .btn-primary { background: var(--teal-500); border-color: var(--teal-500); }
.hero .btn-primary:hover { background: var(--teal-600); border-color: var(--teal-600); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.hero-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills li {
  font-size: .85rem; color: rgba(255,255,255,.95);
  padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  background: rgba(255,255,255,.06);
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--white); border-top: 1px solid var(--warm-200); border-bottom: 1px solid var(--warm-200);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 32px 0;
}
.trust-grid > div { display: flex; flex-direction: column; gap: 2px; }
.trust-grid strong {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy-900); font-weight: 600;
}
.trust-grid span { font-size: .9rem; color: var(--slate-500); }

@media (max-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 0;
  }
  .trust-grid > div {
    padding: 14px 16px;
    background: var(--warm-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--warm-200);
  }
  .trust-grid strong { font-size: 1.25rem; line-height: 1.2; }
  .trust-grid span { font-size: .82rem; line-height: 1.4; }
}
@media (max-width: 420px) {
  .trust-grid strong { font-size: 1.1rem; }
}

/* ---------- 3 pillars ---------- */
.three-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px;
}
.three-pillars article {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--warm-200); box-shadow: var(--shadow-sm);
}
.pillar-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem;
  margin-bottom: 16px;
}
.three-pillars h3 { margin-bottom: 8px; }
@media (max-width: 820px) { .three-pillars { grid-template-columns: 1fr; } }

.callout {
  margin-top: 40px; padding: 24px 28px; background: var(--white);
  border-left: 3px solid var(--teal-600); border-radius: 6px;
  color: var(--slate-700); box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--navy-900); }

/* ---------- procedures ---------- */
.procedures-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.procedure-card {
  background: #fff; border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--warm-200); box-shadow: var(--shadow-sm);
}
.procedure-card h3 { font-size: 1.55rem; margin-bottom: 4px; }
.proc-sub { color: var(--teal-700); font-size: .9rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 16px; }
.proc-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px;
  margin: 20px 0; padding: 20px 0; border-top: 1px solid var(--warm-200); border-bottom: 1px solid var(--warm-200);
}
.proc-stats > div { display: flex; flex-direction: column; }
.proc-stats dt { font-size: .78rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.proc-stats dd { font-family: var(--font-serif); color: var(--navy-900); font-weight: 500; font-size: 1.05rem; margin: 0; }
.proc-note { color: var(--slate-600); font-size: .95rem; margin: 0; }
@media (max-width: 820px) { .procedures-grid { grid-template-columns: 1fr; } }

.disclaimer { margin-top: 32px; font-size: .85rem; color: var(--slate-500); text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- check-list ---------- */
.check-list { list-style: none; padding: 0; margin: 16px 0 20px; }
.check-list li {
  padding-left: 32px; position: relative; margin-bottom: 12px; line-height: 1.6;
}
.check-list li::before {
  content:""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5f60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* ---------- BMI card ---------- */
.bmi-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--warm-200); box-shadow: var(--shadow-md);
  position: sticky; top: 96px;
}
.bmi-card h3 { margin-bottom: 4px; }
.bmi-sub { color: var(--slate-500); font-size: .9rem; margin-bottom: 20px; }
.bmi-card label {
  display: block; font-size: .85rem; color: var(--slate-600); font-weight: 500; margin-bottom: 12px;
}
.bmi-card input {
  display: block; width: 100%; margin-top: 4px; padding: 12px 14px; font-size: 1rem;
  border: 1px solid var(--warm-200); border-radius: var(--radius-sm); background: var(--warm-50);
  font-family: inherit; color: var(--slate-700);
  transition: border .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.bmi-card input:focus {
  outline: none; border-color: var(--teal-600); background: #fff;
  box-shadow: 0 0 0 3px rgba(14,124,123,.12);
}
.bmi-result {
  display: block; margin-top: 20px; padding: 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--warm-200); background: var(--warm-50); font-size: .95rem;
}
.bmi-result .b-num { font-family: var(--font-serif); font-size: 2rem; color: var(--navy-900); display: block; }
.bmi-result .b-cat { font-weight: 600; margin-top: 4px; display: block; }
.bmi-result.is-eligible { border-color: var(--teal-500); background: #f0f8f8; }
.bmi-result.is-eligible .b-cat { color: var(--teal-700); }
.bmi-result.is-borderline { border-color: #d4a64a; background: #fdf8ee; }
.bmi-result.is-borderline .b-cat { color: #8a6a1f; }
.bmi-result.is-noteligible { border-color: var(--warm-200); background: #fff; }
.bmi-result.is-noteligible .b-cat { color: var(--slate-600); }

@media (max-width: 820px) { .bmi-card { position: static; } }

/* ---------- timeline ---------- */
.timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative; max-width: 820px; margin: 0 auto;
}
.timeline::before {
  content:""; position: absolute; left: 19px; top: 14px; bottom: 14px;
  width: 2px; background: linear-gradient(180deg, var(--teal-500), var(--warm-200));
}
.timeline li {
  position: relative; padding-left: 60px; padding-bottom: 28px;
}
.timeline li:last-child { padding-bottom: 0; }
.t-step {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal-500);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 600; color: var(--teal-700);
}
.timeline h3 { margin: 4px 0 4px; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--slate-600); }

/* ---------- team ---------- */
.team-cat {
  margin: 56px 0 24px; font-family: var(--font-sans); font-weight: 600;
  font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-700);
  padding-bottom: 12px; border-bottom: 1px solid var(--warm-200);
}

/* full-width landscape banner above team */
.team-banner {
  margin: 0 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 7;
  background: var(--warm-100);
}
.team-banner img {
  width: 100%; height: 100%; object-fit: cover;
}

/* chirurgeons — 2 lead cards */
.team-grid-lead {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  margin-bottom: 24px;
}
.member-lead {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--warm-200); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: stretch;
}
.member-lead > img {
  width: 200px; flex-shrink: 0;
  aspect-ratio: 1 / 1; object-fit: cover; background: var(--warm-100);
}
.member-lead > div { padding: 28px; }
.member-lead h4 { margin: 0 0 4px; font-size: 1.15rem; }
.member-lead .role {
  color: var(--teal-700); font-weight: 600; font-size: .88rem;
  margin: 0 0 12px;
}
.member-lead p:not(.role) {
  color: var(--slate-600); margin: 0; font-size: .95rem;
}

/* alt: lead card without portrait — initials avatar */
.lead-avatar {
  width: 200px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--teal-700) 100%);
  display: grid; place-items: center;
  color: #fff;
}
.lead-avatar span {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 500;
  letter-spacing: .02em;
}

@media (max-width: 820px) {
  .team-grid-lead { grid-template-columns: 1fr; gap: 18px; }
  .member-lead { flex-direction: row; align-items: stretch; }
  .member-lead > img, .lead-avatar {
    width: 130px;
    aspect-ratio: 1 / 1;
    object-position: center 25%;
  }
  .member-lead > div { padding: 20px 22px; }
  .lead-avatar span { font-size: 2rem; }
}
@media (max-width: 480px) {
  .member-lead { flex-direction: column; }
  .member-lead > img, .lead-avatar {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-position: center 22%;
  }
  .member-lead > div { padding: 22px; }
}

/* small portrait cards — non-chirurgien members */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.member {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--warm-200); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.member img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--warm-100);
}
.member h4 {
  margin: 20px 22px 4px; font-size: 1.02rem;
}
.member .role {
  margin: 0 22px 22px; color: var(--slate-500); font-size: .85rem; line-height: 1.5;
}
.member-quote {
  margin: 0 22px 22px;
  padding: 12px 14px;
  background: var(--warm-50);
  border-left: 2px solid var(--teal-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--slate-600); font-style: italic;
  font-size: .85rem;
}
.member .role + .member-quote { margin-top: -10px; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .member {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 16px;
    row-gap: 0;
    padding: 16px 18px;
    align-items: center;
    box-shadow: none;
  }
  .member img {
    grid-row: 1 / span 2;
    width: 64px; height: 64px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0;
    align-self: center;
  }
  .member h4 {
    grid-column: 2; grid-row: 1;
    margin: 0;
    font-size: .98rem;
    align-self: end;
    line-height: 1.25;
  }
  .member .role {
    grid-column: 2; grid-row: 2;
    margin: 2px 0 0;
    font-size: .82rem;
    align-self: start;
    line-height: 1.4;
  }
  /* cards WITH a quote: image spans only top, quote takes full width below */
  .member:has(.member-quote) img { grid-row: 1 / span 2; }
  .member-quote {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: .85rem;
  }
}

/* full-width finale photo at bottom of team section */
.team-finale {
  margin: 40px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--warm-100);
  box-shadow: var(--shadow-md);
}
.team-finale img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 640px) { .team-finale { aspect-ratio: 4 / 3; } }

/* ---------- warning / sécurité ---------- */
.warning-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--warm-200);
  border-top: 4px solid var(--teal-600);
  box-shadow: var(--shadow-sm);
}
.warning-card h3 { color: var(--navy-900); margin-bottom: 12px; }
.warning-card strong { color: var(--navy-900); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
details {
  background: #fff; border: 1px solid var(--warm-200); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 10px; transition: box-shadow .2s var(--ease);
}
details[open] { box-shadow: var(--shadow-sm); }
summary {
  list-style: none; cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 600; color: var(--navy-900); position: relative;
  font-size: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content:""; position: absolute; right: 22px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s var(--ease);
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { margin: 0 22px 22px; color: var(--slate-600); }

/* ---------- contact ---------- */
.doctor-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.doctor-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.doc-head {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.doc-head img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
}
.doc-head h3 {
  color: #fff; font-family: var(--font-serif); font-size: 1.15rem;
  font-weight: 500; margin: 0; letter-spacing: -0.005em; text-transform: none;
}
.doc-head p {
  margin: 2px 0 0; color: var(--teal-100); font-size: .85rem; font-weight: 500;
}

.doc-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.1);
}
.doc-act {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: rgba(15, 23, 34, .35);
  color: #fff !important; text-decoration: none;
  min-height: 64px;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.doc-act:hover, .doc-act:focus-visible {
  background: rgba(14, 124, 123, .35);
  outline: none;
}
.doc-act:active { transform: scale(.98); }

.doc-act svg {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--teal-100); opacity: .95;
}
.doc-act-wa svg { color: #25d366; }

.doc-act span {
  display: flex; flex-direction: column; min-width: 0; flex: 1;
}
.doc-act b {
  font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.doc-act em {
  font-style: normal; font-size: .9rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

@media (max-width: 820px) {
  .doctor-cards { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .doc-head { padding: 18px 18px; }
  .doc-head img { width: 52px; height: 52px; }
  .doc-head h3 { font-size: 1.05rem; }
  .doc-actions { grid-template-columns: 1fr; }
  .doc-act { padding: 18px 18px; min-height: 68px; }
  .doc-act em { font-size: .95rem; }
}

/* address strip below doctor cards */
.address-strip {
  margin-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.address-strip > div:first-child {
  padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.address-strip h3 {
  color: #fff; font-family: var(--font-sans); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em; color: var(--teal-100);
  margin: 0 0 10px;
}
.address-strip p { margin: 0 0 6px; color: rgba(255,255,255,.85); }
.map-frame { aspect-ratio: 16 / 9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 820px) {
  .address-strip { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 4 / 3; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-900); color: rgba(255,255,255,.7); padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer strong, .site-footer h4 { color: #fff; }
.site-footer h4 {
  font-family: var(--font-sans); font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.site-footer p { font-size: .9rem; margin: 0 0 6px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; margin-top: 40px;
  font-size: .8rem; color: rgba(255,255,255,.5);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- print fallback ---------- */
@media print {
  .site-header, .nav-toggle, .hero-cta, .header-cta, .map-card { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
