/* ==========================================================================
   Altarum — feuille de style statique
   Registre industriel / technique. Angles vifs partout, filets rares.
   Toutes les couleurs passent par des variables CSS (thème « Blanc »).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --hero: #f6f5f3;
  --ink: #1d1d1b;
  --muted: #6b6f76;
  --line: #e6e6e3;
  --accent: #145c74;
  --accent-ink: #ffffff;
  --accent-2: #ec4c04;
  --accent-2-deep: #b83a03;
  --accent-2-deep-ink: #ffffff;
  --pastel: #e4edf1;
  --pastel-ink: #0f4557;
  --pastel-body: #3d4f57;
  --btn-dark: #ffffff;
  --btn-dark-ink: #101418;

  --shadow-card: 0 8px 20px rgba(29, 29, 27, .10);
  --shadow-card-accent: 0 8px 20px rgba(20, 92, 116, .28);
  --shadow-card-pastel: 0 8px 20px rgba(20, 92, 116, .14);
  --shadow-menu: 0 12px 28px rgba(29, 29, 27, .13);

  --max: 1200px;
  --pad-x: 48px;
  --pad-x-chrome: 40px;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.marquee-track) { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
input, textarea, button, select { font-family: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: 'IBM Plex Mono', monospace; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; --pad-x-chrome: 20px; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  font-size: 13px; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------------- */
/* Typography                                                             */
/* ---------------------------------------------------------------------- */

h1, h2, h3 { font-weight: 600; text-wrap: pretty; }

.h1-hero {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 24px;
}

.h1-page {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.03;
  letter-spacing: -.025em;
  margin: 0 0 20px;
}

.h2-section {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

.h2-card { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 14px; }
.h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 10px; }

.kpi-number {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.lede { font-size: 17px; line-height: 1.6; color: var(--muted); }
.lede-lg { font-size: 18px; line-height: 1.6; color: var(--muted); }
.body-text { font-size: 15px; line-height: 1.6; color: var(--muted); }

.label-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 6px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Layout / sections / grids                                              */
/* ---------------------------------------------------------------------- */

.section { padding: 96px var(--pad-x); }
.section--tight-top { padding-top: 24px; }
.section--mid-top { padding-top: 56px; }
.section--no-bottom { padding-bottom: 0; }
.section--band { padding: 0 var(--pad-x) 96px; }

@media (max-width: 900px) {
  .section { padding: 64px var(--pad-x); }
  .section--tight-top { padding-top: 20px; }
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 44px;
}

.grid-auto--sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 44px;
}

.grid-4-fixed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 920px) {
  .grid-4-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .grid-4-fixed { grid-template-columns: 1fr; }
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
}

.rule-2 { height: 2px; background: var(--ink); }
.rule-2-accent { border-top: 2px solid var(--accent-2); }
.rule-1-ink { border-top: 1px solid var(--ink); }
.rule-1-line { border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------------- */
/* Header / navigation                                                    */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad-x-chrome);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo img { height: 30px; width: auto; }
.logo span { font-weight: 700; letter-spacing: .22em; font-size: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-link[aria-current="page"] { border-bottom-color: var(--accent-2); }

.btn-nav-cta {
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 10px 18px;
  font-weight: 600;
}
.btn-nav-cta:hover { opacity: .9; }

/* Offre dropdown */
.nav-offre { position: relative; display: inline-flex; align-items: center; }
.nav-offre-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink);
  font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  background: none; border-left: none; border-right: none; border-top: none;
  font-family: inherit; cursor: pointer;
}
.nav-offre-trigger[aria-current="page"],
.nav-offre.is-open .nav-offre-trigger { border-bottom-color: var(--accent-2); }
.nav-offre-caret {
  font-size: 18px; line-height: 1; color: var(--accent-2);
  transition: transform .16s ease;
}
.nav-offre.is-open .nav-offre-caret { transform: rotate(180deg); }

.nav-offre-panel {
  position: absolute; top: 100%; left: -16px; padding-top: 14px; z-index: 60;
  display: none;
}
.nav-offre.is-open .nav-offre-panel { display: block; }

.nav-offre-panel-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-menu);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 30px;
  width: max-content;
  max-width: min(90vw, 520px);
}

.nav-offre-col-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.nav-offre-item {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.nav-offre-col > .nav-offre-item:last-child { border-bottom: none; }
.nav-offre-item:hover { color: var(--accent); }
.nav-offre-item-title { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.005em; }
.nav-offre-item-tag { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

.nav-offre-footer {
  grid-column: span 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-decoration: none; background: var(--pastel); padding: 14px 18px; margin-top: 2px;
}
.nav-offre-footer:hover { opacity: .82; }
.nav-offre-footer-label { font-size: 14.5px; font-weight: 600; color: var(--pastel-ink); }
.nav-offre-footer-arrow { color: var(--accent-2); font-size: 17px; line-height: 1; }

@media (min-width: 901px) {
  .nav-offre:hover .nav-offre-panel,
  .nav-offre:focus-within .nav-offre-panel { display: block; }
}
@media (max-width: 900px) {
  .nav-offre-panel { display: block !important; }
}

/* Mobile nav */
.nav-burger {
  display: none;
  background: none; border: none; padding: 8px; margin: 0;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); }

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; inset: 65px 0 0 0; z-index: 49;
    background: var(--bg);
    flex-direction: column; align-items: flex-start;
    padding: 28px var(--pad-x-chrome) 40px;
    gap: 4px;
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  }
  .nav-links.is-open {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity .16s ease, transform .16s ease;
  }
  .nav-link, .nav-offre-trigger { width: 100%; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line) !important; }
  .btn-nav-cta { margin-top: 12px; text-align: center; }
  .nav-offre { display: block; width: 100%; }
  .nav-offre-panel { position: static; padding-top: 0; }
  .nav-offre-panel-inner { box-shadow: none; border: none; padding: 8px 0 8px 14px; grid-template-columns: 1fr; max-width: none; width: 100%; }
  .nav-offre-footer { grid-column: auto; }
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--hero); }

.footer-top {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--pad-x-chrome);
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}

.footer-brand { max-width: 360px; }
.footer-brand-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-mark img { height: 28px; width: auto; }
.footer-brand-mark span { font-weight: 700; letter-spacing: .22em; font-size: 17px; }
.footer-legal { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.8; color: var(--muted); margin: 0; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col-title { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--pad-x-chrome);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: .06em;
}

/* ---------------------------------------------------------------------- */
/* Buttons & links                                                        */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 15px 26px; border: none; white-space: nowrap;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: .9; }

.btn-secondary { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

.btn-inverted {
  background: var(--btn-dark); color: var(--btn-dark-ink);
  border: 2px solid var(--btn-dark-ink); padding: 13px 24px;
}
.btn-inverted:hover { opacity: .9; }

.btn-on-accent { background: var(--btn-dark); color: var(--btn-dark-ink); border: 2px solid var(--btn-dark-ink); padding: 13px 24px; }

.chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  padding: 9px 15px; border: 1px solid var(--line); background: transparent; color: var(--ink);
}
.chip.is-active, .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.link-arrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  color: var(--accent); text-decoration: none; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 4px;
}
.link-arrow--deep { color: var(--accent-2-deep); }
.link-arrow:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */

.card {
  display: flex; flex-direction: column;
  border-top: 2px solid var(--accent-2);
  padding-top: 24px;
}

.card-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.card-list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.card-list li { padding: 5px 0; }
.card-list li::before { content: "— "; color: var(--accent-2); }

a.card-clickable { text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
a.card-clickable:hover, .card-hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.card-flat {
  display: flex; flex-direction: column;
  padding: 30px 30px 32px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-flat--hero { background: var(--hero); color: var(--ink); }
.card-flat--pastel { background: var(--pastel); color: var(--pastel-ink); }
.card-flat--accent { background: var(--accent); color: var(--accent-ink); }
.card-flat--accent:hover { box-shadow: var(--shadow-card-accent); }
.card-flat--pastel:hover { box-shadow: var(--shadow-card-pastel); }
a.card-flat { text-decoration: none; }

.card-meta-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;
  padding-top: 16px; margin-top: auto;
}
.card-meta-row.on-line { border-top: 1px solid var(--line); }
.card-meta-row.on-white { border-top: 1px solid rgba(255,255,255,.35); }
.card-meta-label { color: inherit; opacity: .72; display: block; margin-bottom: 3px; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  background: var(--bg);
}
.hero-flex {
  display: flex; flex-wrap: wrap; align-items: stretch;
}
.hero-copy { flex: 1 1 460px; padding: 72px 48px 64px; }
.hero-media {
  flex: 1 1 380px;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.hero-media img { width: 100%; height: auto; max-width: 100%; display: block; }
.hero-copy .lede-lg { max-width: 520px; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-plain {
  background: var(--hero);
  padding: 72px 48px 64px;
}
.hero-plain .lede-lg { max-width: 620px; }

/* Sector marquee */
.marquee-wrap { border-top: 1px solid var(--line); overflow: hidden; white-space: nowrap; background: var(--hero); }
.marquee-track {
  display: inline-flex;
  animation-name: mq;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 28s; /* repère de secours ; ajusté en JS pour une vitesse constante en px/s */
  will-change: transform;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .14em;
  color: var(--muted); padding: 12px 0;
}
.marquee-track span.sep { color: var(--accent); }
.marquee-track span.item { padding: 0 22px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Ce bandeau défile toujours, y compris avec "réduire les animations"
   activé — choix produit assumé, voir échange avec le client. */

/* KPI strip */
.kpi-strip { padding: 56px 48px 8px; }
.kpi-strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px; }
.kpi-strip-grid .kpi-label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Media placeholder (hachures) */
.media-hatch {
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 11px), var(--hero);
  display: flex; align-items: flex-end; padding: 14px;
}
.media-hatch-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); padding: 5px 9px;
}
.media-hatch--square { aspect-ratio: 1 / 1; }
.media-hatch--portrait { aspect-ratio: 4 / 5; }

.portrait-photo { overflow: hidden; }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-photo--square { aspect-ratio: 1 / 1; }
.portrait-photo--tall { aspect-ratio: 4 / 5; }

.illustration-pastel {
  background: var(--pastel); aspect-ratio: 16 / 10; min-height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 32px; text-align: center;
}
.illustration-pastel svg { opacity: .55; }
.illustration-pastel-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pastel-ink); }
.illustration-pastel-caption { font-size: 13.5px; line-height: 1.5; color: var(--pastel-body); max-width: 280px; }

.illustration-photo {
  display: flex; align-items: center; justify-content: center;
  background: var(--pastel);
}
.illustration-photo img { width: 100%; height: auto; max-width: 100%; display: block; }

/* ---------------------------------------------------------------------- */
/* Team                                                                    */
/* ---------------------------------------------------------------------- */

.team-card { display: flex; flex-direction: column; }
.team-card .media-hatch { margin-bottom: 22px; }
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-role { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.team-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.team-linkedin, .partner-link { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }

.partner-card { display: flex; flex-direction: column; max-width: 480px; }
.partner-card-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.partner-card-head .partner-photo { width: 84px; flex: 0 0 84px; }
.partner-card-head h3 { font-size: 17px; margin-bottom: 4px; }
.partner-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }

.associate-block { display: flex; flex-wrap: wrap; gap: 44px; }
.associate-portrait { flex: 0 1 300px; min-width: 240px; }
.associate-bio { flex: 1 1 380px; }
.associate-bio .team-role { font-size: 12px; color: var(--accent-2-deep); margin-bottom: 10px; }
.associate-bio h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin: 0 0 18px; letter-spacing: -.015em; }
.associate-bio p { color: var(--muted); font-size: 15.5px; line-height: 1.65; margin: 0 0 16px; }
.associate-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.associate-tags li { font-family: 'IBM Plex Mono', monospace; font-size: 12px; border: 1px solid var(--line); padding: 7px 12px; color: var(--ink); }
.associate-contact { border-top: 1px solid var(--line); padding-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.associate-contact a { text-decoration: none; }

/* ---------------------------------------------------------------------- */
/* Résultats / business cases                                             */
/* ---------------------------------------------------------------------- */

.filters-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.filters-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.filters-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }

.case-card {
  display: flex; flex-direction: column; border-top: 2px solid var(--accent-2); padding-top: 24px;
  text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.case-card.is-disabled {
  border-top: 1px solid var(--line); opacity: .62; cursor: default; pointer-events: none;
}
.case-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent-2-deep); letter-spacing: .06em; }
.case-card h3 { font-size: 21px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.3; }
.case-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.case-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.case-card-kpi-value { font-size: 30px; font-weight: 600; color: var(--accent); letter-spacing: -.02em; line-height: 1; }
.case-card-kpi-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.case-card-arrow { color: var(--accent-2); font-size: 22px; line-height: 1; }
.case-card-soon { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-card-sector { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); margin-top: 16px; }

/* ---------------------------------------------------------------------- */
/* Périmètre d'intervention (offer detail)                                */
/* ---------------------------------------------------------------------- */

.scope-col { display: flex; flex-direction: column; }
.scope-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2-deep); margin-bottom: 10px; }
.scope-indicator { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.scope-col h3 { font-size: 18px; margin: 0 0 8px; }
.scope-col > p.body-text { margin-bottom: 20px; }
.scope-lever { border-top: 1px solid var(--line); padding: 16px 0; }
.scope-lever:first-of-type { border-top: 1px solid var(--ink); }
.scope-lever-name { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.scope-lever-desc { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; }
.scope-lever-result { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* Formation — parcours & ceintures                                       */
/* ---------------------------------------------------------------------- */

.jobs-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; }
.jobs-list li {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .02em;
  border: 1px solid var(--line); padding: 10px 14px; color: var(--ink);
}

.milestones { display: flex; flex-direction: column; gap: 24px; }
.milestone-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .1em; color: var(--accent-2-deep); margin-bottom: 8px; }
.milestone h4 { font-size: 16px; margin: 0 0 6px; }
.milestone p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.milestone-meta { display: flex; gap: 28px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.milestone-meta strong { color: var(--ink); display: block; margin-bottom: 3px; font-weight: 600; }

.progress-arrow {
  display: flex; align-items: center; gap: 18px; margin-bottom: 44px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: .04em;
}
.progress-arrow .track {
  flex: 1; height: 2px;
  background: linear-gradient(to right, var(--line), var(--accent-2));
  position: relative;
}
.progress-arrow .track::after {
  content: "▶"; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  color: var(--accent-2); font-size: 11px;
}

.belt-card { border-top: none; padding-top: 0; overflow: hidden; }
.belt-band { height: 5px; }
.belt-body { padding: 20px 22px 26px; border: 1px solid var(--line); border-top: none; height: 100%; }
.belt-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.belt-body h4 { font-size: 19px; margin: 0 0 10px; }
.belt-objective { color: var(--ink); font-weight: 500; font-size: 14.5px; line-height: 1.5; margin-bottom: 14px; }
.belt-list { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.belt-list li { padding: 3px 0; }
.belt-list li::before { content: "— "; color: var(--accent-2); }
.belt-fields { border-top: 1px solid var(--line); padding-top: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.belt-fields strong { color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Déroulé (phases)                                                       */
/* ---------------------------------------------------------------------- */

.phase-step { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.phase-card h3 { font-size: 20px; margin: 0 0 12px; }

/* Cas représentatif */
.quote-block {
  background: var(--pastel); padding: 40px 44px; color: var(--pastel-ink);
}
.quote-block blockquote { font-size: clamp(20px, 2.4vw, 27px); font-weight: 500; line-height: 1.4; margin: 0 0 20px; }
.quote-block .quote-meta { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--pastel-body); }

/* ---------------------------------------------------------------------- */
/* Contact                                                                 */
/* ---------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 72px; align-items: start; }
.contact-direct { border-top: 2px solid var(--ink); padding-top: 26px; margin-bottom: 32px; }
.contact-direct-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.contact-people { display: flex; flex-wrap: wrap; gap: 36px; }
.contact-person-name { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.contact-person-info { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.contact-person-info a { text-decoration: none; }

.contact-more { border-top: 1px solid var(--line); padding-top: 22px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 2; color: var(--muted); }
.contact-more a { text-decoration: none; border-bottom: 1px solid var(--accent-2); }
.contact-more .ink { color: var(--ink); }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field span.field-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form-field span.field-label .optional { text-transform: none; letter-spacing: 0; }

.form-field input {
  border: none; border-bottom: 1px solid var(--ink); background: transparent;
  padding: 10px 2px; font-size: 16px; color: var(--ink); outline: none; width: 100%;
}
.form-field input:focus { border-bottom-color: var(--accent); }

.form-field textarea {
  border: 1px solid var(--line); background: transparent; padding: 14px;
  font-size: 16px; line-height: 1.55; color: var(--ink); outline: none; resize: vertical; width: 100%;
}
.form-field textarea:focus { border-color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 26px; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.form-note { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; line-height: 1.7; color: var(--muted); margin: 0; }

.btn-submit { border: none; background: var(--accent); color: var(--accent-ink); padding: 17px 24px; font-size: 16px; font-weight: 600; align-self: flex-start; }
.btn-submit:hover { opacity: .9; }

.form-sent { border-top: 2px solid var(--accent-2); padding-top: 32px; display: none; }
.form-sent.is-visible { display: block; }
.contact-form.is-hidden { display: none; }
.form-sent-badge { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent-2-deep); letter-spacing: .12em; margin-bottom: 18px; }
.form-sent h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.form-sent p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 30px; max-width: 440px; }

/* ---------------------------------------------------------------------- */
/* Base de connaissances                                                  */
/* ---------------------------------------------------------------------- */

.kb-legend {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 48px;
}
.kb-legend-types { display: flex; flex-wrap: wrap; gap: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted); }
.kb-legend-types strong { color: var(--ink); }
.kb-legend-right { display: flex; align-items: center; gap: 20px; }
.kb-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.kb-toggle-all { font-family: 'IBM Plex Mono', monospace; font-size: 12px; padding: 9px 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.kb-toggle-all:hover { border-color: var(--ink); }

.kb-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.kb-col-head { border-top: 3px solid var(--accent-2); padding-top: 18px; margin-bottom: 8px; }
.kb-col-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.kb-col-head h2 { font-size: 21px; margin: 0 0 10px; }
.kb-col-head p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.kb-col-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); }

.kb-group { margin-top: 6px; }
.kb-group summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px 0 10px; border-bottom: 1px solid var(--ink);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.kb-group summary::-webkit-details-marker { display: none; }
.kb-group summary .kb-group-left { display: flex; align-items: center; gap: 10px; }
.kb-group summary .chevron { color: var(--accent-2); font-size: 12px; width: 1em; }
.kb-group[open] summary .chevron::before { content: "▾"; }
.kb-group:not([open]) summary .chevron::before { content: "▸"; }
.kb-group summary .kb-group-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); font-weight: 400; }

.kb-items { padding: 4px 0 8px; }
.kb-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kb-item:last-child { border-bottom: none; }
.kb-item:has(.badge) { opacity: .62; }
.kb-item-main { display: flex; flex-direction: column; gap: 6px; }
.kb-item-title { font-size: 15.5px; font-weight: 500; line-height: 1.4; color: var(--ink); }
a.kb-item-title { text-decoration: none; }
a.kb-item-title:hover { color: var(--accent); text-decoration: underline; }
.kb-item-type { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2-deep); }

/* ---------------------------------------------------------------------- */
/* Business case: client facts, chart, results band                      */
/* ---------------------------------------------------------------------- */

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.fact-value { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.02em; }
.fact-label { color: var(--muted); font-size: 14px; margin-top: 6px; }

.chart-wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.chart-col { min-width: 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; border-bottom: 1px solid var(--ink); }
.chart-bar-fill { background: #b9ccd4; }
.chart-bar-fill.is-late { background: var(--accent); }
.chart-labels { display: flex; gap: 10px; margin-top: 8px; }
.chart-bar-label { flex: 1; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); }
.chart-side { display: flex; flex-direction: column; gap: 18px; min-width: 200px; }
.chart-figure-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.chart-figure-value { font-size: 26px; font-weight: 600; }
.chart-figure-value.is-accent { color: var(--accent); }
.chart-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 6px; }

@media (max-width: 760px) {
  .chart-wrap { grid-template-columns: 1fr; }
}

.results-band { background: var(--accent); color: var(--accent-ink); }
.results-band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.results-band .fact-value { font-size: clamp(34px, 4vw, 50px); }
.results-band .fact-label { color: rgba(255,255,255,.82); }

.lever-insert { background: var(--hero); padding: 28px 30px; }
.lever-insert h3 { font-size: 17px; margin: 0 0 14px; }
.lever-insert ul li { font-size: 14.5px; line-height: 1.6; padding: 4px 0; color: var(--ink); }
.lever-insert ul li::before { content: "— "; color: var(--accent-2); }

.impl-card .card-num { font-size: 24px; color: var(--accent-2-deep); }
.impl-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.impl-card .metric { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* Utility: private-equity / accent callout band                          */
/* ---------------------------------------------------------------------- */

.pe-callout {
  background: var(--accent); color: var(--accent-ink);
  padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.pe-callout .callout-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-bottom: 14px; }
.pe-callout h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.02em; margin: 0; max-width: 680px; }
.pe-callout p { font-size: 16px; line-height: 1.6; opacity: .9; margin: 16px 0 0; max-width: 680px; }

.pastel-callout {
  background: var(--pastel); padding: 56px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.pastel-callout h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; color: var(--pastel-ink); max-width: 640px; }
.pastel-callout p { font-size: 16px; line-height: 1.6; color: var(--pastel-body); margin: 0; max-width: 520px; }

.tips-insert { background: var(--pastel); padding: 32px 34px; }
.tips-insert h3 { color: var(--pastel-ink); font-size: 17px; margin: 0 0 16px; }
.tips-insert li { color: var(--pastel-body); font-size: 14.5px; line-height: 1.6; padding: 5px 0; }
.tips-insert li::before { content: "— "; color: var(--accent-2-deep); }

/* Back link */
.back-link {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted);
  text-decoration: none; display: inline-block; margin-bottom: 24px;
}
.back-link:hover { color: var(--accent); }

/* Other-pages links list */
.other-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.other-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.other-links a:hover .other-links-arrow { color: var(--accent-2-deep); }
.other-links-arrow { color: var(--accent-2); }

/* CTA band with top rule */
.cta-block { border-top: 2px solid var(--ink); padding-top: 44px; }
.cta-block h2 { max-width: 640px; margin-bottom: 24px; }

@media (max-width: 640px) {
  .hero-copy, .hero-plain { padding: 48px 20px 40px; }
  .pe-callout, .pastel-callout { padding: 36px 24px; }
}

/* ---------------------------------------------------------------------- */
/* Long-form article body (base de connaissances)                         */
/* ---------------------------------------------------------------------- */

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }

.article-toc { position: sticky; top: 96px; }
.article-toc-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 14px;
}
.article-toc ul { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); margin: 0; padding: 0; }
.article-toc li { padding: 0; }
.article-toc a {
  display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 13.5px; line-height: 1.4; color: var(--muted); text-decoration: none;
}
.article-toc a:hover { color: var(--ink); }
.article-toc a.is-active { color: var(--accent); font-weight: 600; border-left-color: var(--accent-2); }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { position: static; margin-bottom: 40px; }
  .article-toc ul { flex-direction: row; flex-wrap: wrap; border-left: none; gap: 8px; }
  .article-toc li { min-width: 0; max-width: 100%; }
  .article-toc a { border-left: none; border-bottom: 2px solid var(--line); padding: 6px 2px; margin-left: 0; }
  .article-toc a.is-active { border-bottom-color: var(--accent-2); }
}

/* The text itself stays a comfortable reading width; figures, the table
   and the callout boxes are allowed to use more of the page — otherwise
   the whole article sits in a narrow column with the rest of the page
   left blank. */
.article-body > p, .article-body > ul, .article-body > ol, .article-body > h2, .article-body > h3 {
  max-width: 720px;
}
.article-body p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 56px 0 20px; color: var(--ink); }
.article-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 14px; color: var(--ink); }
.article-body ul, .article-body ol { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
.article-body li { padding: 4px 0; }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li::before { content: "— "; color: var(--accent-2); }
.article-body ol { padding-left: 22px; }
.article-body .card-flat { max-width: 720px; }

.article-figure { margin: 32px 0; max-width: 980px; }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 10px; max-width: 720px; }

.video-embed { aspect-ratio: 16 / 9; margin: 32px 0; max-width: 860px; background: var(--hero); }
.video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }

.simple-table-wrap { margin: 24px 0; overflow-x: auto; max-width: 860px; }
.simple-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.simple-table th { text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.simple-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
