/* LTM Intermediary : feuille de style unique, sans dépendance externe */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f3f2ee;
  --surface: #fbfaf7;
  --ink: #0f0f0d;
  --ink-2: #3a3a36;
  --muted: #6b6a64;
  --line: #d8d6ce;
  --accent: #ff4f00;
  --accent-ink: #d63f00;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Cadre : colonne centrale bordée, comme une planche */
.frame {
  max-width: var(--max);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .frame {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 64px; padding: 0 var(--pad);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-name { font-weight: 620; letter-spacing: -0.02em; font-size: 16px; white-space: nowrap; }
.brand-name span { color: var(--muted); font-weight: 450; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none; font-size: 14.5px; color: var(--ink-2);
  transition: color .15s;
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: 6px;
  font: 500 14.5px/1 var(--sans);
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: 9px 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero .frame { position: relative; padding: clamp(56px, 10vw, 128px) var(--pad) 0; }
.hero .frame::before {
  /* trame de points discrète, seulement dans le hero */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, #cfccc3 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--accent);
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.7rem, 7.2vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 560;
}
h1 .dot { color: var(--accent); }

.hero-lede {
  max-width: 560px;
  margin: 32px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(56px, 8vw, 96px) calc(var(--pad) * -1) 0;
  border-top: 1px solid var(--line);
}
.fact { padding: 20px var(--pad); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact dt { margin-bottom: 6px; }
.fact dd { margin: 0; font-size: 15.5px; font-weight: 500; }
.fact .live { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); }
.section > .frame { padding: clamp(64px, 9vw, 112px) var(--pad); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 560;
}
.section-head p { margin: 0; color: var(--ink-2); max-width: 560px; }
.section-head > .mono { padding-top: 12px; }

/* Expertises : deux colonnes de lignes */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.col { padding-top: 22px; }
.col + .col { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.col:first-child { padding-right: clamp(20px, 3vw, 40px); }
.col-title {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 8px;
}
.col-title h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 580; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .n { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.row h4 { margin: 0; font-size: 18px; font-weight: 560; letter-spacing: -0.015em; }
.row p { grid-column: 2; margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px;
  background: var(--surface);
}

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.step { padding: 24px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step .num {
  display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-ink);
  margin-bottom: 40px;
}
.step h3 { margin: 0 0 8px; font-size: 21px; font-weight: 580; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Bandeau parti pris */
.stance { border-top: 1px solid var(--line); background: var(--ink); color: var(--bg); }
.stance .frame { border-color: #2a2a26; padding: clamp(56px, 8vw, 96px) var(--pad); }
.stance blockquote {
  margin: 0; max-width: 22ch;
  font-size: clamp(1.8rem, 4.2vw, 3.3rem);
  line-height: 1.06; letter-spacing: -0.035em; font-weight: 520;
}
.stance blockquote em { font-style: normal; color: var(--accent); }
.stance .mono { color: #9a988f; margin-top: 28px; display: block; }

/* Outils */
.stack {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin: 0; padding: 0; list-style: none;
}
.stack li {
  padding: 18px 20px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 13.5px;
}
.stack li small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; text-transform: uppercase; letter-spacing: .02em; }

/* Société */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.company-text p { margin: 0 0 18px; color: var(--ink-2); max-width: 520px; }
.company-text p:first-child { color: var(--ink); font-size: 1.2rem; line-height: 1.45; letter-spacing: -0.01em; }
.idcard {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.idcard > div {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  padding: 13px 20px; border-bottom: 1px solid var(--line);
}
.idcard > div:last-child { border-bottom: 0; }
.idcard dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.idcard dd { margin: 0; font-size: 15px; font-weight: 500; }
.idcard .idcard-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; }

/* Contact */
.contact h2 {
  margin: 0 0 40px;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 560;
  max-width: 16ch;
}
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.contact-item { padding: 22px 24px 0 0; }
.contact-item + .contact-item { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-item a, .contact-item address {
  display: inline-block; margin-top: 10px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-style: normal; font-weight: 500; letter-spacing: -0.015em;
  text-decoration: none; overflow-wrap: anywhere;
}
.contact-item a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .2s; }
.contact-item a:hover { background-size: 100% 2px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .frame {
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center;
  padding: 28px var(--pad);
  font-size: 13.5px; color: var(--muted);
}
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Pages légales ---------- */
.legal .frame { padding: clamp(48px, 8vw, 96px) var(--pad); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: none; margin-bottom: 12px; }
.legal .updated { margin: 0 0 48px; }
.legal-body { max-width: 720px; }
.legal-body h2 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
  margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line);
}
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 16px; }
.legal-body ul { padding-left: 20px; }
.legal-body a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-body .idcard { margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .split, .company { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); margin-top: 40px; }
  .col:first-child { padding-right: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr 1fr; }
  .contact-item, .contact-item + .contact-item { padding: 20px 0; border-left: 0; }
  .contact-item + .contact-item { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .frame { border-left: 0; border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0 18px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step .num { margin-bottom: 14px; }
  .idcard > div { grid-template-columns: 1fr; gap: 2px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.section-head h2 + p { margin-top: 16px; }
