/* ============================================================
   ema-trust.css
   Visual polish & trust components for the pregnancy microsite.
   Layered AFTER ema-premium.css. Reuses existing :root tokens
   (--ema-ink, --ema-teal, --ema-cream, --ema-line, radii, shadows,
   fonts). No edits to ema-premium.css.
   ============================================================ */

/* ============================================================
   Section heading rhythm fix.
   The base .ema-title--section forced max-width:12ch + up to 4rem,
   so headings wrapped into 4-5 tall lines with big gaps below —
   sections read as empty. Widen the wrap, ease the size, and pull
   the content closer to the heading.
   ============================================================ */
.ema-title--section,
.ema-homepage .ema-title--section {
  max-width: 19ch;
  font-size: clamp(1.8rem, 3.1vw, 3.05rem);
  line-height: 1.06;
}

.ema-section-head {
  gap: clamp(1rem, 3.5vw, 2.6rem);
  margin-bottom: clamp(1.4rem, 3vw, 2.3rem);
}

.ema-section-head--center {
  max-width: 640px;
}

.ema-section-head--center .ema-title--section,
.ema-homepage .ema-section-head--center .ema-title--section {
  max-width: 100%;
  margin-inline: auto;
}

.ema-section {
  padding: clamp(3.1rem, 6vw, 5.25rem) 0;
}

/* --- Credibility band ---------------------------------------- */
.ema-credibility {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.ema-cred-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
}

.ema-cred-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(18, 49, 57, 0.08);
  border-radius: var(--ema-radius-md);
  background: var(--ema-white);
  box-shadow: 0 12px 32px rgba(18, 49, 57, 0.07);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ema-cred-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 160, 134, 0.22);
  box-shadow: 0 18px 42px rgba(18, 49, 57, 0.11);
}

.ema-cred-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(22, 160, 134, 0.1);
  color: var(--ema-teal-dark);
  font-size: 1.25rem;
}

.ema-cred-card h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  color: var(--ema-ink);
}

.ema-cred-card p,
.ema-cred-card address {
  margin: 0;
  font-style: normal;
  color: rgba(35, 75, 82, 0.82);
  line-height: 1.7;
}

.ema-cred-card address {
  margin-bottom: 0.7rem;
}

.ema-cred-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--ema-teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.ema-cred-card__link:hover {
  text-decoration: underline;
}

/* --- Patient reassurance / voices ---------------------------- */
.ema-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
}

.ema-voice-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  margin: 0;
  border: 1px solid rgba(18, 49, 57, 0.08);
  border-radius: var(--ema-radius-md);
  background: var(--ema-white);
  box-shadow: 0 12px 32px rgba(18, 49, 57, 0.07);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}

.ema-voice-card__mark {
  font-family: var(--ema-font-display);
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--ema-teal-2);
}

.ema-voice-card p {
  margin: 0;
  color: var(--ema-ink-2);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ema-voice-card cite {
  margin-top: auto;
  color: var(--ema-muted);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Footer social row --------------------------------------- */
.ema-footer ul.ema-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
}

.ema-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.ema-footer__social a:hover {
  background: rgba(22, 160, 134, 0.32);
  border-color: rgba(68, 197, 153, 0.6);
  transform: translateY(-2px);
}

.ema-footer__social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.ema-footer__meta {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.ema-footer__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ============================================================
   Hero (Round 2): clean two-column layout + 2x2 bento grid.
   Replaces the old floating/tilted collage. The headline lives
   in its own column (no overlap) and the illustrations sit in an
   aligned grid (no tilt). ema-premium.css stays untouched.
   ============================================================ */

/* Real side-by-side hero on desktop. The homepage base makes the
   grid display:block with the copy positioned ABSOLUTELY over a
   centred visual (ema-premium.css:1527/1614) — that is the source
   of the overlap. We override to a proper 2-column grid and put
   the copy back in normal flow. */
@media (min-width: 992px) {
  .ema-homepage .ema-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    min-height: auto;
  }

  .ema-homepage .ema-hero__grid > .ema-hero__copy {
    position: static;
    top: auto;
    left: auto;
    max-width: none;
  }

  .ema-homepage .ema-hero__grid > .ema-hero-visual {
    width: auto;
    margin: 0;
  }
}

/* Bento container = caption pill + aligned grid */
.ema-hero-visual--bento {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.6vw, 1.3rem);
  min-height: auto;
}

.ema-hero-bento__cap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  margin: 0;
  border: 1px solid rgba(18, 49, 57, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ema-shadow-soft);
  padding: 0.55rem 1.15rem;
  color: var(--ema-ink);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ema-hero-bento__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ema-teal);
  box-shadow: 0 0 0 4px rgba(22, 160, 134, 0.16);
}

.ema-hero-bento__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 18px);
}

.ema-bento-tile {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid rgba(18, 49, 57, 0.08);
  border-radius: 20px;
  background: var(--ema-white);
  box-shadow: 0 10px 28px rgba(18, 49, 57, 0.06);
  padding: 1rem 1rem 0.65rem;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ema-bento-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 160, 134, 0.22);
  box-shadow: 0 18px 40px rgba(18, 49, 57, 0.1);
}

.ema-bento-tile figcaption {
  color: var(--ema-teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ema-bento-tile img {
  width: 100%;
  height: clamp(122px, 12.5vw, 166px);
  margin-top: 0.4rem;
  object-fit: contain;
  object-position: center bottom;
}

/* ============================================================
   Trust strip: make it POP as a credible private clinic.
   ============================================================ */
.ema-trust__panel {
  background: var(--ema-white);
  border-color: rgba(22, 160, 134, 0.16);
  box-shadow: 0 16px 44px rgba(18, 49, 57, 0.08);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ema-trust__head {
  max-width: 760px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
}

.ema-trust__head .ema-kicker {
  margin-inline: auto;
}

.ema-trust__title {
  margin: 0.7rem 0 0;
  font-family: var(--ema-font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ema-ink);
}

.ema-trust-badge {
  align-items: flex-start;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  text-align: left;
  background: var(--ema-white);
  border-color: rgba(18, 49, 57, 0.08);
  box-shadow: 0 8px 22px rgba(18, 49, 57, 0.06);
  padding: 1.15rem 1.1rem 1.05rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.ema-trust-badge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ema-teal), var(--ema-teal-2));
}

.ema-trust-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 160, 134, 0.28);
  box-shadow: 0 16px 36px rgba(18, 49, 57, 0.1);
}

.ema-trust-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--ema-teal-dark), #084c41);
  color: var(--ema-white);
  box-shadow: 0 8px 18px rgba(11, 117, 101, 0.35);
}

.ema-trust-badge__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Thin line-icons get lost on the teal chip — thicken + ensure
   the stroke is solid white (overrides the inline stroke-width). */
.ema-trust-badge__icon svg path,
.ema-trust-badge__icon svg circle,
.ema-trust-badge__icon svg rect {
  stroke: #ffffff;
  stroke-width: 2.4px;
}

.ema-trust-badge strong {
  margin-top: 0.1rem;
}

/* --- Responsive: match existing 991/720 breakpoints ---------- */
@media (max-width: 991px) {
  .ema-cred-grid,
  .ema-voice-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ accordion polish — turn the raw <details> into clean
   cards with a custom chevron (no default ► marker).
   (FAQ exists only on the two home pages.)
   ============================================================ */
.ema-faq {
  padding: 0;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ema-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.ema-faq summary::-webkit-details-marker {
  display: none;
}

.ema-faq summary::marker {
  content: "";
}

/* Custom chevron (down → up on open) */
.ema-faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.18rem;
  border-right: 2.5px solid var(--ema-teal);
  border-bottom: 2.5px solid var(--ema-teal);
  transform: rotate(45deg);
  transition: transform 240ms ease;
}

.ema-faq[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.05rem;
}

.ema-faq summary:hover {
  color: var(--ema-teal-dark);
}

.ema-faq:hover {
  border-color: rgba(22, 160, 134, 0.25);
}

.ema-faq[open] {
  border-color: rgba(22, 160, 134, 0.3);
  box-shadow: 0 18px 50px rgba(18, 49, 57, 0.1);
}

.ema-faq p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: rgba(35, 75, 82, 0.82);
}

/* ============================================================
   Footer brand lockup — replaces the clipped external test logo
   with a self-contained mark + wordmark that always renders.
   ============================================================ */
.ema-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
  color: var(--ema-white);
}

.ema-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--ema-teal), var(--ema-teal-dark));
  box-shadow: 0 8px 20px rgba(22, 160, 134, 0.32);
}

.ema-footer__mark svg {
  width: 1.55rem;
  height: 1.55rem;
}

.ema-footer__name {
  font-family: var(--ema-font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ema-white);
}

/* ════════════════════════════════════════════════════════════════════════
   EMA · 2026 SOFT-ILLUSTRATED REFRESH
   ────────────────────────────────────────────────────────────────────────
   Single, intentional override layer (loads last). Adds the teal × coral
   "soft illustrated" system: organic blobs, illustration frames, trimester
   pathway, service / team / local components, gov reference strip, long-form
   prose, and whisper-quiet staggered motion.
   Boldness lives in ONE place — the illustration system; everything else
   stays quiet. Coral = decorative / large-display / accent only.
   ════════════════════════════════════════════════════════════════════════ */

::selection { background: var(--ema-coral-soft); color: var(--ema-ink); }

/* --- Accent (coral) button: friendly secondary CTA. Ink text on coral ≈ AA. */
.ema-button--accent {
  --button-bg: linear-gradient(135deg, var(--ema-coral), #ff9e7f);
  --button-fg: var(--ema-ink);
  box-shadow: 0 14px 30px rgba(244, 102, 63, 0.26);
}
.ema-button--accent:hover { --button-bg: linear-gradient(135deg, var(--ema-coral-2), var(--ema-coral)); }

/* --- Section tints ------------------------------------------------------- */
.ema-section--bone { background: linear-gradient(180deg, var(--ema-bone), rgba(255, 247, 240, 0.4)); }
.ema-section--coral {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 138, 107, 0.14), transparent 26rem),
    linear-gradient(180deg, rgba(255, 225, 212, 0.5), rgba(255, 247, 240, 0.2));
}

/* Coral accent on kickers when opted-in */
.ema-kicker--coral { border-color: rgba(244, 102, 63, 0.22); color: var(--ema-coral-text, #c34a29); }
.ema-kicker--coral::before { background: var(--ema-coral); box-shadow: 0 0 0 5px rgba(255, 138, 107, 0.18); }

/* ════════════ Organic blob system (pure CSS, zero image weight) ════════════ */
.ema-blob {
  position: absolute;
  z-index: -1;
  border-radius: 42% 58% 57% 43% / 47% 42% 58% 53%;
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.9;
}
.ema-blob--coral { background: radial-gradient(circle at 35% 30%, rgba(255, 158, 127, 0.9), rgba(255, 138, 107, 0.45) 60%, transparent 78%); }
.ema-blob--teal  { background: radial-gradient(circle at 35% 30%, rgba(68, 197, 153, 0.55), rgba(22, 160, 134, 0.3) 60%, transparent 78%); }
.ema-blob--blush { background: radial-gradient(circle at 35% 30%, rgba(244, 217, 207, 0.95), rgba(244, 217, 207, 0.4) 60%, transparent 80%); }
@keyframes ema-blob-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); border-radius: 42% 58% 57% 43% / 47% 42% 58% 53%; }
  50%      { transform: translate3d(0, -14px, 0) rotate(6deg); border-radius: 54% 46% 43% 57% / 53% 58% 42% 47%; }
}
.ema-blob--drift { animation: ema-blob-drift 14s ease-in-out infinite; }

/* ════════════ Illustration frame (the signature element) ════════════ */
.ema-illo {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(1rem, 3vw, 2.4rem);
}
.ema-illo > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 40px rgba(18, 49, 57, 0.16));
}
.ema-illo .ema-blob { inset: 6% 4% 8% 4%; width: auto; height: auto; }
@keyframes ema-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ema-illo--float > img { animation: ema-float 7s ease-in-out infinite; }

/* ════════════ Hero (soft illustrated) ════════════ */
.ema-hero--illustrated .ema-hero__grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
}
.ema-hero-figure { position: relative; min-height: clamp(380px, 44vw, 560px); }
.ema-hero-figure > .ema-illo { height: 100%; }
.ema-hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(18, 49, 57, 0.14);
  padding: 0.7rem 1rem;
  backdrop-filter: blur(14px);
}
.ema-hero-chip > span:last-child { display: flex; flex-direction: column; line-height: 1.18; }
.ema-hero-chip strong { color: var(--ema-ink); font-size: 0.9rem; }
.ema-hero-chip > span:last-child > span { margin-top: 0.05rem; color: var(--ema-muted); font-size: 0.76rem; }
.ema-hero-chip__icon {
  display: grid; place-items: center; flex: none;
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  background: rgba(22, 160, 134, 0.12); color: var(--ema-teal-dark);
}
.ema-hero-chip--coral .ema-hero-chip__icon { background: rgba(255, 138, 107, 0.18); color: var(--ema-coral-2); }
.ema-hero-chip--tl { left: -6px; top: 9%; }
.ema-hero-chip--br { right: -6px; bottom: 12%; }

/* ════════════ Trimester pathway (persona-style segmentation) ════════════ */
.ema-pathway { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ema-path-card {
  display: flex; flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(18, 49, 57, 0.08);
  border-radius: var(--ema-radius-md);
  background: var(--ema-white);
  box-shadow: 0 14px 38px rgba(18, 49, 57, 0.07);
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.ema-path-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(18, 49, 57, 0.13); }
.ema-path-card__top {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 158px; padding: 1rem 1rem 0;
  overflow: hidden;
}
.ema-path-card:nth-child(1) .ema-path-card__top { background: linear-gradient(180deg, #ffe1d4, #ffd0bd); }
.ema-path-card:nth-child(2) .ema-path-card__top { background: linear-gradient(180deg, #d6f1ea, #b6e3d8); }
.ema-path-card:nth-child(3) .ema-path-card__top { background: linear-gradient(180deg, #fbe3d2, #f6cdb6); }
.ema-path-card:nth-child(4) .ema-path-card__top { background: linear-gradient(180deg, #f4dcd5, #ecc6bd); }
.ema-path-card__num {
  position: absolute; top: 0.7rem; left: 0.9rem;
  font-family: var(--ema-font-display);
  font-size: 2.4rem; font-weight: 650; line-height: 1;
  color: rgba(18, 49, 57, 0.34); letter-spacing: -0.05em;
}
.ema-path-card__top img { width: min(100%, 188px); height: auto; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(18, 49, 57, 0.16)); }
.ema-path-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.2rem 1.3rem; }
.ema-path-card__body h3 { margin: 0; font-family: var(--ema-font-display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ema-ink); }
.ema-path-card__tag { margin: 0.15rem 0 0; color: var(--ema-teal-dark); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.ema-path-card__body p { margin: 0.6rem 0 0; color: rgba(35, 75, 82, 0.8); font-size: 0.96rem; line-height: 1.6; }
.ema-path-card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 1rem; color: var(--ema-teal-dark); font-weight: 900; text-decoration: none; }
.ema-path-card__link:hover { text-decoration: underline; }

/* ════════════ Service snapshot ════════════ */
.ema-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ema-svc-card {
  display: flex; flex-direction: column; gap: 0.65rem; min-height: 100%;
  border: 1px solid rgba(18, 49, 57, 0.08); border-radius: var(--ema-radius-md);
  background: var(--ema-white); box-shadow: 0 12px 32px rgba(18, 49, 57, 0.07);
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.ema-svc-card:hover { transform: translateY(-5px); border-color: rgba(22, 160, 134, 0.22); box-shadow: 0 22px 50px rgba(18, 49, 57, 0.12); }
.ema-svc-card__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 16px;
  background: linear-gradient(140deg, var(--ema-teal-dark), #084c41); color: #fff;
  box-shadow: 0 10px 22px rgba(11, 117, 101, 0.32);
}
.ema-svc-card__icon svg { width: 1.5rem; height: 1.5rem; }
.ema-svc-card--coral .ema-svc-card__icon { background: linear-gradient(140deg, var(--ema-coral-2), var(--ema-coral)); box-shadow: 0 10px 22px rgba(244, 102, 63, 0.3); }
.ema-svc-card h3 { margin: 0; font-family: var(--ema-font-display); font-weight: 650; font-size: 1.32rem; letter-spacing: -0.02em; color: var(--ema-ink); }
.ema-svc-card p { margin: 0; color: rgba(35, 75, 82, 0.8); line-height: 1.65; }
.ema-svc-card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; color: var(--ema-teal-dark); font-weight: 900; text-decoration: none; }

/* ════════════ Team / E-E-A-T ════════════ */
.ema-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ema-team-card {
  display: flex; flex-direction: column; min-height: 100%;
  border: 1px solid rgba(18, 49, 57, 0.08); border-radius: var(--ema-radius-md);
  background: var(--ema-white); box-shadow: 0 12px 32px rgba(18, 49, 57, 0.07);
  overflow: hidden; transition: transform 220ms ease, box-shadow 220ms ease;
}
.ema-team-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(18, 49, 57, 0.12); }
.ema-team-card__photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(160deg, var(--ema-coral-soft), #d6f1ea);
}
.ema-team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.ema-team-card__photo--placeholder { display: grid; place-items: center; color: var(--ema-teal-dark); }
.ema-team-card__photo--placeholder svg { width: 38%; height: auto; opacity: 0.5; }
.ema-team-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.1rem, 2vw, 1.5rem); }
.ema-team-card__body h3 { margin: 0; font-family: var(--ema-font-display); font-weight: 650; font-size: 1.3rem; color: var(--ema-ink); }
.ema-team-card__role { margin: 0.2rem 0 0; color: var(--ema-teal-dark); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.ema-team-card__body p { margin: 0.7rem 0 0; color: rgba(35, 75, 82, 0.8); line-height: 1.6; }
.ema-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; padding: 0; list-style: none; }
.ema-tags li { border: 1px solid rgba(22, 160, 134, 0.22); border-radius: 999px; padding: 0.28rem 0.7rem; color: var(--ema-teal-dark); font-size: 0.74rem; font-weight: 800; }

/* Medical-review byline (E-E-A-T trust signal) */
.ema-medreview {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 1.4rem 0 0; padding: 0.85rem 1.1rem;
  border: 1px solid rgba(22, 160, 134, 0.2); border-radius: 16px;
  background: rgba(22, 160, 134, 0.06);
  color: var(--ema-ink-2); font-size: 0.9rem;
}
.ema-medreview svg { width: 1.2rem; height: 1.2rem; color: var(--ema-teal-dark); flex: none; }
.ema-medreview time { color: var(--ema-muted); }

/* ════════════ Local / city pages ════════════ */
.ema-breadcrumb { margin: 0 0 1.1rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.84rem; }
.ema-breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ema-muted); }
.ema-breadcrumb li:not(:last-child)::after { content: "/"; color: rgba(18, 49, 57, 0.3); }
.ema-breadcrumb a { color: var(--ema-teal-dark); font-weight: 800; text-decoration: none; }
.ema-breadcrumb a:hover { text-decoration: underline; }

.ema-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ema-fact {
  border: 1px solid rgba(18, 49, 57, 0.08); border-radius: var(--ema-radius-md);
  background: var(--ema-white); box-shadow: 0 12px 32px rgba(18, 49, 57, 0.06);
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
}
.ema-fact__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 0.8rem; border-radius: 14px; background: rgba(22, 160, 134, 0.1); color: var(--ema-teal-dark); }
.ema-fact__icon svg { width: 1.35rem; height: 1.35rem; }
.ema-fact h3 { margin: 0 0 0.35rem; font-size: 1.1rem; color: var(--ema-ink); }
.ema-fact p, .ema-fact address { margin: 0; font-style: normal; color: rgba(35, 75, 82, 0.82); line-height: 1.6; }

.ema-area-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ema-area-list li { border: 1px solid rgba(18, 49, 57, 0.1); border-radius: 999px; padding: 0.4rem 0.9rem; background: var(--ema-white); color: var(--ema-ink-2); font-size: 0.86rem; font-weight: 700; }
.ema-area-list--links { justify-content: center; gap: 0.6rem; }
.ema-area-list--links li { padding: 0; transition: border-color 180ms ease, transform 180ms ease; }
.ema-area-list--links li:hover { border-color: rgba(22, 160, 134, 0.4); transform: translateY(-2px); }
.ema-area-list--links a { display: block; padding: 0.55rem 1.1rem; color: var(--ema-teal-dark); font-weight: 800; text-decoration: none; }

.ema-map { overflow: hidden; border-radius: var(--ema-radius-md); border: 1px solid rgba(18, 49, 57, 0.1); box-shadow: var(--ema-shadow-soft); background: var(--ema-cream-2); }
.ema-map iframe { display: block; width: 100%; height: clamp(280px, 38vw, 420px); border: 0; }

/* ════════════ Government / partner reference strip ════════════ */
.ema-gov {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap;
  border: 1px dashed rgba(22, 160, 134, 0.32); border-radius: var(--ema-radius-md);
  background: rgba(255, 255, 255, 0.7);
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.2rem, 3vw, 2rem);
}
.ema-gov__body { flex: 1 1 320px; }
.ema-gov__body p { margin: 0.35rem 0 0; color: rgba(35, 75, 82, 0.82); line-height: 1.65; }
.ema-gov__body strong { color: var(--ema-ink); }
.ema-gov__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.ema-gov__links a { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid rgba(18, 49, 57, 0.12); border-radius: 999px; padding: 0.4rem 0.85rem; color: var(--ema-teal-dark); font-weight: 800; font-size: 0.85rem; text-decoration: none; }
.ema-gov__links a:hover { border-color: rgba(22, 160, 134, 0.4); }
/* Reserved slot for the official Gouvernement du Québec signature — kept empty
   and hidden until written authorization (visibilite@mcc.gouv.qc.ca) is granted. */
.ema-gov__logo-slot { display: none; flex: none; }
.ema-gov__logo-slot img { max-width: 200px; height: auto; }

/* ════════════ Long-form prose (guide / service content for SEO depth) ════════════ */
.ema-prose { max-width: 72ch; color: var(--ema-ink-2); }
.ema-prose > * + * { margin-top: 1.1rem; }
.ema-prose h2 { margin: 2.4rem 0 0; font-family: var(--ema-font-display); font-weight: 650; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.025em; color: var(--ema-ink); line-height: 1.12; }
.ema-prose h3 { margin: 1.8rem 0 0; font-family: var(--ema-font-display); font-weight: 650; font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--ema-ink); }
.ema-prose p { line-height: 1.78; }
.ema-prose ul, .ema-prose ol { margin: 1rem 0 0; padding-left: 1.3rem; line-height: 1.7; }
.ema-prose li { margin-top: 0.5rem; }
.ema-prose li::marker { color: var(--ema-teal); }
.ema-prose a { color: var(--ema-teal-dark); font-weight: 700; }
.ema-prose strong { color: var(--ema-ink); }
.ema-prose blockquote {
  margin: 1.6rem 0 0; padding: 1rem 1.3rem;
  border-left: 4px solid var(--ema-coral); border-radius: 0 16px 16px 0;
  background: rgba(255, 225, 212, 0.45); color: var(--ema-ink-2);
}
.ema-aside {
  border: 1px solid rgba(22, 160, 134, 0.2); border-radius: var(--ema-radius-md);
  background: rgba(214, 241, 234, 0.4); box-shadow: var(--ema-shadow-soft);
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
}
.ema-aside h3 { margin: 0 0 0.5rem; font-family: var(--ema-font-display); font-weight: 650; color: var(--ema-ink); }
.ema-aside p { margin: 0; color: rgba(35, 75, 82, 0.85); line-height: 1.65; }
.ema-aside--alert { border-color: rgba(244, 102, 63, 0.3); background: rgba(255, 225, 212, 0.5); }

/* Two-column content + sticky aside layout for guide / service pages */
.ema-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.ema-doc__aside { position: sticky; top: calc(var(--ema-header) + 16px); display: grid; gap: 1rem; }

/* ════════════ Whisper-quiet staggered motion ════════════ */
/* JS sets --reveal-i on grouped children; we turn it into a transition delay. */
.ema-reveal-group > [data-reveal] { transition-delay: calc(var(--reveal-i, 0) * 80ms); }

/* ════════════ Responsive ════════════ */
@media (max-width: 991px) {
  .ema-pathway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ema-svc-grid, .ema-team-grid, .ema-facts { grid-template-columns: 1fr; }
  .ema-hero--illustrated .ema-hero__grid { grid-template-columns: 1fr; }
  .ema-hero-figure { min-height: auto; }
  .ema-hero-chip--tl { left: 4px; top: 4px; }
  .ema-hero-chip--br { right: 4px; bottom: 4px; }
  .ema-doc { grid-template-columns: 1fr; }
  .ema-doc__aside { position: static; }
}
@media (max-width: 720px) {
  .ema-pathway { grid-template-columns: 1fr; }
  /* Mobile is designed, not shrunk: hide the floating chips (they overlap the
     illustration on small screens) and let the figure breathe full-width. */
  .ema-hero-chip { display: none; }
  .ema-illo { padding: 0.5rem; }
  .ema-gov { flex-direction: column; align-items: flex-start; }
}

/* Sticky-header scroll state (inner pages): compact + stronger separation. */
.ema-header.is-scrolled { box-shadow: 0 10px 30px rgba(18, 49, 57, 0.08); }
.ema-header.is-scrolled .ema-header__inner { min-height: 68px; }
.ema-premium-site--floating .ema-header.is-scrolled { box-shadow: none; }

/* ════════════════════════════════════════════════════════════════════════
   HERO REFINEMENT v2  +  header cleanup
   Fixes: over-large / over-tight H1 (words were merging), tiny floating
   illustration, and dead space. The illustration now lives in a generous
   framed panel so it reads as the deliberate signature element.
   ════════════════════════════════════════════════════════════════════════ */

/* Cleaner, more premium floating header pill (drop the random colour blobs). */
.ema-premium-site--floating .ema-header__inner::before,
.ema-premium-site--floating .ema-header__inner::after { display: none; }
.ema-premium-site--floating .ema-header__inner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(18, 49, 57, 0.1);
}
.ema-premium-site--floating .ema-header { padding-top: 12px; } /* tighter nav→hero */

/* Hero spacing: tighter to the nav, composed rhythm, headline-dominant. */
.ema-hero--illustrated { padding-top: clamp(0.2rem, 1.5vw, 1rem); padding-bottom: clamp(2.8rem, 6vw, 4.8rem); }
.ema-hero--illustrated .ema-hero__grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: center;
}

/* Headline = the single focal point: dominant size, calmer line-height. */
.ema-hero--illustrated .ema-title {
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.12;
  max-width: 16ch;
}
.ema-hero--illustrated .ema-lede { max-width: 50ch; }
.ema-hero--illustrated .ema-actions { margin-top: 1.7rem; }

/* Horizontal trust bar: one refined container, 4 icon+label items with dividers. */
.ema-hero-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.6rem 0 0; padding: 0.35rem 0.2rem; list-style: none; max-width: 41rem;
  border: 1px solid rgba(18, 49, 57, 0.08); border-radius: 20px;
  background: rgba(255, 255, 255, 0.7); box-shadow: 0 12px 30px rgba(18, 49, 57, 0.06);
  backdrop-filter: blur(8px);
}
.ema-hero-bar li {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.7rem; border-left: 1px solid rgba(18, 49, 57, 0.08);
}
.ema-hero-bar li:first-child { border-left: none; }
.ema-hero-bar__ic { display: grid; place-items: center; width: 1.95rem; height: 1.95rem; flex: none; border-radius: 10px; background: rgba(22, 160, 134, 0.1); color: var(--ema-teal-dark); }
.ema-hero-bar__ic svg { width: 1.1rem; height: 1.1rem; }
.ema-hero-bar li > span:last-child { display: flex; flex-direction: column; line-height: 1.12; }
.ema-hero-bar strong { color: var(--ema-ink); font-size: 0.82rem; font-weight: 800; }
.ema-hero-bar li > span:last-child > span { color: var(--ema-muted); font-size: 0.72rem; }

/* Art-directed scene on the right: a depth-layered card (glass sheen + light
   beam + top light + grounded floor + contact shadow), a scaled-up grounded
   character, a second medical layer (heartbeat card) and subtle particles —
   so it reads as a designed experience, not a PNG dropped in a box. */
.ema-hero-figure { position: relative; width: min(100%, 470px); margin-left: auto; aspect-ratio: 4 / 5; isolation: isolate; }
/* soft floating particles */
.ema-hero-figure::before, .ema-hero-figure::after {
  content: ""; position: absolute; border-radius: 999px; z-index: 3; pointer-events: none;
}
.ema-hero-figure::before { width: 14px; height: 14px; left: -20px; top: 32%; background: radial-gradient(circle at 35% 30%, #ffb59c, #ff8a6b); box-shadow: 0 0 0 6px rgba(255,138,107,0.12); }
.ema-hero-figure::after { width: 9px; height: 9px; right: 9%; top: -13px; background: radial-gradient(circle at 35% 30%, #7fd3c4, var(--ema-teal)); box-shadow: 0 0 0 5px rgba(22,160,134,0.12); }

.ema-hero-figure > .ema-illo {
  position: absolute; inset: 0; display: block; margin: 0; padding: 0;
  border-radius: 32px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(150deg, rgba(255,255,255,0.55) 0%, transparent 30%),          /* glass sheen */
    radial-gradient(56% 72% at 40% 0%, rgba(255,255,255,0.6), transparent 55%),    /* light beam */
    radial-gradient(80% 44% at 50% 2%, rgba(255,255,255,0.9), transparent 60%),    /* top light */
    linear-gradient(180deg, #fdeae2 0%, #f7dccf 56%, #eecbbb 100%);
  box-shadow: 0 40px 80px -34px rgba(18, 49, 57, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* grounded inner floor */
.ema-hero-figure > .ema-illo::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(244, 102, 63, 0.16));
}
/* soft contact shadow under the character */
.ema-hero-figure > .ema-illo::after {
  content: ""; position: absolute; left: 50%; bottom: 5.5%; transform: translateX(-50%);
  width: 62%; height: 6.5%; border-radius: 50%; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(18, 49, 57, 0.28), transparent 70%);
  filter: blur(9px);
}
/* scaled-up, grounded character (fills more; less dead space) */
.ema-hero-figure > .ema-illo img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  z-index: 2; width: min(122%, 580px); max-width: none; height: auto;
  object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 14px 18px rgba(18, 49, 57, 0.18));
  animation: none;
}
.ema-hero-figure .ema-blob { display: none; }
/* badge overlaps the card's top-left edge (slightly outside = depth) */
.ema-hero-figure .ema-hero-chip {
  position: absolute; left: -16px; top: 26px; right: auto; bottom: auto; z-index: 4;
  padding: 0.66rem 0.92rem;
}
/* second layer: appointment card with team avatars, overlapping bottom-right edge */
.ema-hero-appt {
  position: absolute; right: -18px; bottom: 13%; z-index: 4; width: min(252px, 76%);
  display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 0.65rem; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 18px;
  background: rgba(255, 255, 255, 0.96); box-shadow: 0 22px 50px rgba(18, 49, 57, 0.18);
  padding: 0.75rem 0.85rem; backdrop-filter: blur(14px);
}
.ema-hero-appt__ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 12px; background: rgba(22, 160, 134, 0.12); color: var(--ema-teal-dark); }
.ema-hero-appt__ic svg { width: 1.2rem; height: 1.2rem; }
.ema-hero-appt__txt strong { display: block; color: var(--ema-ink); font-size: 0.9rem; line-height: 1.15; }
.ema-hero-appt__txt span { display: block; color: var(--ema-muted); font-size: 0.76rem; }
.ema-hero-appt__avatars { grid-column: 1 / -1; display: flex; align-items: center; }
.ema-hero-appt__avatars .av {
  width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 2px solid #fff; margin-left: -0.5rem;
  display: grid; place-items: center; overflow: hidden; color: var(--ema-teal-dark);
  background: linear-gradient(150deg, var(--ema-coral-soft), #cdeee6);
}
.ema-hero-appt__avatars .av:first-child { margin-left: 0; }
.ema-hero-appt__avatars .av svg { width: 1.1rem; height: 1.1rem; opacity: 0.72; }
.ema-hero-appt__avatars .more { margin-left: 0.45rem; font-size: 0.74rem; font-weight: 900; color: var(--ema-teal-dark); }

/* Subtle lighting kept close to the scene — not a muddy full-hero wash. */
.ema-hero--illustrated { position: relative; }
.ema-hero--illustrated::before {
  right: auto; top: auto; left: -18rem; bottom: -20rem;
  width: 40rem; height: 40rem; filter: none;
  background: radial-gradient(circle, rgba(244, 217, 207, 0.3), transparent 70%);
}
.ema-hero--illustrated::after {
  left: auto; bottom: auto; right: -14rem; top: -12rem;
  width: 44rem; height: 44rem;
  background: radial-gradient(circle, rgba(255, 138, 107, 0.1), transparent 68%);
}

/* Inner-page hero titles: same readable treatment as the homepage hero. */
.ema-title--page { font-size: clamp(2.2rem, 3.8vw, 3.7rem); line-height: 1.08; max-width: 16ch; }

@media (max-width: 991px) {
  /* minmax(0,1fr) prevents content (the big H1) from forcing the track wider
     than the viewport — was causing right-edge clipping on mobile. */
  .ema-hero--illustrated .ema-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .ema-hero--illustrated .ema-title { max-width: 100%; }
  .ema-hero-figure { width: min(100%, 400px); margin-inline: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 700px) {
  .ema-hero--illustrated .ema-title { font-size: clamp(1.85rem, 8.5vw, 2.55rem); letter-spacing: -0.02em; }
  .ema-hero--illustrated .ema-lede { max-width: 100%; }
  .ema-hero--illustrated .ema-hero__copy { min-width: 0; }
  .ema-hero-trust { max-width: 100%; }
  .ema-hero-figure { width: 100%; aspect-ratio: 4 / 4.4; }
  .ema-hero-figure > .ema-illo img { width: min(122%, 420px); }
  .ema-hero-figure .ema-hero-chip { left: 8px; top: 12px; }
  .ema-hero-appt { right: 8px; bottom: 10%; width: min(230px, 80%); }
  .ema-hero-figure::before, .ema-hero-figure::after { display: none; } /* drop particles on phone */
}
/* Trust bar → 2×2 on tablet/phone */
@media (max-width: 760px) {
  .ema-hero-bar { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .ema-hero-bar li:nth-child(odd) { border-left: none; }
  .ema-hero-bar li:nth-child(n+3) { border-top: 1px solid rgba(18, 49, 57, 0.08); }
}

/* ════════════ Hero critique refinements (premium-review pass, 9.1/10) ════════════ */
/* tighter headline rhythm + darker, more readable body (a11y for older users) */
.ema-hero--illustrated .ema-title { max-width: 15ch; }
.ema-hero--illustrated .ema-lede { color: rgba(28, 62, 68, 0.92); }
/* roomier, more luxurious nav spacing */
.ema-nav__links { gap: clamp(0.95rem, 1.9vw, 1.6rem); }
/* CTA presence + arrow motion on hover (perceived quality) */
.ema-button--primary { box-shadow: 0 16px 34px rgba(11, 117, 101, 0.30); }
.ema-button span[aria-hidden] { transition: transform 200ms ease; }
.ema-button:hover span[aria-hidden] { transform: translateX(3px); }
/* organic background depth: warm radial behind the headline, soft green behind the illustration */
.ema-hero--illustrated::before { background: radial-gradient(circle, rgba(244, 217, 207, 0.42), transparent 70%); }
.ema-hero--illustrated::after  { background: radial-gradient(circle, rgba(68, 197, 153, 0.12), transparent 68%); }
/* gentle floating illustration (preserves horizontal centring) */
@keyframes ema-hero-float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.ema-hero-figure > .ema-illo img { animation: ema-hero-float 7s ease-in-out infinite; }
/* subtle hover lift on the floating cards */
.ema-hero-figure .ema-hero-chip, .ema-hero-appt { transition: transform 240ms ease, box-shadow 240ms ease; }
.ema-hero-figure:hover .ema-hero-chip { transform: translateY(-2px); }
.ema-hero-figure:hover .ema-hero-appt { transform: translateY(-3px); }
/* concise credibility line under the CTAs */
.ema-hero-proof { display: flex; align-items: center; gap: 0.5rem; margin: 1.1rem 0 0; color: var(--ema-ink-2); font-size: 0.86rem; font-weight: 800; }
.ema-hero-proof svg { width: 1.05rem; height: 1.05rem; color: var(--ema-teal-dark); flex: none; }

/* ════════════ Premium full-scene hero (client mockup) ════════════ */
/* A finished room-scene illustration set in a landscape "card", with the
   appointment details merged into one floating panel on the right edge and a
   deep, grounded shadow so the visual reads as part of the page, not a flat
   PNG. Scoped to .ema-hero--scene so the portrait cutout heroes on the
   service pages (which share .ema-hero-figure) are untouched. */
.ema-hero--scene .ema-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
}
.ema-hero-figure--scene {
  position: relative; width: min(100%, 770px); margin-left: auto;
  aspect-ratio: 1515 / 1038; isolation: isolate; overflow: visible;
}
.ema-hero-figure--scene::before, .ema-hero-figure--scene::after { content: none; } /* drop cutout particles */
.ema-hero-figure--scene > .ema-illo {
  position: absolute; inset: 0; margin: 0; padding: 0;
  border-radius: 30px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.6); background: #f1eadf;
  box-shadow: 0 54px 104px -46px rgba(18, 49, 57, 0.55),
              0 14px 32px -18px rgba(18, 49, 57, 0.30),
              inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.ema-hero-figure--scene > .ema-illo::before, .ema-hero-figure--scene > .ema-illo::after { content: none; } /* drop coral floor + cutout contact shadow */
.ema-hero-figure--scene > .ema-illo img {
  position: absolute; inset: 0; left: 0; top: 0; transform: none;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 50%;
  filter: none; animation: none;
}
/* merged appointment panel, overlapping the right edge (1 card, 3 rows) */
.ema-hero-card {
  position: absolute; z-index: 5; right: -30px; top: auto; bottom: -5%;
  width: min(230px, 50%); display: grid; gap: 0.58rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 62px rgba(18, 49, 57, 0.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.ema-hero-figure--scene:hover .ema-hero-card { transform: translateY(-3px); box-shadow: 0 34px 70px rgba(18, 49, 57, 0.26); }
.ema-hero-card__row { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: center; }
.ema-hero-card__ic { display: grid; place-items: center; width: 2.05rem; height: 2.05rem; border-radius: 11px; background: rgba(22, 160, 134, 0.12); color: var(--ema-teal-dark); flex: none; }
.ema-hero-card__ic svg { width: 1.15rem; height: 1.15rem; }
.ema-hero-card__txt strong { display: block; color: var(--ema-ink); font-size: 0.88rem; line-height: 1.15; }
.ema-hero-card__txt span { display: block; color: var(--ema-muted); font-size: 0.75rem; }
.ema-hero-card__row--avatars { display: flex; align-items: center; margin-top: 0.05rem; padding-top: 0.6rem; border-top: 1px solid rgba(18, 49, 57, 0.08); }
.ema-hero-card__row--avatars .av { width: 1.85rem; height: 1.85rem; border-radius: 999px; border: 2px solid #fff; margin-left: -0.5rem; display: grid; place-items: center; overflow: hidden; color: var(--ema-teal-dark); background: linear-gradient(150deg, var(--ema-coral-soft), #cdeee6); }
.ema-hero-card__row--avatars .av:first-child { margin-left: 0; }
.ema-hero-card__row--avatars .av svg { width: 1.05rem; height: 1.05rem; opacity: 0.72; }
.ema-hero-card__row--avatars .more { margin-left: 0.45rem; font-size: 0.74rem; font-weight: 900; color: var(--ema-teal-dark); }
/* foreground table prop — a standalone transparent asset that overlaps and
   spills past the card's bottom-left edge (the "table beyond the square").
   Positioned in % of the figure so it stays aligned at every width. Tune
   left/bottom/width once the real asset is in. */
.ema-hero-table {
  position: absolute; z-index: 4; display: block;
  left: -9%; bottom: 6%; width: 41%;
  pointer-events: none;
  filter: drop-shadow(0 26px 24px rgba(18, 49, 57, 0.26));
}
.ema-hero-table img { display: block; width: 100%; height: auto; }
@media (max-width: 991px) {
  .ema-hero--scene .ema-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  .ema-hero-figure--scene { width: min(100%, 580px); margin-inline: auto; }
}
@media (max-width: 700px) {
  .ema-hero-card { right: 6px; top: auto; bottom: 12px; width: min(218px, 84%); padding: 0.7rem 0.78rem; gap: 0.5rem; }
  .ema-hero-card__ic { width: 1.85rem; height: 1.85rem; }
}

/* ══════════════════════════════════════════════════════════════════
   HERO PERFECTION LAYER — art-directed finish for the scene hero.
   Layered ambient light, glass info card, headline swash, tuned
   shadows on the scene + table so everything shares one light source.
   ══════════════════════════════════════════════════════════════════ */

/* 1 · Ambient background: blush wash behind the table breakout (lower
   left), mint wash top-right, calm vertical gradient. Replaces the two
   generic radial glows from the base hero. */
.ema-hero--scene {
  background:
    radial-gradient(46% 42% at 10% 92%, rgba(244, 217, 207, 0.55), transparent 70%),
    radial-gradient(44% 40% at 90% 6%, rgba(68, 197, 153, 0.13), transparent 72%),
    linear-gradient(165deg, #fdfaf4 0%, #f4faf6 55%, #eef6f1 100%);
}
/* oversized ring echoing the card radius — replaces the base ::before glow */
.ema-hero--scene::before {
  width: 34rem;
  height: 34rem;
  right: -9rem;
  top: -13rem;
  left: auto;
  bottom: auto;
  border-radius: 999px;
  border: 1.5px solid rgba(22, 160, 134, 0.14);
  background: none;
  filter: none;
}
/* whisper of paper grain over the whole hero — replaces the base ::after glow */
.ema-hero--scene::after {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  filter: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: multiply;
}

/* 2 · Headline art direction: accent phrase in true Fraunces italic with
   a hand-drawn coral swash (desktop only — inline fallback below 992px). */
.ema-hero--scene .ema-title { text-wrap: balance; }
.ema-title__accent { font-style: italic; color: var(--ema-teal-dark); }
body.ema-premium-site .ema-title__swash { display: none; }
@media (min-width: 992px) {
  .ema-title__accent { display: inline-block; position: relative; }
  body.ema-premium-site .ema-title__swash {
    display: block;
    position: absolute;
    left: 0.02em;
    bottom: -0.02em;
    width: 100%;
    height: 0.13em;
    color: var(--ema-coral);
    opacity: 0.9;
  }
}

/* 3 · Info card: glass panel with gradient hairline border, teal-tinted
   two-layer shadow stack, gradient icon tiles, refined type. */
.ema-hero-card {
  border-color: transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.86)) padding-box,
    linear-gradient(155deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.35) 38%, rgba(22, 160, 134, 0.35)) border-box;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    0 2px 5px rgba(11, 63, 60, 0.08),
    0 22px 44px -16px rgba(11, 63, 60, 0.26),
    0 46px 90px -34px rgba(11, 63, 60, 0.22);
}
.ema-hero-figure--scene:hover .ema-hero-card {
  box-shadow:
    0 3px 7px rgba(11, 63, 60, 0.09),
    0 26px 52px -16px rgba(11, 63, 60, 0.3),
    0 54px 100px -34px rgba(11, 63, 60, 0.24);
}
.ema-hero-card__ic {
  background: linear-gradient(155deg, #e7f7f1, #d0eee3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 3px rgba(11, 63, 60, 0.07);
}
.ema-hero-card__txt strong { font-size: 0.9rem; letter-spacing: -0.01em; }
.ema-hero-card__txt span { font-size: 0.74rem; }
.ema-hero-card__row--avatars .av { box-shadow: 0 1px 3px rgba(11, 63, 60, 0.18); }
.ema-hero-card__row--avatars .more {
  margin-left: auto;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 160, 134, 0.16);
  background: rgba(22, 160, 134, 0.1);
}
/* live pulse beside "Rendez-vous rapide" (killed by the global
   reduced-motion switch) */
.ema-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: #27b98a;
  vertical-align: 1px;
  animation: ema-pulse 2.4s ease-out infinite;
}
@keyframes ema-pulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 185, 138, 0.4); }
  60% { box-shadow: 0 0 0 6px rgba(39, 185, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 185, 138, 0); }
}

/* 4 · Scene lighting: teal-tinted ambient shadow + soft bottom vignette
   inside the frame; table drop-shadow warmed to match the same light. */
.ema-hero-figure--scene > .ema-illo {
  box-shadow:
    0 2px 8px rgba(11, 63, 60, 0.1),
    0 54px 104px -46px rgba(11, 63, 60, 0.5),
    0 14px 32px -18px rgba(11, 63, 60, 0.28),
    0 80px 130px -50px rgba(22, 160, 134, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.ema-hero-figure--scene > .ema-illo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(to top, rgba(18, 49, 57, 0.09), transparent 24%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), transparent 12%);
  pointer-events: none;
}
.ema-hero-table {
  filter: drop-shadow(0 20px 18px rgba(93, 60, 34, 0.24)) drop-shadow(0 4px 6px rgba(93, 60, 34, 0.14));
}

/* 5 · CTA row: primary gets an inner top-highlight + teal glow; press
   state; factual reassurance micro-line under the buttons. */
.ema-button--primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 28px -8px rgba(11, 117, 101, 0.5),
    0 3px 8px rgba(11, 117, 101, 0.18);
}
.ema-button--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 38px -10px rgba(11, 117, 101, 0.55),
    0 4px 10px rgba(11, 117, 101, 0.2);
}
.ema-button:active { transform: translateY(0) scale(0.985); transition-duration: 90ms; }
.ema-actions__note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  color: var(--ema-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.ema-actions__note svg { width: 0.95rem; height: 0.95rem; color: var(--ema-teal-dark); flex: none; }

/* 6 · Trust bar: machined finish — inner highlight, gradient icon chips,
   slightly larger labels. */
.ema-hero-bar {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 34px -12px rgba(18, 49, 57, 0.12);
  backdrop-filter: blur(10px) saturate(1.2);
}
.ema-hero-bar__ic {
  background: linear-gradient(155deg, #e7f7f1, #d3efe5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ema-hero-bar strong { font-size: 0.84rem; }
.ema-hero-bar li > span:last-child > span { font-size: 0.73rem; }
/* size cells to their content so long labels don't triple-wrap */
@media (min-width: 992px) {
  .ema-hero-bar { grid-template-columns: repeat(4, auto); justify-content: start; }
  .ema-hero-bar li { padding: 0.5rem 0.85rem 0.5rem 0.65rem; }
}

/* ══════════════════════════════════════════════════════════════════
   SITE-WIDE DESIGN ELEVATION — every page opens with the same ambient
   light as the homepage; cards, dark section, footer share one finish.
   ══════════════════════════════════════════════════════════════════ */

/* A · Inner-page heroes: calmer layered washes + paper grain. */
.ema-page-hero::before {
  background:
    radial-gradient(42% 48% at 88% 10%, rgba(68, 197, 153, 0.13), transparent 72%),
    radial-gradient(40% 44% at 4% 4%, rgba(244, 217, 207, 0.46), transparent 70%),
    linear-gradient(168deg, #fdfaf4 0%, #f6faf6 60%, #f1f7f3 100%);
}
.ema-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: multiply;
}

/* breadcrumbs as a quiet pill trail */
.ema-breadcrumb { margin-bottom: 1.3rem; font-size: 0.8rem; }
.ema-breadcrumb li:not(:last-child)::after { content: "›"; color: rgba(18, 49, 57, 0.35); }
.ema-breadcrumb a {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border: 1px solid rgba(18, 49, 57, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.ema-breadcrumb a:hover { text-decoration: none; border-color: rgba(22, 160, 134, 0.4); background: #fff; }

/* portrait cutout heroes (service pages): same teal-tinted light as the
   homepage scene */
.ema-hero-figure:not(.ema-hero-figure--scene) > .ema-illo {
  box-shadow:
    0 2px 8px rgba(11, 63, 60, 0.08),
    0 40px 80px -34px rgba(11, 63, 60, 0.45),
    0 70px 110px -50px rgba(22, 160, 134, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* B · Dark timeline section: richer deep-teal gradient + glow accents. */
.ema-section--dark {
  background:
    radial-gradient(46% 42% at 84% 0%, rgba(68, 197, 153, 0.16), transparent 70%),
    radial-gradient(36% 40% at 6% 100%, rgba(255, 138, 107, 0.07), transparent 70%),
    linear-gradient(150deg, #102d34 0%, #0a2426 55%, #081f20 100%);
}
.ema-timeline-item__marker {
  border-color: rgba(68, 197, 153, 0.28);
  background: linear-gradient(160deg, rgba(68, 197, 153, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px -6px rgba(0, 0, 0, 0.3);
}
.ema-timeline-item__body {
  background: linear-gradient(rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* C · Footer: same light language on dark, livelier link states. */
.ema-footer {
  background:
    radial-gradient(40% 34% at 86% 0%, rgba(68, 197, 153, 0.1), transparent 70%),
    linear-gradient(160deg, #0f2c33, #0a2426);
}
.ema-footer a { transition: color 160ms ease; }
.ema-footer a:hover { color: var(--ema-teal-2); }

/* ══════════════════════════════════════════════════════════════════
   MOTION LAYER — whisper-quiet, progressively enhanced.
   ══════════════════════════════════════════════════════════════════ */

/* cross-document page fade (Chromium; no-op elsewhere, zero JS) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 160ms; }
::view-transition-new(root) { animation-duration: 220ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* trimester pathway: a connector line that draws itself as the section
   scrolls into view (static full line under reduced-motion via `both`) */
@supports (animation-timeline: view()) {
  .ema-pathway { position: relative; }
  .ema-pathway::before {
    content: "";
    position: absolute;
    left: 1%;
    right: 1%;
    top: -1.15rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ema-teal-2), var(--ema-coral));
    opacity: 0.55;
    transform-origin: left center;
    transform: scaleX(0);
    animation: ema-path-draw linear both;
    animation-timeline: view();
    animation-range: entry 15% cover 60%;
  }
  @keyframes ema-path-draw { to { transform: scaleX(1); } }
}

/* focus ring: slightly stronger, brand-true */
:focus-visible { outline-color: rgba(22, 160, 134, 0.75); }

/* resource library: explanatory line under each link; arrows are explicit
   in the markup now (external ↗ vs internal →), not auto-appended */
.ema-resource-list a::after { content: none; }
.ema-resource-list li > p {
  margin: 0.45rem 0 0;
  padding: 0 0.25rem;
  color: var(--ema-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.ema-resource-list li > p a {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--ema-teal-dark);
  font-weight: 700;
  text-decoration: underline;
}
.ema-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) {
  .ema-resource-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   FULL-SCENE ILLUSTRATIONS — every illustration is now a full-bleed
   scene (assets/img/scenes/*), so images fill their cards edge-to-edge
   instead of floating as cutouts.
   ══════════════════════════════════════════════════════════════════ */

/* feature-scene cards (guide, resources, calculator, équipe, secteurs,
   homepage editorial, 404): the scene fills the rounded card */
.ema-feature-scene { position: relative; min-height: 380px; }
.ema-feature-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 42%;
  filter: none;
}
.ema-feature-scene .ema-blob { display: none; }

/* suivi/follow-up portrait figure: scene replaces the cutout treatment
   (no baked gradients, no synthetic floor/contact shadow) */
.ema-hero-figure--full > .ema-illo {
  background: #f7ece3;
}
.ema-hero-figure--full > .ema-illo::before,
.ema-hero-figure--full > .ema-illo::after { content: none; }
.ema-hero-figure--full > .ema-illo img {
  position: absolute;
  inset: 0;
  transform: none;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 40%;
  filter: none;
  animation: none;
}

/* homepage pathway cards: mini-scenes fill the top panel */
.ema-path-card__top { min-height: 200px; padding: 0; }
.ema-path-card__top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 35%;
  filter: none;
}
.ema-path-card__num {
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(18, 49, 57, 0.35);
}
