/*
 * Trame shared styles: tokens, reset, typography, buttons, utility bar, nav,
 * footer, and the brand lockup. Used by product pages under /consultations/.
 * The marketing landing page (index.html) still ships with inline styles for
 * preview convenience; it will migrate to this file on the Next.js port.
 */

:root {
  --ink: #0C1B2A;
  --ink-2: #1f3142;
  --ink-3: #4a5a6b;
  --slate: #6E7A89;
  --canvas: #FFFFFF;
  --canvas-alt: #F5F5F7;
  --card: #ffffff;
  --blue: #000091;
  --blue-dark: #000074;
  --blue-hover: #1C1C9E;
  --blue-pale: #ECECFE;
  --blue-2: #A7A7F4;
  --red: #E1000F;
  --red-dark: #b8000c;
  --line: rgba(12, 27, 42, 0.08);
  --line-strong: rgba(12, 27, 42, 0.18);
  --shadow: 0 1px 2px rgba(12,27,42,.04), 0 8px 24px rgba(12,27,42,.06);
  --shadow-lg: 0 1px 2px rgba(12,27,42,.05), 0 20px 50px rgba(12,27,42,.10);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  /* `overflow-x: clip` blocks horizontal scroll WITHOUT creating a scroll
     container, so position: sticky on descendants (utility bar, main nav)
     still works. `hidden` here would break sticky.
     Note: do NOT add `overscroll-behavior-x: none` or `touch-action: pan-y`
     here · they kill the macOS two-finger swipe-back gesture (Safari and
     Chrome use the same browser hook for rubber-band and history-back). */
  overflow-x: clip;
  max-width: 100%;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.container-wide { max-width: none; margin: 0; padding: 0 48px; }
@media (max-width: 1100px) { .container, .container-wide { padding: 0 32px; } }
/* Mobile gutters follow iOS/Material norms: 20px standard, 16px on narrow phones. */
/* Generous side padding on phones so content doesn't hug the edge */
@media (max-width: 720px)  { .container, .container-wide { padding: 0 20px; } }
@media (max-width: 380px)  { .container, .container-wide { padding: 0 16px; } }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.1; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.05rem; color: var(--ink-3); line-height: 1.65; max-width: 56ch; }
.serif { font-family: Fraunces, "Times New Roman", serif; font-weight: 400; }

/* ── Utility bar (sticks to top, with main nav directly below) ── */
.utility {
  background: rgba(12, 27, 42, 0.88);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 51;
}
.utility-inner { display: flex; align-items: center; gap: 26px; height: 48px; }
.utility-links { display: flex; gap: 22px; margin-right: auto; }
.utility-links a { color: rgba(255,255,255,.65); text-decoration: none; font-weight: 500; transition: color .15s ease; }
.utility-links a:hover { color: #fff; }
.utility-right { display: flex; align-items: center; gap: 18px; }
.utility-search { position: relative; display: flex; align-items: center; }
.utility-search input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  height: 32px;
  padding: 0 16px 0 36px;
  color: #fff; font-size: 13px; font-family: inherit;
  width: 200px; outline: none;
  transition: width .25s ease, background .15s ease, border-color .15s ease;
}
.utility-search input::placeholder { color: rgba(255,255,255,.42); }
.utility-search input:focus { width: 240px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.utility-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: rgba(255,255,255,.55); pointer-events: none; }
.utility-lang { display: flex; align-items: center; gap: 2px; font-weight: 600; letter-spacing: 0.08em; font-size: 12px; }
.utility-lang button { background: none; border: 0; padding: 4px 8px; border-radius: 4px; color: rgba(255,255,255,.45); font: inherit; cursor: pointer; transition: color .15s ease; }
.utility-lang button.active { color: #fff; }
.utility-lang button:hover { color: #fff; }
.utility-divider { width: 1px; height: 16px; background: rgba(255,255,255,.12); }
.utility-client { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.92); text-decoration: none; font-weight: 500; padding: 7px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 13px; line-height: 1; transition: background .15s ease, border-color .15s ease; }
.utility-client:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.32); }
.utility-client svg { width: 12px; height: 12px; }
@media (max-width: 820px) { .utility { display: none; } }

/* ── Main nav (sits directly below the sticky utility bar).
   Glass/frosted effect: heavy blur, strong saturation, soft inner highlight. */
header.top {
  position: sticky;
  top: 48px;                  /* height of the utility bar */
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(200%) blur(26px);
  -webkit-backdrop-filter: saturate(200%) blur(26px);
  border-bottom: 1px solid rgba(12, 27, 42, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 rgba(12, 27, 42, 0.04);
}
@media (max-width: 820px) {
  /* utility bar is hidden below this breakpoint */
  header.top { top: 0; }
}
.nav { display: flex; align-items: center; gap: 40px; height: 76px; }

/* Brand lockup  -  heritage wordmark + arc-and-dot mark.
   Mark: navy arc (currentColor) + red dot. Wordmark: uppercase tracked Fraunces
   with hairline rule + tracked tagline on the footer. */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #1f3b8b;              /* drives the arc via currentColor on the SVG */
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-word { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-word .wm {
  font-family: Geist, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.brand-word .wm .dot { display: none; }
.brand-word .tag {
  display: none;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--slate);
  margin-top: 6px;
}
footer .brand-mark { width: 34px; height: 34px; }
footer .brand-word .wm { font-size: 26px; letter-spacing: 0.2em; }
footer .brand-word .tag { display: block; font-size: 9px; letter-spacing: 0.36em; margin-top: 8px; }

nav.primary { display: flex; gap: 28px; align-items: center; }
nav.primary a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s ease; }
nav.primary a:hover { color: var(--blue); }
nav.primary a.current { color: var(--blue); }
nav.primary .caret { display: inline-block; margin-left: 4px; opacity: 0.4; }
.nav-cta { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.btn-ghost { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.btn-ghost:hover { color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--blue); color: #fff; text-decoration: none; border: 0; cursor: pointer; transition: background .15s ease, transform .15s ease; font-family: inherit; }
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); }
@media (max-width: 900px) { nav.primary { display: none; } .nav-cta .btn-ghost { display: none; } .nav-cta .btn:not(.hamburger) { display: none; } }

/* ── Hamburger + mobile drawer ── */
.hamburger {
  display: none;
  width: 48px; height: 48px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { background: rgba(12, 27, 42, .05); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), opacity .15s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 900px) { .hamburger { display: flex; margin-left: auto; } }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 40px rgba(12, 27, 42, 0.2);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  min-height: 64px;
}
.drawer-close {
  width: 44px; height: 44px;
  background: transparent;
  border: 0; cursor: pointer;
  border-radius: 8px;
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
  transition: background .15s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.drawer-close:hover { background: var(--canvas-alt); }
.drawer-nav {
  padding: 12px 0;
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.drawer-nav a {
  padding: 16px 20px;
  min-height: 56px;
  display: flex; align-items: center;
  font-family: Fraunces, serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.drawer-nav a:hover { color: var(--blue); background: var(--canvas-alt); }
.drawer-nav a.current { color: var(--blue); }
.drawer-cta {
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.drawer-cta .btn, .drawer-cta .btn-outline {
  width: 100%; justify-content: center;
  padding: 14px 18px; min-height: 48px;
  font-size: 15px;
}
.drawer-utility {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  gap: 14px;
}
.drawer-utility-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.drawer-utility a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  min-height: 44px;
  transition: color .15s ease;
}
.drawer-utility a:hover { color: var(--blue); }
.drawer-utility a::after { content: "→"; opacity: 0; transition: opacity .2s ease, transform .2s ease; transform: translateX(-4px); }
.drawer-utility a:hover::after { opacity: 1; transform: translateX(0); }
.drawer-lang {
  padding: 14px 24px 24px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.drawer-lang button {
  background: none; border: 0; padding: 10px 14px;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  cursor: pointer;
  min-height: 40px;
  transition: color .15s ease, background .15s ease;
}
.drawer-lang button.active { background: var(--canvas-alt); color: var(--ink); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 27, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }

/* Mobile polish elsewhere on the site  -  phone layouts ≤720px.
   Type: 16px body, 28-34px h1, 22-28px h2. Touch: 48px min on all tap targets.
   Spacing: 72px section rhythm, 20px gutters, safe-area insets on all edges. */
@media (max-width: 720px) {
  h1 { font-size: clamp(1.75rem, 7.5vw, 2.15rem); letter-spacing: -0.02em; line-height: 1.1; }
  h2 { font-size: clamp(1.4rem, 5.5vw, 1.75rem); letter-spacing: -0.015em; line-height: 1.2; }
  h3 { font-size: 1.2rem; line-height: 1.3; }
  .section { padding: 72px 0; }
  .subhero { padding: 48px 0 32px; }

  /* Prevent iOS from auto-zooming on focus */
  input, select, textarea { font-size: 16px !important; }

  /* Touch target baseline  -  48px follows WCAG 2.5.5 target-size-enhanced + Material */
  .btn, .btn-outline { min-height: 48px; padding: 14px 22px; font-size: 15px; }
  .btn-lg { min-height: 52px; padding: 15px 24px; font-size: 15px; }

  /* Nav drawer fills the viewport on phones */
  .mobile-drawer { width: 100%; max-width: 100%; }
  .drawer-head { padding: calc(14px + env(safe-area-inset-top)) 20px 14px; }

  /* Hero CTA buttons stack + fill on narrow viewports */
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; min-height: 48px; }

  /* Footer stacks cleanly */
  footer.site { padding: 56px 0 calc(36px + env(safe-area-inset-bottom)); }
  footer.site .foot-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  footer.site .foot-row a { margin-right: 0; }
}

/* Safe-area padding so the utility bar + nav don't sit under the notch */
.utility { padding-top: env(safe-area-inset-top); }
@media (max-width: 820px) {
  header.top { padding-top: env(safe-area-inset-top); }
}

/* Compact nav on phones with breathing safe-area, brand scales down but keeps rule. */
@media (max-width: 720px) {
  .nav { height: 60px; gap: 0; }
  .brand { gap: 9px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-word .wm { font-size: 17px; letter-spacing: 0.16em; }
  .brand-word .tag { font-size: 8px; letter-spacing: 0.3em; margin-top: 5px; }
  .nav-cta { margin-left: auto; gap: 4px; }
}
@media (max-width: 380px) {
  .brand-mark { width: 24px; height: 24px; }
  .brand-word .wm { font-size: 15.5px; letter-spacing: 0.14em; }
  .brand-word .tag { font-size: 7.5px; letter-spacing: 0.28em; margin-top: 5px; }
}

/* Callout grid used at the bottom of /pour/* pages (label + recommended-plan paragraph).
   Stack to 1 column on phones so the fixed 200px label column doesn't squeeze the text. */
.edito-callout {
  margin-top: 56px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  max-width: 760px;
}
.edito-callout .eyebrow { margin-bottom: 0; }
.edito-callout p:not(.eyebrow) { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
@media (max-width: 720px) {
  .edito-callout { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; padding-top: 24px; }
  .edito-callout p:not(.eyebrow) { font-size: 15px; line-height: 1.65; }
}

/* Allow horizontal pan on scroll containers even while body blocks horizontal swipe */
.tabs-inner, .compare-table, .mp-controls, .list-pane .list-grid { touch-action: pan-x pan-y; }

/* Long-form narrative paragraph block (used on /a-propos/). Responsive by default */
.narrative { max-width: 720px; margin: 0 auto; }
.narrative p { color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.narrative p + p { margin-top: 20px; }
@media (max-width: 720px) {
  .narrative p { font-size: 15.5px; line-height: 1.65; }
  .narrative p + p { margin-top: 16px; }
}

/* Inner-page mobile overrides  -  these outweigh per-page inline <style> blocks that
   define `.section`, `.form-grid`, `.coming` without their own 720px breakpoint.
   The `body .foo` prefix gives (0,0,1,1) specificity > inline's (0,0,1,0).       */
@media (max-width: 720px) {
  body .section { padding: 56px 0; }
  body .subhero:not(.subhero-photo) { padding: 40px 0 28px; }
  body .form-grid { gap: 32px; }
  body .form-card { padding: 22px; }
  body .coming { padding: 36px 24px; }
  body .coming h2 { font-size: 1.25rem; }
  body .coming p { font-size: 14px; }
  body .card { padding: 22px; }
  body .card h3 { font-size: 1.1rem; }
  body .legal-body { max-width: none; }
  body .legal-body h2 { font-size: 1.2rem; margin-top: 32px; margin-bottom: 12px; }
  body .news-row { padding: 18px 20px; }
  body .login-wrap { padding: 28px 22px; }
}
@media (max-width: 480px) {
  body .section { padding: 64px 0; }
  body .coming { padding: 28px 20px; }
  body .legal-body ul, body .legal-body ol { margin-left: 16px; }
}

/* Legal pages: break long URLs/emails cleanly on narrow phones */
.legal-body a, article a, .lead a {
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .legal-body ul, .legal-body ol { margin-left: 16px; }
  .legal-body p { font-size: 16px; line-height: 1.65; }
}

/* Breadcrumb */
.crumb { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.crumb .sep { opacity: .4; }

/* Photo-backed sub-hero (for inner pages, Kaufman-style).
   Double-class selector so it wins against any page-local `.subhero` override. */
.subhero.subhero-photo,
.subhero-photo {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-bottom: 0;
  padding: 140px 0 110px;
  isolation: isolate;
}
@media (max-width: 900px) {
  .subhero.subhero-photo, .subhero-photo { padding: 90px 0 60px; }
}
@media (max-width: 720px) {
  .subhero.subhero-photo, .subhero-photo { padding: 56px 0 40px; }
  .subhero-photo h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); max-width: 18ch; letter-spacing: -0.025em; }
  .subhero-photo .lead { font-size: 0.95rem; line-height: 1.55; max-width: 34ch; }
  .subhero-photo .crumb { margin-bottom: 14px; font-size: 12px; }
  .subhero-photo .eyebrow { margin-bottom: 10px; }
}
@media (max-width: 420px) {
  .subhero.subhero-photo, .subhero-photo { padding: 44px 0 32px; }
  .subhero-photo h1 { max-width: 14ch; }
}
@media (max-width: 360px) {
  .subhero-photo .lead { display: none; } /* too tight to fit a lead on iPhone SE-class phones */
}
.subhero-photo .subhero-media {
  position: absolute; inset: 0; z-index: -2;
}
.subhero-photo .subhero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.6) contrast(0.95) brightness(0.52);
}
.subhero-photo .subhero-media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    /* Near-opaque dark wash under the copy (promoted from mobile to all viewports
       so the subhero text is readable on every screen, not just phones). */
    radial-gradient(ellipse 140% 120% at 30% 50%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 78%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.88) 0%, rgba(10, 18, 28, 0.98) 100%);
}
/* Crank the overlay heavy on phones so white text is always clearly readable */
@media (max-width: 720px) {
  .subhero-photo .subhero-media img { filter: saturate(0.6) contrast(0.95) brightness(0.52); }
  .subhero-photo .subhero-media::after {
    background:
      /* Near-opaque dark wash under the copy */
      radial-gradient(ellipse 140% 120% at 30% 50%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 78%),
      linear-gradient(180deg, rgba(10, 18, 28, 0.88) 0%, rgba(10, 18, 28, 0.98) 100%);
  }
  /* Drop the text-shadow hack on mobile; not needed once the overlay is doing the work */
  .subhero-photo .crumb,
  .subhero-photo .eyebrow,
  .subhero-photo h1,
  .subhero-photo .lead { text-shadow: none; }

  /* Tighten the gap between the photo hero and the first content section */
  .subhero.subhero-photo + section,
  .subhero.subhero-photo + .section,
  .subhero-photo + section,
  .subhero-photo + .section { padding-top: 36px; }
}
.subhero-photo .crumb              { color: rgba(255,255,255,.75); margin-bottom: 24px; }
.subhero-photo .crumb a            { color: #fff; }
.subhero-photo .crumb a:hover      { color: var(--blue-2); }
.subhero-photo .crumb .sep         { color: rgba(255,255,255,.5); }
.subhero-photo .eyebrow            { color: rgba(255,255,255,.88); }
.subhero-photo h1                  { color: #fff; max-width: 22ch; }
.subhero-photo .lead               { color: rgba(255,255,255,.9); max-width: 58ch; }
/* Subtle text-shadow adds readability on tricky backgrounds without looking bolted-on */
.subhero-photo .crumb,
.subhero-photo .eyebrow,
.subhero-photo h1,
.subhero-photo .lead {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 14px rgba(0, 0, 0, 0.25);
}

/* ── Editorial patterns (Kaufman-style, no cards) ── */

/* Two-column editorial row with imagery on one side, text on the other */
.edito-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.edito-row.reverse .edito-row-image { order: 2; }
.edito-row-image { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; background: var(--canvas-alt); }
.edito-row-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edito-row-text h2 { font-size: clamp(1.85rem, 2.8vw, 2.5rem); max-width: 22ch; margin-bottom: 22px; }
.edito-row-text p { color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 56ch; }
.edito-row-text p + p { margin-top: 14px; }
@media (max-width: 900px) { .edito-row { grid-template-columns: 1fr; gap: 40px; } .edito-row-image { aspect-ratio: 16/10; } .edito-row.reverse .edito-row-image { order: 0; } }

/* Three-column editorial callout with Fraunces numerals, no card chrome */
.edito-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.edito-col { display: flex; flex-direction: column; gap: 14px; }
.edito-col-num { font-family: Fraunces, serif; font-weight: 400; font-size: 2.6rem; letter-spacing: -0.025em; color: var(--blue); line-height: 1; }
.edito-col h3 { font-size: 1.25rem; max-width: 22ch; letter-spacing: -0.01em; }
.edito-col p { color: var(--ink-3); font-size: 15px; line-height: 1.7; max-width: 38ch; }
@media (max-width: 900px) { .edito-cols { grid-template-columns: 1fr; gap: 44px; } }

/* Vertical editorial list with hairline rules (no card chrome) */
.edito-list { border-top: 1px solid var(--line); }
.edito-list-item { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: start; }
.edito-list-item .glyph { font-family: Fraunces, serif; font-weight: 400; font-size: 1.5rem; color: var(--blue); line-height: 1; letter-spacing: -0.02em; }
.edito-list-item h4 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.edito-list-item p { color: var(--ink-3); font-size: 15px; line-height: 1.7; max-width: 64ch; }
.edito-list-item p + p { margin-top: 10px; }
@media (max-width: 720px) { .edito-list-item { grid-template-columns: 1fr; gap: 12px; } }

/* Stats row divided by hairlines, no backgrounds */
.edito-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.edito-stat { padding: 36px 32px; border-right: 1px solid var(--line); }
.edito-stat:last-child { border-right: 0; }
.edito-stat-num { font-family: Fraunces, serif; font-size: clamp(2.3rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.edito-stat-label { font-size: 13px; color: var(--ink-3); margin-top: 12px; max-width: 22ch; line-height: 1.55; }
@media (max-width: 900px) {
  .edito-stats { grid-template-columns: repeat(2, 1fr); }
  .edito-stat:nth-child(2n) { border-right: 0; }
  .edito-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .edito-stats { grid-template-columns: 1fr; }
  .edito-stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .edito-stat:last-child { border-bottom: 0; }
}

/* Pill-less, card-less category index (e.g. /pour/ hub) */
.edito-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.edito-index-item { background: var(--canvas); padding: 40px 32px 44px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: background .2s ease; }
.edito-index-item:hover { background: var(--canvas-alt); }
.edito-index-item .idx-num { font-family: Fraunces, serif; font-weight: 400; font-size: 1rem; color: var(--blue); letter-spacing: 0.1em; }
.edito-index-item h3 { font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.15; max-width: 16ch; }
.edito-index-item p { color: var(--ink-3); font-size: 14.5px; line-height: 1.65; max-width: 30ch; flex: 1; }
.edito-index-item .idx-link { color: var(--blue); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; transition: gap .2s ease; }
.edito-index-item:hover .idx-link { gap: 12px; }
@media (max-width: 900px) { .edito-index { grid-template-columns: 1fr; } }

/* Team editorial row (photo + info side by side, no card) */
.edito-team { display: flex; flex-direction: column; }
.edito-team-row { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.edito-team-row:last-child { border-bottom: 0; }
.edito-team-portrait { width: 180px; height: 180px; border-radius: 2px; background: var(--canvas-alt); color: var(--blue); font-family: Fraunces, serif; font-size: 3rem; font-weight: 500; display: flex; align-items: center; justify-content: center; line-height: 1; letter-spacing: -0.02em; }
.edito-team-body h4 { font-size: 1.5rem; letter-spacing: -0.015em; margin-bottom: 4px; }
.edito-team-body .role { font-size: 12px; color: var(--blue); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.edito-team-body p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; max-width: 62ch; }
@media (max-width: 720px) { .edito-team-row { grid-template-columns: 1fr; gap: 20px; } .edito-team-portrait { width: 100px; height: 100px; font-size: 2rem; } }

/* Pills / chips */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.pill.live { background: rgba(225,0,15,.08); color: var(--red); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.4s ease-in-out infinite; }
.pill.closed { background: rgba(110,122,137,.12); color: var(--ink-2); }
.pill.soon { background: rgba(0,0,145,.08); color: var(--blue); }
@keyframes blink { 0%,100% {opacity:1} 50% {opacity:.3} }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Footer (minimal shared version used by product pages) */
footer.site { background: var(--canvas-alt); color: var(--ink-3); padding: 60px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
footer.site .foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer.site .foot-row a { color: var(--ink-3); text-decoration: none; margin-right: 20px; }
footer.site .foot-row a:hover { color: var(--blue); }
footer.site .foot-meta { font-size: 12px; color: var(--slate); margin-top: 16px; }

/* ─── Filter button + popup pattern ───────────────────────────────────────────
   A scalable filter affordance: a compact button showing the current selection,
   opening a popover menu of options. Used on filter bars across the site
   (consultations list, consultation detail toolbar, espace-client dashboard).
   Replace `.filter-chip` / `.chip` rows whenever options exceed ~4 entries. */
.ff-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; row-gap: 8px; }
.ff-bar .ff-count { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.ff-bar .ff-count b { color: var(--ink); font-weight: 600; }

.ff { position: relative; display: inline-block; font-family: inherit; }
.ff-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
  min-height: 38px;
  -webkit-tap-highlight-color: transparent;
}
.ff-btn:hover { border-color: var(--line-strong); background: var(--canvas-alt); color: var(--ink); }
.ff-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.ff-btn .ff-label { color: var(--slate); font-weight: 500; }
.ff-btn.active .ff-label { color: var(--blue); }
.ff-btn .ff-value { color: var(--ink); font-weight: 500; }
.ff-btn.active .ff-value { color: var(--blue); }
.ff-btn .ff-caret { width: 10px; height: 10px; color: var(--slate); transition: transform .15s ease; margin-left: 2px; flex-shrink: 0; }
.ff.open .ff-btn .ff-caret { transform: rotate(180deg); }

.ff-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px; max-width: min(320px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(12,27,42,.08), 0 12px 28px rgba(12,27,42,.12);
  padding: 6px;
  z-index: 1000;
  max-height: 360px;
  display: none;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}
.ff.open .ff-menu,
body > .ff-menu.portaled { display: flex; }
/* Portaled menus are absolutely positioned via JS getBoundingClientRect.
   They sit at document.body root so no ancestor containing-block can trap them. */
body > .ff-menu.portaled { position: absolute; }

.ff-search {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.ff-search svg { width: 14px; height: 14px; color: var(--slate); flex-shrink: 0; }
.ff-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: 13px; color: var(--ink);
  padding: 4px 2px;
}
.ff-search input::placeholder { color: var(--slate); }

/* The JS wraps all .ff-opt buttons in an .ff-opts scroller on first open
   so the search stays pinned and the options scroll inside the dropdown. */
.ff-opts { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; max-height: 280px; }
.ff-empty {
  padding: 22px 14px;
  text-align: center;
  font-size: 13px; color: var(--slate);
  font-style: italic;
}
.ff-opt {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 10px;
  border: 0; background: transparent;
  border-radius: 6px;
  font-family: inherit; font-size: 13px; color: var(--ink-2);
  text-align: left; cursor: pointer;
  min-height: 38px;
  -webkit-tap-highlight-color: transparent;
}
.ff-opt:hover { background: var(--canvas-alt); color: var(--ink); }
.ff-opt.on { color: var(--blue); font-weight: 500; }
.ff-opt.on::after { content: '✓'; margin-left: auto; color: var(--blue); font-weight: 600; }
.ff-opt .cd { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ff-opt .ct { margin-left: auto; font-size: 11px; color: var(--slate); font-weight: 500; }
.ff-opt.on .ct { color: var(--blue); }

/* Right-aligned menu for filters near the edge of the viewport */
.ff[data-align="right"] .ff-menu { left: auto; right: 0; }

/* Mobile: filter bar scrolls horizontally; options render as a compact
   dropdown (portaled to <body>) anchored below the button. No bottom sheet,
   no scrim  -  just a native-feeling popover with search. */
@media (max-width: 600px) {
  .ff-bar {
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 2px 16px 6px 16px;
  }
  /* If the bar sits inside a .container (which already provides edge padding),
     let the bar extend edge-to-edge so the chip row feels full-bleed but still
     has 16px of inner breathing room. */
  .container > .ff-bar { margin-left: -16px; margin-right: -16px; }
  .ff-bar::-webkit-scrollbar { display: none; }
  .ff-bar > * { flex: 0 0 auto; scroll-snap-align: start; }
  .ff-bar .ff-count { margin-left: 0; padding-right: 4px; }
  .ff-btn { min-height: 40px; }
  .ff-opt { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  body > .ff-menu.portaled { min-width: 260px; max-width: min(320px, calc(100vw - 24px)); }
}

/* ─── Cookie / consent banner ───────────────────────────────────────────────
   Fixed bottom banner shown on every page until the visitor makes a choice.
   Driven by trame-consent.js. Design intent: French-civic-serious, not the
   dark-pattern "Accept all" tsunami of commercial SaaS. */
.balisio-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 3px solid var(--blue);
  box-shadow: 0 -8px 24px rgba(12,27,42,.12);
  padding: 18px 0;
  animation: tc-slide-up .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.balisio-consent .tc-body {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
}
.tc-copy strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.tc-copy p { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-bottom: 10px; }
.tc-copy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.tc-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.tc-toggle input { appearance: none; width: 32px; height: 18px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s ease; flex-shrink: 0; }
.tc-toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tc-toggle input:checked { background: var(--blue); }
.tc-toggle input:checked::after { left: 16px; }
.tc-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.tc-btn {
  appearance: none; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 8px;
  cursor: pointer; min-height: 42px;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.tc-btn:hover { background: var(--canvas-alt); color: var(--ink); border-color: var(--ink-3); }
.tc-btn.tc-reject { color: var(--ink-2); }
.tc-btn.tc-accept { background: var(--blue); color: #fff; border-color: var(--blue); }
.tc-btn.tc-accept:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
@keyframes tc-slide-up { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 820px) {
  .balisio-consent { padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); }
  .balisio-consent .tc-body { grid-template-columns: 1fr; gap: 14px; padding: 0 20px; }
  .tc-actions { grid-template-columns: 1fr 1fr; display: grid; }
  .tc-btn.tc-accept { grid-column: 1 / -1; }
}
