/* ============================================================
   Cabinet dentaire RIVES – Annecy
   Design tokens from the official charte graphique
   ============================================================ */

:root {
  --cream: #fbf9ee;
  --cream-2: #f4f0df;
  --navy: #122140;
  --blue: #406680;
  --blue-dark: #2f5168;
  --sage: #738b8e;
  --burgundy: #52161f;
  --olive: #4e6048;
  --ink: #122140;
  --muted: #5b6477;
  --line: #e6e1cf;

  --font-serif: "Cormorant Garamond", "IvyMode", "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

/* ---------- Entrance animations ---------- */
@keyframes rives-page-in { from { opacity: 0; } to { opacity: 1; } }
main { animation: rives-page-in .7s ease both; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 24px);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.64rem, 5.5vw, 4.32rem); }
h2 { font-size: clamp(2.04rem, 3.84vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; }

p { margin: 0 0 1em; color: #2a3144; text-wrap: pretty; }
.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: #45506a;
  max-width: 56ch;
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 .5em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #1c2e57; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-doctolib { background: #1F7BCB; color: #fff; }
.btn-doctolib:hover { background: #1a6cb4; color: #fff; }
.btn-doctolib svg { flex: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(18,33,64,.18); }
.btn-ghost:hover { background: rgba(18,33,64,.05); }
.btn .dot {
  width: 18px; height: 18px; border-radius: 999px;
  background: #fff; color: var(--blue);
  display: inline-grid; place-items: center;
  font-family: var(--font-serif); font-weight: 600; font-size: .85rem;
  line-height: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(18,33,64,.06);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
/* Over the hero: transparent bar, logo hidden, only the nav links visible */
body[data-hero-visible] .site-header {
  background: #F4E4D4;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-hero-visible] .brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s;
}
.site-header .inner {
  display: grid; align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding-block: .8rem;
  min-height: 44px;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none;
  grid-column: 1;
  flex: 0 0 auto;
}
.brand img { height: 30px; width: auto; max-width: 60vw; object-fit: contain; }
.brand .wordmark {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.4rem;
  letter-spacing: .25em;
  font-weight: 400;
}
.brand:hover { text-decoration: none; }
.brand { transition: opacity .3s ease, visibility .3s; }

.nav-primary { display: flex; align-items: center; justify-content: center; gap: .25rem; grid-column: 2; }
.nav-primary > a, .nav-primary > .has-menu > button {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .95rem;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 500;
  background: none; border: 0; cursor: pointer;
  border-radius: 8px;
}
.nav-primary > a:hover, .nav-primary > .has-menu > button:hover {
  background: rgba(18,33,64,.05); text-decoration: none;
}
.nav-primary a[aria-current="page"] { color: var(--blue); font-weight: 600; }

.has-menu { position: relative; }
.has-menu > button .chev { transition: transform .2s ease; }
.has-menu[data-open="true"] > button .chev { transform: rotate(180deg); }
.has-menu { position: relative; }
.has-menu[data-open="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}
.submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(18,33,64,.25);
  padding: .4rem;
  display: none;
}
.has-menu[data-open="true"] .submenu { display: block; animation: submenu-in .22s cubic-bezier(.2,.7,.3,1) both; }
@keyframes submenu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .has-menu[data-open="true"] .submenu { animation: none; } }
.submenu a {
  display: block;
  padding: .65rem .85rem;
  font-size: .9rem;
  color: var(--navy);
  border-radius: 8px;
}
.submenu a:hover { background: var(--cream); text-decoration: none; }

.header-cta { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; grid-column: 3; }
.header-cta .btn {
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
body[data-hero-visible] .header-cta .btn {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(18,33,64,.15);
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body[data-nav-open] .nav-toggle span { background: transparent; }
body[data-nav-open] .site-header { position: fixed; top: 0; left: 0; right: 0; }
body[data-nav-open] .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body[data-nav-open] .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-primary, .header-cta .desktop-only { display: none; }
  .mobile-drawer {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    transform: translateY(-110%);
    transition: transform .25s ease;
    padding: 1.5rem clamp(20px, 4vw, 40px) 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 40;
    border-top: 1px solid var(--line);
    visibility: hidden;
  }
  body[data-nav-open] .mobile-drawer { transform: translateY(0); visibility: visible; }
  body[data-nav-open] { overflow: hidden; position: fixed; left: 0; right: 0; width: 100%; }
  .mobile-drawer a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--navy); }
  .mobile-drawer .group-label {
    margin-top: 1rem; padding: .4rem 0;
    font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--sage);
  }
  /* Accordion */
  .m-accordion { border-bottom: 1px solid var(--line); }
  .m-acc-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: none; border: 0; cursor: pointer;
    padding: .9rem 0; font: inherit; font-size: 1.05rem; color: var(--navy);
    font-family: inherit;
  }
  .m-acc-toggle .chev { transition: transform .2s ease; color: var(--sage); }
  .m-accordion[data-open="true"] .m-acc-toggle .chev { transform: rotate(180deg); }
  .m-acc-panel {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
  }
  .m-accordion[data-open="true"] .m-acc-panel { grid-template-rows: 1fr; }
  .m-acc-inner { min-height: 0; overflow: hidden; }
  .m-acc-panel a {
    border-bottom: 0; padding: .7rem 0 .7rem 1rem;
    font-size: 1rem; color: var(--ink, var(--navy));
  }
  .m-acc-panel a:first-child { padding-top: .2rem; }
  .m-acc-panel a:last-child { padding-bottom: .9rem; }
  .mobile-drawer .mobile-cta { margin-top: 1.5rem; }
  .mobile-drawer .mobile-cta { display: flex; }
  .mobile-drawer .mobile-cta .btn { width: auto; align-self: flex-start; justify-content: center; padding: .95rem 1.75rem; border-bottom: 0; color: #fff; font-size: .95rem; }
}
@media (min-width: 981px) { .mobile-drawer { display: none; } }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
section.tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section-heading { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-heading .eyebrow { display: inline-block; }

/* ---------- Hero (home) ---------- */
.hero {
  background: #F4E4D4;
  position: relative;
  overflow: hidden;
  padding-block: 0;
  height: calc(800px - var(--header-h));
}
.hero .grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  height: 100%;
  position: relative;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--blue);
  display: block;
}
.hero .hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin-top: 1.6rem;
  font-size: .9rem; color: var(--muted);
}
.hero .hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero-intro { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: min(100%, 46%); padding-left: clamp(1rem, 3vw, 2.5rem); padding-right: clamp(1rem, 2.5vw, 2rem); padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); height: 100%; box-sizing: border-box; }
.hero-logo {
  width: min(100%, 352px);
  height: auto;
  display: block;
  margin-bottom: .9rem;
}
.hero-intro .eyebrow { margin: 0; }
.hero-intro .ctas { margin-top: 2rem; justify-content: center; flex-wrap: nowrap; }

/* Tablet / medium: tighten the split so the intro never feels cramped */
@media (max-width: 980px) {
  .hero { height: min(calc(800px - var(--header-h)), 64vw); }
  .hero .grid {
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }
  .hero-intro .ctas { flex-wrap: wrap; }
  .hero-intro { padding-right: clamp(.5rem, 1.5vw, 1rem); }
  .hero-logo { width: min(100%, 300px); }
}
@media (max-width: 760px) {
  .hero-logo { width: min(78%, 288px); margin-inline: auto; }
  .hero-intro { padding-right: 0; padding-left: 0; }
}
.hero-img-wrap {
  background: transparent;
  overflow: visible;
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-img-wrap img {
  position: static;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

@media (max-width: 760px) {
  .hero { height: calc(92dvh - var(--header-h)); min-height: 440px; }
  .hero-intro .ctas { display: none; }
  .hero .grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    padding-bottom: 0;
    height: 100%;
  }
  .hero-intro { width: 100%; padding-top: .5rem; padding-bottom: 0; gap: .4rem; height: auto; }
  .hero-logo { width: min(54%, 200px); margin-inline: auto; }
  .hero-intro .eyebrow { margin-top: .1rem; }
  .hero-img-wrap {
    position: relative;
    inset: auto;
    width: auto;
    height: 100%;
    min-height: 0;
    margin: 0 calc(clamp(16px, 2.5vw, 24px) * -1);
    display: block;
  }
  .hero-img-wrap img {
    position: static;
    height: 100%;
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: top center;
  }
}

/* ---------- Welcome ---------- */
.welcome { text-align: center; }
.welcome .lead { margin-bottom: 1.4rem; margin-inline: auto; max-width: 65ch; }
.welcome .lead:last-of-type { margin-bottom: 0; }

.welcome-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(90px, 11vw, 150px);
  gap: .625rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
.welcome-mosaic > div {
  border-radius: var(--radius);
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}
.welcome-mosaic > div::before {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(18,33,64,.4);
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(18,33,64,.04) 12px 13px);
}
.welcome-mosaic > div img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.welcome-mosaic .m2 img { object-position: center center; }
.welcome-mosaic .m4 img { object-position: center 80%; }
/* centre : m1 verticale ; gauche : m2 (2/3 haut) + m3 (1/3 bas) ; droite : m5 (1/3 haut) + m4 (2/3 bas) */
.welcome-mosaic .m1 { grid-column: 3 / 5; grid-row: 1 / 4; }
.welcome-mosaic .m2 { grid-column: 1 / 3; grid-row: 1 / 3; }
.welcome-mosaic .m3 { grid-column: 1 / 3; grid-row: 3 / 4; }
.welcome-mosaic .m4 { grid-column: 5 / 7; grid-row: 2 / 4; }
.welcome-mosaic .m5 { grid-column: 5 / 7; grid-row: 1 / 2; }
@media (max-width: 760px) {
  .welcome-mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 24vw, 150px); }
  .welcome-mosaic .m1 { grid-column: span 3; grid-row: span 2; }
  .welcome-mosaic .m2 { grid-column: span 3; grid-row: span 2; }
  .welcome-mosaic .m3 { grid-column: span 2; grid-row: span 1; }
  .welcome-mosaic .m4 { grid-column: span 2; grid-row: span 1; }
  .welcome-mosaic .m5 { grid-column: span 2; grid-row: span 1; }
}
.welcome .welcome-img {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
  background: var(--cream-2);
}
.welcome .welcome-img img { width: 100%; height: 100%; object-fit: cover; object-position: 22% center; }

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 12px;
  margin-top: 1rem;
}
.gallery > div {
  border-radius: var(--radius);
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}
.gallery > div::before {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(18,33,64,.4);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(18,33,64,.04) 12px 13px);
}
.gallery .g1 { grid-row: span 2; }
.gallery .g4 { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gallery .g1, .gallery .g4 { grid-column: span 2; grid-row: auto; }
}

/* ---------- Team grid ---------- */
.team-section { background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.team-grid-3 { grid-template-columns: repeat(3, 1fr); }
.team-card-static { cursor: default; }
.team-card-static:hover { transform: none; box-shadow: none; }
@media (max-width: 900px) { .team-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .team-grid, .team-grid-3 { grid-template-columns: 1fr; } }

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -22px rgba(18,33,64,.25); text-decoration: none; }
.team-card .photo {
  aspect-ratio: 4 / 3.5;
  background: linear-gradient(135deg, #e7ecee 0%, #d5dee2 100%);
  position: relative;
}
.team-card .photo::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(18,33,64,.45);
}
.team-card .photo img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%;
}
.team-card-static .photo img { object-position: 62% 28%; }
.doctor-card .photo img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.team-card .body { padding: 1.25rem 1.5rem 1.1rem; }
.team-card h3 { margin-bottom: .15em; }
.team-card .role { color: var(--sage); font-size: .9rem; margin: 0; }

.team-wide {
  margin-top: 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.team-wide .photo {
  aspect-ratio: 16 / 6;
  background: linear-gradient(135deg, #e7ecee 0%, #d5dee2 100%);
  position: relative;
}
.team-wide .photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}
.team-wide .photo::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: ui-monospace, monospace; font-size: .75rem;
  letter-spacing: .15em; text-transform: uppercase; color: rgba(18,33,64,.45);
}
.team-wide .body { padding: 1rem 1.5rem; }

/* ---------- Services grid ---------- */
.services-section { background: #fff; }
#approche { scroll-margin-top: 90px; }
#equipe { scroll-margin-top: 80px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -22px rgba(18,33,64,.22); text-decoration: none; }
.service-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 1.25rem 1.5rem 1.5rem; }
.service-card .body h3 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .25em;
}
.service-card .arrow {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--cream); color: var(--navy);
  display: grid; place-items: center;
  transition: background .2s ease;
}
.service-card:hover .arrow { background: var(--blue); color: #fff; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.service-card .thumb.placeholder { position: relative; }
.service-card .thumb.placeholder::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sage);
}

/* ---------- Differentiators ---------- */
.diff-section { background: var(--navy); color: #fff; }
.diff-section h2, .diff-section .eyebrow { color: #fff; }
.diff-section .eyebrow { color: rgba(255,255,255,.55); }
.diff-section .lead { color: rgba(255,255,255,.7); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 980px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .diff-grid { grid-template-columns: 1fr; } }

.diff-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.diff-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  margin-bottom: .5rem;
}
.diff-card h3 { color: #fff; font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: .25em; }
.diff-card p { color: rgba(255,255,255,.7); margin: 0; font-size: .92rem; }

/* ---------- Service detail page ---------- */
.service-head {
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--cream);
}
.service-head .badge {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 1rem;
}
.service-hero-img {
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cream);
}
.service-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-img.in-body { max-width: 100%; margin: 1.75rem 0 .5rem; aspect-ratio: 16/9; }

.service-body { max-width: 760px; margin-inline: auto; padding: clamp(2rem, 4vw, 3rem) clamp(16px, 5vw, 24px); }
.service-body h2 { margin-top: 1.8em; }
.service-body h2:first-child { margin-top: 0; }
.service-body ul { margin: 1rem 0 0; padding-left: 1.1rem; }
.service-body ul li { margin-bottom: .7rem; padding-left: .15rem; }
.service-body ul li::marker { color: var(--blue); }

.faq { margin-top: 1.5rem; }
.faq details {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 300;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 0; color: var(--muted); font-size: .96rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: faq-open .35s ease both; }
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Doctor profile ---------- */
.doctor-page { padding-block: clamp(2.5rem, 5vw, 4rem); }
.doctor-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .doctor-layout { grid-template-columns: 1fr; } }

.doctor-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky; top: 80px;
}
@media (max-width: 820px) { .doctor-card { position: static; } }
.doctor-card .photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1d2c4f, #2a3a5e);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  position: relative; overflow: hidden;
}
.doctor-card .photo::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: ui-monospace, monospace; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.doctor-card h1 { font-size: 1.55rem; margin-bottom: .15em; }
.doctor-card .role { color: var(--sage); margin-bottom: 1rem; }
.doctor-card h4 { margin: 1.25rem 0 .6rem; }
.doctor-card .info-line { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--muted); margin-bottom: .4rem; }
.doctor-card .btn { width: 100%; justify-content: center; margin-top: 1rem; }

.doctor-name-mobile { display: none; }
@media (max-width: 820px) {
  .doctor-name-mobile {
    display: block;
    text-align: center;
    font-family: var(--font-serif);
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 1rem 0 .25rem;
  }
  .doctor-card .photo + .doctor-name-mobile + h4 { margin-top: .75rem; }
  .doctor-name-mobile { margin-bottom: 1.1rem; }
  .doctor-name-body { display: none; }
  .doctor-card .card-sub-desktop { display: none; }
}
@media (max-width: 760px) {
  .doctor-card .card-cta { display: none; }
}

.doctor-body h2 { margin-top: 1.5em; }
.doctor-body h2:not(.doctor-name-body) { font-size: clamp(1.43rem, 2.69vw, 2.1rem); }
@media (max-width: 760px) { .doctor-body h2:not(.doctor-name-body) { font-size: 1.86rem; } }
.doctor-body h2:first-child { margin-top: 0; }
.doctor-body ul.exp { list-style: none; padding: 0; margin: 0; }
.doctor-body ul.exp li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 1rem; align-items: baseline;
}
.doctor-body ul.exp .year {
  color: var(--sage); font-size: .85rem; min-width: 110px;
  font-variant-numeric: tabular-nums;
}
.dispo { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.doctor-body ul.creds { list-style: none; padding: 0; margin: 0; }
.doctor-body ul.creds li {
  position: relative;
  padding: .7rem 0 .7rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.doctor-body ul.creds li:last-child { border-bottom: none; }
.doctor-body ul.creds li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--sage);
}

/* ---------- Contact page ---------- */
.contact-head { text-align: center; padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); background: var(--cream); }
.contact-reception-img {
  position: relative;
  max-width: 100%;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-reception-img img { width: 100%; height: auto; display: block; }
.contact-head h1 { max-width: none; margin-inline: auto; }
.contact-head h1 .l { display: block; }
@media (min-width: 601px) { .contact-head h1 .l { white-space: nowrap; } }
.contact-head .btn { margin-top: 0; }
.contact-head-ctas { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.contact-head-ctas .btn { width: min(100%, 340px); justify-content: center; }
.contact-head-ctas .btn-ghost { background: #fff; }
.contact-head-ctas .btn-ghost:hover { background: rgba(18,33,64,.05); }

.contact-cards {
  display: grid;
  gap: 1rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  max-width: 760px;
  margin-inline: auto;
}
.contact-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: #fff;
}
.contact-card .ic {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--blue);
}
.contact-card h3 { margin-bottom: .15em; font-size: 1.15rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); font-size: .98rem; }
.contact-card a:hover { color: var(--navy); }

.map-wrap {
  margin-block: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  position: relative;
  background:
    linear-gradient(135deg, #eef3f5 0%, #dde6ea 100%);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) { .map-wrap { aspect-ratio: 1; } }
.map-consent {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; text-align: center; padding: 1.5rem;
  box-sizing: border-box;
}
.map-consent p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 32ch; }
.map-consent-link { font-size: .9rem; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar { display: none; }
@media (max-width: 760px) {
  .mobile-cta-bar {
    display: flex;
    gap: .6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: .7rem clamp(16px, 4vw, 20px);
    padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(251,249,238,.95);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-top: 1px solid rgba(18,33,64,.08);
  }
  .mobile-cta-bar .btn-blue, .mobile-cta-bar .btn-doctolib { flex: 1; justify-content: center; }
  .mobile-cta-stack { flex-direction: column; }
  .mobile-cta-bar.mobile-cta-stack .btn-ghost { flex: 1; width: 100%; padding-inline: 1rem; justify-content: center; }
  @media (max-width: 760px) { .contact-head-ctas { display: none; } }
  .mobile-cta-bar .btn-ghost {
    flex: 0 0 auto;
    background: #fff;
    width: 48px; padding-inline: 0;
    justify-content: center;
  }
  /* leave room so the fixed bar never hides footer content */
  body { padding-bottom: 4.5rem; }
  /* the contact page's stacked bar (two rows) is taller */
  body:has(.mobile-cta-stack) { padding-bottom: 8.5rem; }
}

/* ---------- Cabinet page sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse > div:first-child { order: 2; }
@media (max-width: 760px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > div:first-child { order: 0; }
}
.split .img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--cream-2);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.split .img::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(18,33,64,.4);
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(18,33,64,.04) 12px 13px);
}

.values {
  background: var(--cream);
}
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 980px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value-card .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--cream);
  color: var(--blue);
  display: grid; place-items: center; margin-bottom: .75rem;
}
.value-card h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: .3em; }
.value-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-grid h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  color: var(--navy);
  margin-bottom: .75rem;
}
.footer-grid a { display: block; padding-block: .35rem; color: var(--muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--navy); text-decoration: none; }
.footer-grid .btn { display: inline-flex; width: auto; padding: .85rem 1.5rem; font-size: .92rem; margin-top: .6rem; }
.footer-grid .btn-blue, .footer-grid .btn-blue:hover { color: #fff; }
.footer-grid .brand img { height: 156px; }
.footer-grid .tagline { color: var(--muted); font-size: .9rem; margin: .75rem 0 1rem; max-width: 28ch; }
.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--cream);
  text-align: center;
}
.cta-strip h2 { margin-bottom: .25em; }
.cta-strip p { color: var(--muted); margin-bottom: 1.5rem; }
.cta-strip .btn-ghost {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
}
.cta-strip .btn-ghost:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- Tiny utilities ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Legal / content pages ---------- */
.legal-page { padding-block: clamp(2.5rem, 5vw, 4rem); }
.legal-prose { max-width: 760px; margin-inline: auto; }
.legal-prose h1 { margin-bottom: .35em; }
.legal-prose .updated { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
.legal-prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.2rem 0 .5rem; }
.legal-prose h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; color: var(--navy); margin: 1.4rem 0 .3rem; }
.legal-prose p, .legal-prose li { color: #45506a; line-height: 1.7; }
.legal-prose ul { margin: 0 0 1em; padding-left: 1.2rem; }
.legal-prose li { margin-bottom: .45rem; }
.legal-prose a { color: var(--blue); }
.legal-note {
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: .88rem; color: var(--muted); margin: 1.25rem 0 0;
}
.legal-note strong { color: var(--navy); }

/* breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs span + span::before { content: "›"; margin: 0 .5em; color: var(--sage); }
@media (max-width: 760px) {
  .crumbs { font-size: .68rem; margin-bottom: 1.1rem; }
}
