/* =====================================================================
   LTC Group — Refine layer (2026-10)
   ---------------------------------------------------------------------
   Loaded last, site-wide. Moves the site from "liquid glass + marker +
   handwriting" to a calm, premium consulting register while keeping the
   brand: LTC blue, logo, content and page structure.

   Principles
   - One typeface family: Geist (text + display), Geist Mono for data only.
   - Blue is for action and emphasis, never for decoration.
   - Flat white surfaces, 1px hairlines, soft offset shadows. No blur
     except where it is functional (sticky header, overlays).
   - Rounded but not bubbly: 10px controls, 14px cards.
   ===================================================================== */

:root {
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Ink scale (slightly cool, never pure black) */
  --text-primary: #0B1023;
  --text-secondary: #3D4459;
  --text-muted: #5F667A;      /* 5.6:1 on white */
  --text-dim: #8A90A2;

  --primary: #2020CC;
  --primary-hover: #1919A6;
  --primary-dark: #1919A6;
  --primary-50: #F3F4FE;
  --primary-100: #E6E8FD;

  --bg-base: #FFFFFF;
  --bg-muted: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;

  --line: #E7E9EF;
  --line-strong: #D6D9E2;
  --border-subtle: #EEF0F4;
  --border-light: #E7E9EF;
  --border-medium: #D6D9E2;

  --r-control: 10px;
  --r-card: 14px;
  --r-card-lg: 18px;
  --radius-xl: 14px;
  --radius-2xl: 18px;
  --radius-lg: 12px;

  --shadow-xs: 0 1px 2px rgba(11, 16, 35, 0.05);
  --shadow-sm: 0 1px 2px rgba(11, 16, 35, 0.04), 0 2px 6px -2px rgba(11, 16, 35, 0.06);
  --shadow-md: 0 1px 2px rgba(11, 16, 35, 0.04), 0 12px 32px -16px rgba(11, 16, 35, 0.16);
  --shadow-lg: 0 2px 4px rgba(11, 16, 35, 0.04), 0 24px 56px -24px rgba(11, 16, 35, 0.22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------------
   1. BASE — type, background, browser surfaces
--------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-feature-settings: 'ss01' off, 'cv11' on;
  color: var(--text-primary);
  background: var(--bg-base);
  text-rendering: optimizeLegibility;
}
.font-sans { font-family: var(--font-sans) !important; }
.font-mono, code, kbd, samp, pre { font-family: var(--font-mono); }

/* Flat page background: no mesh, no grain, no floating orbs */
body::before, body::after { background: var(--bg-base) !important; background-image: none !important; }
body::after { display: none !important; }
.bg-orbs, .bg-orb, .gradient-bar { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-sans); text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: rgba(32, 32, 204, 0.14); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
a:focus-visible, button:focus-visible { outline-offset: 3px; }
input, textarea, select { caret-color: var(--primary); }

html { scrollbar-color: #C9CDD8 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #C9CDD8; border-radius: 10px; border: 2px solid #fff; }
::-webkit-scrollbar-track { background: transparent; }

a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, table td, table th { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   2. TYPE VOICE — one family everywhere
   Former handwriting (Caveat) and display-serif (Instrument Serif)
   usages are brought back to Geist. Mono survives only for data.
--------------------------------------------------------------------- */
.ac__overflow, .ac__task-text, .insight-quote__sign, .project-kicker, .tx-kicker,
.ac__final-text, .article-body .stat-card .stat-value, .article-body blockquote,
.article-body h2, .contact-intro h2 em, .insight-card__gain-value, .insight-quote p,
.project-title, .proof__big, .pullquote__mark, .tx-title, .wizard-success__title em,
.wizard__label-value, .wizard__panel-head h2 em, .wizard__step-num,
[style*="Instrument Serif"], [style*="Caveat"] {
  font-family: var(--font-sans) !important;
  font-style: normal !important;
}
[style*="Instrument Serif"] { letter-spacing: -0.015em !important; font-weight: 600 !important; }

/* Italic serif emphasis inside headings → plain brand-blue words */
.contact-intro h2 em, .wizard__panel-head h2 em, .wizard-success__title em,
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--primary);
  font-weight: inherit;
  letter-spacing: inherit;
}

/* Data labels keep a mono voice, but the real one, quieter */
.ac__corner, .ac__label, .edito-metric__label, .final-cta__card-label,
.method-flow__duration, .method-flow__num, .method-step-number, .pain-item__meta,
.pain-num, .phase-duration, .phase-num, .proof__meta, .proof__pill,
.service-card__num, .tr-badge, .tr-gain, .tr-topic, .tx-tool {
  font-family: var(--font-mono) !important;
}

/* Section labels: no more "N° 01 —" costume — a calm, readable kicker */
.edito-index {
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}
.edito-index strong { color: var(--primary); font-weight: 600; }

/* Hand-drawn highlighter → the word simply takes the brand colour */
.marker-underline { display: inline; white-space: normal !important; color: var(--primary); -webkit-text-fill-color: var(--primary); }
.marker-underline::after { display: none !important; }

/* ---------------------------------------------------------------------
   3. HEADLINES
--------------------------------------------------------------------- */
.hero-title, .hero-title-muted {
  font-size: clamp(2.5rem, 5.4vw, 4.375rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.hero-title {
  font-weight: 600;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text-primary) !important;
}
.hero-title-muted { font-weight: 500; color: #8A90A2; }
.hero-subtitle { color: var(--text-secondary); line-height: 1.6; }

.edito-headline, .section-title {
  letter-spacing: -0.032em;
  font-weight: 600;
}
/* gradient-filled legacy headings → solid ink */
.bg-clip-text, .text-transparent.bg-clip-text {
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  color: inherit;
}

/* ---------------------------------------------------------------------
   4. HEADER — full-width bar, quiet hairline
--------------------------------------------------------------------- */
/* The blur lives on a pseudo-element: a backdrop-filter on the header itself
   would become the containing block of the fixed full-screen mobile menu. */
header#site-header, header#site-header.header-glass { padding-top: 0; background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
header#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
header#site-header.header-scrolled::before { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.94); }
.header-glass:not(#site-header) { background: rgba(255, 255, 255, 0.94) !important; }
.header-shell { max-width: 1200px; padding: 0 1.5rem; }
.header-glass-bar,
header#site-header.header-scrolled .header-glass-bar {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.header-glass-bar::before { display: none !important; }
.header-glass-bar > .flex { padding-left: 0 !important; padding-right: 0 !important; height: 4rem; }
.brand-logo:hover { transform: none; opacity: 0.8; }

.nav-desktop { gap: 2rem; }
.nav-desktop__links { gap: 1.75rem; }
.nav-desktop__utils { gap: 1.25rem; }
.nav-link { font-size: 0.875rem !important; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link::after { bottom: -23px; height: 2px; border-radius: 0; }
.nav-desktop__utils .dropdown-wrapper > .nav-link::after { display: none; }

/* Dropdowns: plain popover */
.dropdown-menu.glass {
  background: #fff !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 6px;
}
.dropdown-menu.glass a { border-radius: 8px; padding: 0.625rem 0.875rem !important; color: var(--text-secondary); }
.dropdown-menu.glass a:hover { background: var(--surface-2) !important; color: var(--text-primary) !important; }

/* Mobile menu */
#mobile-menu { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
#mobile-menu .glass { box-shadow: none !important; }

/* ---------------------------------------------------------------------
   5. BUTTONS — flat, precise, no glow
--------------------------------------------------------------------- */
.btn-primary, .btn-glass-prominent {
  gap: 0.5rem;
  padding: 0.8125rem 1.375rem;
  border-radius: var(--r-control) !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(11, 16, 35, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}
.btn-primary::after, .btn-glass-prominent::after { display: none !important; }
.btn-primary:hover, .btn-glass-prominent:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(11, 16, 35, 0.14), 0 8px 20px -10px rgba(32, 32, 204, 0.55) !important;
}
.btn-primary:active, .btn-glass-prominent:active { transform: translateY(0); }
.btn-primary svg, .btn-glass-prominent svg { flex-shrink: 0; }
@media (min-width: 640px) {
  .btn-primary, .btn-glass-prominent, .btn-secondary, .btn-glass, .btn-ghost { white-space: nowrap; }
}

.btn-secondary, .btn-glass, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.25rem;
  border-radius: var(--r-control) !important;
  background: #fff !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text-primary) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  box-shadow: var(--shadow-xs) !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover, .btn-glass:hover, .btn-ghost:hover {
  background: var(--surface-2) !important;
  border-color: #BEC2CF !important;
  color: var(--text-primary) !important;
  transform: none;
  gap: 0.5rem;
}
.btn-text { font-weight: 500; }

/* ---------------------------------------------------------------------
   6. SURFACES — glass becomes paper
--------------------------------------------------------------------- */
.glass, .liquid-glass, .glass-card {
  background: var(--surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
}
.glass::before, .liquid-glass::before, .glass-card::before { display: none !important; }
.glass--rect { border-radius: var(--r-card); }
.glass--rect-lg { border-radius: var(--r-card-lg); }
.glass--thin { background: var(--surface) !important; }
.glass--prominent { box-shadow: var(--shadow-md) !important; }

/* Tints: one emphasis colour (blue), the rest turn neutral */
.glass--tint-blue { background: var(--primary-50) !important; border-color: rgba(32, 32, 204, 0.16) !important; }
.glass--tint-emerald, .glass--tint-purple, .glass--tint-amber, .glass--tint-rose {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

.glass--interactive:hover, .liquid-glass:hover, .glass-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong) !important;
  box-shadow: var(--shadow-md) !important;
}
.glass--interactive.glass--tint-blue:hover { background: var(--primary-50) !important; border-color: rgba(32, 32, 204, 0.28) !important; }
.glass--interactive.glass--tint-emerald:hover, .glass--interactive.glass--tint-purple:hover,
.glass--interactive.glass--tint-amber:hover { background: var(--surface) !important; }
.glass--interactive:active { transform: translateY(0); }

/* Generic rounded cards from Tailwind */
.rounded-3xl { border-radius: var(--r-card-lg) !important; }
.rounded-2xl { border-radius: var(--r-card) !important; }

/* ---------------------------------------------------------------------
   7. HOME — hero card, proof, avant/après, phases, projects
--------------------------------------------------------------------- */
/* Hero animated agent card: paper, real type */
.ac { border-radius: var(--r-card-lg) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow-lg) !important; background: #fff !important; }
.ac__task-text { font-size: 0.875rem !important; font-weight: 450; letter-spacing: -0.005em; color: var(--text-secondary); }
.ac__overflow { font-size: 0.8125rem !important; }
.ac__final-text { font-size: 1.25rem !important; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }

/* Avant / Après */
.tr-side--before { background: var(--surface-2) !important; }
.tr-side--after { background: #fff !important; }
.tr-badge { border-radius: 6px !important; letter-spacing: 0.04em; }
.tr-badge--before { background: #fff !important; color: var(--text-muted) !important; border: 1px solid var(--line-strong) !important; }
.tr-badge--after { background: var(--primary-50) !important; color: var(--primary) !important; border: 1px solid rgba(32, 32, 204, 0.18) !important; }
.tr-gain { border-radius: 6px !important; background: var(--primary-50) !important; }
.tr-header { background: #fff !important; }

/* Checklist ticks drawn, not typed */
.final-cta__check {
  font-size: 0 !important;
  position: relative;
}
.final-cta__check::before {
  content: '';
  width: 10px; height: 10px;
  position: absolute; inset: 0; margin: auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Final CTA card: no bookmark ribbon, no double frame */
.final-cta__card { border-radius: var(--r-card-lg) !important; box-shadow: var(--shadow-md) !important; border: 1px solid var(--line) !important; background: #fff !important; }
.final-cta__card::before, .final-cta__card::after { display: none !important; }
.final-cta__right { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }

/* Projects teaser cards (inline pastel styles on home) */
a.group[style*="linear-gradient(165deg"] {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
}
a.group[style*="linear-gradient(165deg"]:hover { border-color: var(--line-strong) !important; box-shadow: var(--shadow-md) !important; transform: translateY(-2px); }
a.group[style*="linear-gradient(165deg"] > span:first-child {
  background: var(--surface-2) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
}
a.group[style*="linear-gradient(165deg"] > span:first-child svg { display: none; }
a.group[style*="linear-gradient(165deg"] > span:last-child { color: var(--primary) !important; }
a.group[style*="linear-gradient(165deg"] [style*="Instrument Serif"] { font-size: 1.125rem; }

/* ---------------------------------------------------------------------
   8. SERVICES hub — cards & arrows
--------------------------------------------------------------------- */
.service-card__cta svg { width: 14px !important; height: 14px !important; flex-shrink: 0; }
.service-card__cta { font-family: var(--font-sans); letter-spacing: 0.01em; }

/* ---------------------------------------------------------------------
   9. CONTACT / WIZARD / misc components
--------------------------------------------------------------------- */
.channel-card, .contact-channel, .wizard, .wizard__panel { border-radius: var(--r-card) !important; }
.chip, .pain-chip { border-radius: 8px !important; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], select, textarea {
  border-radius: var(--r-control) !important;
  background: #fff !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: var(--shadow-xs) !important;
  font-family: var(--font-sans);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(32, 32, 204, 0.14) !important;
  outline: none;
}
::placeholder { color: #8A90A2; opacity: 1; }

/* FAQ */
.faq-icon { color: var(--text-muted) !important; }
.faq-item.open .faq-icon { color: var(--primary) !important; }

/* Hero eyebrow pill (legacy pages) → quiet label */
.hero-eyebrow {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.hero-eyebrow .dot { animation: none; box-shadow: none; width: 6px; height: 6px; }

/* ---------------------------------------------------------------------
   10. FOOTER — full width, quiet
--------------------------------------------------------------------- */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 4rem 0 2.5rem;
}
.site-footer__inner { padding: 0; }
.site-footer .glass { box-shadow: none !important; }
.site-footer h3, .site-footer h4 { font-size: 0.75rem !important; letter-spacing: 0.08em !important; color: var(--text-muted) !important; font-weight: 600 !important; }
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__legal a, .site-footer__meta p { font-size: 0.8125rem; color: var(--text-muted); text-decoration: none; }
.site-footer__legal a:hover { color: var(--primary); }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
@media (min-width: 900px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .site-footer__legal { max-width: 60%; }
  .site-footer__meta { flex-direction: column; text-align: right; }
}

/* ---------------------------------------------------------------------
   11. FLOATING UI — sticky CTA, Calendly badge, cookie banner, language picker
--------------------------------------------------------------------- */
.sticky-cta {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: 0 -8px 24px -16px rgba(11, 16, 35, 0.2) !important;
}
.sticky-cta .glass--circle { border-radius: var(--r-control) !important; }

.calendly-badge-widget .calendly-badge-content {
  border-radius: var(--r-control) !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 18px !important;
}

body #ltc-cookie-banner .ltc-cc__card {
  border-radius: var(--r-card) !important;
  background: #fff !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-sans) !important;
}
body #ltc-cookie-banner button { border-radius: var(--r-control) !important; font-family: var(--font-sans) !important; }
body #ltc-cookie-banner .ltc-cc__accept { background: var(--primary) !important; box-shadow: none !important; }

.ltc-lang-overlay { background: rgba(11, 16, 35, 0.4) !important; backdrop-filter: blur(4px) !important; }
.ltc-lang-card { border-radius: var(--r-card-lg) !important; background: #fff !important; box-shadow: var(--shadow-lg) !important; padding: 32px !important; }
.ltc-lang-title { font-weight: 600 !important; letter-spacing: -0.02em; }
.ltc-lang-actions { gap: 8px !important; }
.ltc-lang-btn,
.ltc-lang-btn.btn-glass-prominent {
  background: #fff !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: none !important;
  justify-content: space-between !important;
}
.ltc-lang-btn::after {
  content: '' !important; display: block !important; position: static !important;
  width: 14px; height: 14px; background: currentColor !important; opacity: 0.5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ltc-lang-btn:hover { border-color: var(--primary) !important; color: var(--primary) !important; transform: none !important; }
.ltc-lang-suggested { outline: 0 !important; border-color: var(--primary) !important; color: var(--primary) !important; background: var(--primary-50) !important; }

/* ---------------------------------------------------------------------
   12. MOTION — one calm entrance, no bounce
--------------------------------------------------------------------- */
.fade-up { transform: translateY(14px); transition-duration: 0.7s !important; transition-timing-function: var(--ease-out) !important; }
.fade-up.visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------------
   13. FIXES from the first visual pass
--------------------------------------------------------------------- */
.btn-primary, .btn-glass-prominent, .btn-secondary, .btn-glass, .btn-ghost { flex-shrink: 0; overflow: visible; }
.flex:has(> .btn-glass-prominent + .btn-ghost),
.flex:has(> .btn-glass-prominent + .btn-glass),
.flex:has(> .btn-primary + .btn-secondary) { flex-wrap: wrap; row-gap: 0.75rem; }
.ac__final-hl { font-style: normal !important; }
.edito-rule { background: var(--line) !important; }

/* Secondary text action: a precise link, not a second button competing with the CTA */
.btn-ghost {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0.8125rem 0.25rem !important;
  color: var(--text-primary) !important;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
.btn-ghost:hover { background: transparent !important; color: var(--primary) !important; text-decoration-color: currentColor; }
.btn-ghost svg { transition: transform 0.2s var(--ease-out); }
.btn-ghost:hover svg { transform: translateX(3px); }
.flex:has(> .btn-glass-prominent + .btn-ghost) { column-gap: 1.5rem; }

/* Hero agent card: tag sits inside the card, replay moves out of its way */
.ac__corner { top: 14px !important; right: 14px !important; border-radius: 6px !important; }
.ac__replay { top: auto !important; bottom: 12px; right: 12px; }

@media (min-width: 900px) { .site-footer__meta p { white-space: nowrap; } }
.final-cta::before { background: var(--line) !important; opacity: 1 !important; }
.tr-gain { white-space: nowrap; }

/* Mobile safety: long CTA labels wrap instead of pushing the page sideways */
@media (max-width: 639px) {
  .btn-primary, .btn-glass-prominent, .btn-secondary, .btn-glass, .btn-ghost {
    flex-shrink: 1;
    white-space: normal;
    max-width: 100%;
    text-align: center;
  }
  .pullquote__highlight { white-space: normal !important; }
  .metric { min-width: 0; }
  .metric-label { letter-spacing: 0; overflow-wrap: anywhere; hyphens: auto; }
  .article-body .cta-inline a { white-space: normal; }
  .article-body table, .prose-dark table { display: block; max-width: 100%; overflow-x: auto; }
}

/* States the flat buttons must keep */
.btn-primary:disabled, .btn-glass-prominent:disabled,
.btn-primary[aria-disabled="true"], .btn-glass-prominent[aria-disabled="true"],
.btn-secondary:disabled, .btn-glass:disabled, .btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-primary:disabled:hover, .btn-glass-prominent:disabled:hover { background: var(--primary) !important; }
.btn-primary.hidden, .btn-glass-prominent.hidden, .btn-secondary.hidden, .btn-glass.hidden, .btn-ghost.hidden { display: none !important; }

/* Footer — served areas (local SEO pages) */
.site-footer__zones { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.site-footer__zones h4 { margin-bottom: 0.875rem; text-transform: uppercase; }
.site-footer__zones ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; }
.site-footer__zones a { font-size: 0.8125rem; color: var(--text-secondary); text-decoration: none; }
.site-footer__zones a:hover { color: var(--primary); }

/* Cost calculator (/cout-ia-pme) */
.diy-result__col { min-width: 0; }
.diy-result__col--diy { background: var(--surface-2) !important; border-color: var(--line) !important; }
.diy-result__col--ltc { background: var(--primary-50) !important; border-color: rgba(32, 32, 204, 0.18) !important; }
.cost-table-wrap { max-width: 100%; }

/* ---------------------------------------------------------------------
   14. NAV PANELS — "IA ▾ | Informatique ▾" (panneau desktop + accordéon mobile)
--------------------------------------------------------------------- */
.nav-panel { position: relative; }
.nav-panel__trigger { background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-panel__chevron { transition: transform 0.2s var(--ease-out); }
.nav-panel--open .nav-panel__chevron { transform: rotate(180deg); }

.nav-panel__menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.75rem;
  width: 360px;
  max-width: calc(100vw - 2rem);
  padding: 0.5rem;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 150ms;
}
.nav-panel--open .nav-panel__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu__item { display: block; padding: 0.625rem 0.75rem; border-radius: 8px; text-decoration: none; }
.mega-menu__item:hover, .mega-menu__item:focus-visible { background: var(--surface-2); outline: none; }
.mega-menu__item-title { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.mega-menu__item-blurb { display: block; margin-top: 0.125rem; font-size: 0.8125rem; color: var(--text-muted); }

.mega-menu__footer { margin-top: 0.375rem; padding-top: 0.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.125rem; }
.mega-menu__footer-link { display: block; padding: 0.5rem 0.75rem; font-size: 0.8125rem; font-weight: 500; color: var(--primary); border-radius: 8px; text-decoration: none; }
.mega-menu__footer-link:hover, .mega-menu__footer-link:focus-visible { background: var(--primary-50); outline: none; }

.mobile-dropdown__blurb { display: block; margin-top: 0.125rem; font-size: 0.75rem; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .nav-panel__menu { transition-duration: 0.01ms; }
}
