/* TMG Conseil — Bento moderne · Terracotta
   Styles partagés entre les pages connexes */

:root {
  --ink: #18181B;
  --ink-soft: #3F3F46;
  --paper: #FAFAF9;
  --line: #E7E5E0;
  --line-soft: #EFEDE8;
  --muted: #71717A;
  --accent: #DD6B4D;
  --accent-deep: #B04A2D;
  --tile-sage: #DDE4D3;
  --tile-cream: #F2E8D5;
  --tile-lavender: #D9D4E7;
  --tile-peach: #F3DAC8;
  --tile-mint: #C7DDD6;
  --tile-ash: #E7E5E0;
  --tile-ink: #18181B;
  --ff-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-xl: 32px;
  --radius-l: 24px;
  --radius-m: 16px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ── Nav ─────────────────────────────────────── */
.nav {
  padding: 24px 0;
  position: sticky; top: 0;
  background: rgba(250,250,249,0.85);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  z-index: 50;
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
}
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--ff-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
}
.logo .mark::after {
  content:""; position: absolute;
  bottom: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--paper);
}
.nav-links { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--tile-ash); color: var(--ink); }
.nav-links a.is-active { background: var(--ink); color: var(--paper); }
.nav .cta {
  padding: 11px 18px 11px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.nav .cta .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  border: 0; padding: 14px 20px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 0; }
.btn-ghost .arr { transition: transform .2s; }
.btn-ghost:hover .arr { transform: translateX(4px); }
.btn-tile { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.btn-tile:hover { background: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }

/* ── Page header (sub-pages) ─────────────────── */
.page-head {
  padding: 56px 0 24px;
}
.page-head .crumbs {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.page-head .crumbs .sep { color: var(--line); }
.page-head .crumbs .here { color: var(--ink); }
.page-head h1 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  max-width: 18ch;
}
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head h1 .swash {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  padding: 0 12px 4px;
  border-radius: 18px;
  font-style: italic;
  transform: rotate(-2deg);
}
.page-head .lede {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}
.page-head .head-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: end;
}
.page-head .head-meta {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 6px;
}
.page-head .head-meta b { color: var(--ink); font-weight: 500; }

/* ── Sections ────────────────────────────────── */
.section { padding: 64px 0; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head .eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.section-head h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 22ch;
}
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head .right-note {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
  max-width: 26ch;
}

/* ── Tiles & cards ───────────────────────────── */
.tile {
  border-radius: var(--radius-l);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tile h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.tile p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 12px 0 0;
}
.tile-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-soft);
}
.tile-eyebrow .num { font-weight: 600; color: var(--ink); }

.tile-accent { background: var(--accent); color: #fff; }
.tile-accent .tile-eyebrow { color: rgba(255,255,255,0.85); }
.tile-accent .tile-eyebrow .num { color: #fff; }
.tile-accent p { color: rgba(255,255,255,0.9); }
.tile-sage { background: var(--tile-sage); }
.tile-cream { background: var(--tile-cream); }
.tile-lavender { background: var(--tile-lavender); }
.tile-peach { background: var(--tile-peach); }
.tile-mint { background: var(--tile-mint); }
.tile-ash { background: var(--tile-ash); }
.tile-ink { background: var(--ink); color: var(--paper); }
.tile-ink .tile-eyebrow { color: rgba(255,255,255,0.55); }
.tile-ink .tile-eyebrow .num { color: var(--accent); }
.tile-ink p { color: rgba(255,255,255,0.75); }
.tile-paper { background: #fff; border: 1px solid var(--line); }

.tile .bignum {
  position: absolute;
  bottom: -16px;
  right: -8px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 180px;
  line-height: 0.8;
  color: rgba(0,0,0,0.06);
  pointer-events: none;
}
.tile-accent .bignum,
.tile-ink .bignum { color: rgba(255,255,255,0.16); }

/* ── Marquee ─────────────────────────────────── */
.marquee {
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-transform: uppercase;
}
.marquee span { padding: 0 28px; }
.marquee .dot { color: var(--accent); }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 80px;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.footer .f-brand {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0;
}
.footer .f-brand em { font-style: normal; color: var(--accent); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14.5px; color: rgba(255,255,255,0.8); }
.footer ul a:hover { color: #fff; }
.footer .f-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.footer .f-cta {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.footer .f-cta .pip { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ── Utility ─────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
  margin: 56px 0;
}
.mono { font-family: var(--ff-mono); }
.up { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .page-head .head-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
