@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/plex-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/plex-sans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ===== Tokens ===== */
:root {
  --ink: #12151B;
  --ink-soft: #1B202B;
  --paper: #F5F2EA;
  --paper-alt: #ECE7D9;
  --line: #DFD9C8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #E1682F;
  --accent-dark: #A8481B;
  --accent-darker: #833811;
  --accent-soft: #F3D9C6;
  --text: #1B1E24;
  --text-muted: #6E6A5D;
  --text-on-ink: #F1EEE6;
  --text-muted-on-ink: #A3A7B3;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Empêche iOS Safari de gonfler arbitrairement certains textes (casse le header/footer mobile) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent-dark); color: #fff;
  padding: 0.75em 1.25em; z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-darker); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
}
.section-ink .btn-ghost { color: var(--text-on-ink); }
.btn-ghost:hover { background: var(--line); }
.btn-small { padding: 0.6em 1.1em; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
}
.logo { flex-shrink: 0; }
.header-actions { flex-shrink: 0; }
.logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.main-nav {
  display: flex;
  gap: 2em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.main-nav a:hover { color: var(--text); border-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 1em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span:not(.sr-only) {
  display: block; height: 2px; width: 100%;
  background: var(--text);
}

/* ===== Hero ===== */
.hero { padding: 88px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 1.25em;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  max-width: 15ch;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 1em; margin: 1.75em 0 1.5em; flex-wrap: wrap; }
.hero-trust {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.accent-word {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 2px;
}

.hero-panel {
  border: 1px solid var(--line);
  background: #fff;
}
.hero-panel-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.hero-panel-row {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-row:hover { background: var(--paper-alt); }
.hero-panel-num {
  font-family: var(--font-mono);
  color: var(--accent-dark);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.hero-panel-row strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2em;
}
.hero-panel-row em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.diagram-svg { width: 100%; height: auto; }
.dgm-label { font: 500 11px var(--font-mono); fill: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dgm-box { rx: 2; stroke-width: 1.5; }
.dgm-box--legacy { fill: #EFEAE0; stroke: #C9C2AC; }
.dgm-box--target { fill: var(--accent-soft); stroke: var(--accent); }
.dgm-box-text { font: 500 11px var(--font-mono); fill: var(--text); }
.dgm-arrow { stroke: var(--text-muted); stroke-width: 1.5; }
.dgm-arrowhead { fill: var(--text-muted); }
.dgm-line-dashed { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.dgm-caption { font: 400 11px var(--font-sans); fill: var(--text-muted); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-paper { background: var(--paper); }
.section-ink {
  background: var(--ink);
  color: var(--text-on-ink);
}
.section-ink .section-title,
.section-ink h3 { color: var(--text-on-ink); }
.section-ink .section-lede,
.section-ink .section-index { color: var(--text-muted-on-ink); }

.section-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 1em;
}
.section-ink .section-index { color: var(--accent); }
.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  max-width: 20ch;
  margin-bottom: 0.6em;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2.5em;
}

/* Pain cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2em;
}
.pain-card { background: var(--paper); padding: 28px 24px; }
.pain-num {
  font-family: var(--font-mono);
  color: var(--accent-dark);
  font-size: 0.85rem;
  margin-bottom: 0.75em;
}
.pain-text { margin: 0; font-size: 0.95rem; }

/* Service cards */
.offer-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.services-list { display: flex; flex-direction: column; gap: 1px; background: var(--line-dark); margin-top: 2em; }
.service-card {
  background: var(--ink);
  padding: 32px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}
.service-card--accent { background: rgba(225, 104, 47, 0.07); }
.service-head h3 { font-size: 1.5rem; margin: 0; }
.service-body p { color: var(--text-muted-on-ink); font-size: 0.98rem; max-width: 60ch; }
.service-cases {
  list-style: none;
  margin: 1em 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.service-cases li {
  color: var(--text-on-ink);
  font-size: 0.9rem;
  padding-left: 1.2em;
  position: relative;
}
.service-cases li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.service-diagram {
  margin-top: 1.5em;
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.03);
  padding: 16px;
  max-width: 460px;
}
.dgm-box--slot { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-dasharray: 4 3; }
.dgm-box-text--light { fill: var(--text-muted-on-ink); }

/* Stacks */
.stack-list { margin-top: 1.5em; border-top: 1px solid var(--line); }
.stack-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.stack-name {
  font-family: var(--font-mono);
  font-weight: 500;
  margin: 0;
}
.stack-detail { margin: 0; color: var(--text-muted); }

/* Method */
.method-steps {
  list-style: none;
  margin: 2em 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.method-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.method-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent-dark);
}
.method-step h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
.method-step p { margin: 0; color: var(--text-muted); max-width: 60ch; }

/* Why grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 1.5em; }
.why-list { margin: 0; padding-left: 1.2em; color: var(--text-muted-on-ink); }
.why-list li { margin-bottom: 1em; }

/* FAQ */
.faq-list { margin-top: 1.5em; border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-dark);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0.9em 0 0; color: var(--text-muted); max-width: 68ch; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-direct { margin-top: 1.5em; font-family: var(--font-mono); font-size: 0.9rem; }
.contact-direct a { color: var(--accent); text-decoration: underline; }

.next-steps {
  margin-top: 2.5em;
  border: 1px solid var(--line-dark);
  padding: 22px 24px;
}
.next-steps-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin: 0 0 1em;
}
.next-steps ol {
  margin: 0;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}
.next-steps li {
  color: var(--text-muted-on-ink);
  font-size: 0.92rem;
}
.next-steps li strong {
  color: var(--text-on-ink);
  font-weight: 600;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted-on-ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.form-row input, .form-row textarea {
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  color: var(--text-on-ink);
  padding: 0.8em 0.9em;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 2px;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.hp-field { position: absolute; left: -9999px; }
.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--text-muted-on-ink);
  padding: 48px 0;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.logo-mono {
  font-family: var(--font-mono);
  color: var(--text-on-ink);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5em;
}
.footer-brand p { margin: 0; font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5em; font-size: 0.85rem; flex-wrap: wrap; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text-on-ink); }
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--text-on-ink); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--ink);
  border-top: 1px solid var(--accent-dark);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}
.cookie-banner-inner p {
  color: var(--text-muted-on-ink);
  font-size: 0.88rem;
  margin: 0;
  max-width: 68ch;
}
.cookie-banner-inner a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75em; flex-shrink: 0; }

@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* ===== Legal / utility pages ===== */
.legal-page { padding: 64px 0 96px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.3em; }
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5em;
}
.legal-page h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2.2em;
}
.legal-page p, .legal-page li { color: var(--text-muted); }
.legal-page a { color: var(--accent-dark); }
.legal-page ul { padding-left: 1.2em; }
.back-link {
  display: inline-block;
  margin-bottom: 2em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-muted);
}
.back-link:hover { color: var(--text); }

.merci-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}
.merci-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.merci-page p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 1.5em; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stack-row { grid-template-columns: 1fr; gap: 4px; }
  .service-card { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.5em 24px;
    gap: 1.25em;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { padding: 0.55em 0.8em; font-size: 0.7rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .method-step { grid-template-columns: 1fr; gap: 8px; }
}

/* Écrans étroits : le CTA du header disparaît (celui du hero est à un écran de distance) */
@media (max-width: 560px) {
  .header-actions .btn-small { display: none; }
}
