:root {
  --ink: #0b1220;
  --ink-2: #172033;
  --paper: #f5f4ef;
  --white: #ffffff;
  --muted: #657083;
  --line: #d8dce3;
  --line-dark: rgba(255,255,255,.16);
  --blue: #2d63ff;
  --blue-dark: #1d4ed8;
  --blue-soft: #e9efff;
  --green: #45d483;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(10, 20, 40, .12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--blue); color: #fff; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.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: fixed; left: 16px; top: -100px; z-index: 9999; background: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(245,244,239,.9);
  backdrop-filter: blur(18px);
  border-color: rgba(11,18,32,.08);
}
.nav-wrap { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 16px; letter-spacing: -.06em;
}
.brand-word { font-size: 21px; }
.brand-word span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav a { position: relative; color: #273146; }
.nav a:not(.nav-portfolio)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--blue); transition: right .2s ease;
}
.nav a:hover::after { right: 0; }
.nav-portfolio { padding: 10px 14px; border: 1px solid rgba(11,18,32,.16); border-radius: 10px; }
.nav-portfolio:hover { border-color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 6px auto; transition: .2s; }

.hero { padding: 158px 0 86px; min-height: 760px; display: flex; align-items: center; background:
  linear-gradient(rgba(11,18,32,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(11,18,32,.035) 1px, transparent 1px), var(--paper);
  background-size: 58px 58px;
  background-position: center top;
}
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--blue); text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 800; }
.hero h1 { margin: 0; max-width: 850px; font-size: clamp(54px, 6.2vw, 86px); line-height: .98; letter-spacing: -.065em; font-weight: 780; }
.hero h1 span { color: var(--blue); }
.hero-lead { max-width: 720px; margin: 30px 0 0; color: #4f5b70; font-size: 19px; line-height: 1.72; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { min-height: 50px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 11px; border: 1px solid transparent; font-size: 14px; font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 30px rgba(45,99,255,.22); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 15px 35px rgba(45,99,255,.28); }
.button-ghost { border-color: rgba(11,18,32,.16); background: rgba(255,255,255,.45); }
.button-ghost:hover { border-color: var(--ink); background: #fff; }
.button-light { background: #fff; color: var(--ink); }
.hero-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 38px; color: #6a7486; font-size: 12px; font-weight: 650; }
.hero-proof i { display: block; width: 3px; height: 3px; border-radius: 50%; background: #aab1bd; }

.hero-panel { background: var(--ink); color: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 32px 90px rgba(9,18,36,.22); transform: rotate(1deg); }
.panel-head, .panel-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 7px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #9eabc1; }
.status { color: #dbe6f7; display: inline-flex; align-items: center; gap: 7px; }
.status b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(69,212,131,.1); }
.capability-list { border: 1px solid rgba(255,255,255,.11); border-radius: 14px; overflow: hidden; }
.cap-row { display: grid; grid-template-columns: 34px 1fr 24px; gap: 14px; align-items: center; padding: 19px 17px; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); }
.cap-row:last-child { border-bottom: 0; }
.cap-row:hover { background: rgba(255,255,255,.055); }
.cap-id { color: #697a96; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.cap-row strong { display: block; font-size: 15px; letter-spacing: -.01em; margin-bottom: 4px; }
.cap-row small { color: #93a0b5; font-size: 12px; }
.arrow { color: #6e83a6; font-size: 18px; }
.panel-foot { padding: 15px 7px 5px; color: #7f90aa; }

.trust-strip { border-top: 1px solid rgba(11,18,32,.08); border-bottom: 1px solid rgba(11,18,32,.08); background: rgba(255,255,255,.35); overflow: hidden; }
.trust-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; white-space: nowrap; color: #667185; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }

.section { padding: 116px 0; }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; font-size: clamp(39px, 4.5vw, 62px); line-height: 1.03; letter-spacing: -.055em; font-weight: 760; }
.section-head > p { max-width: 470px; margin: 0 0 3px; color: var(--muted); line-height: 1.75; font-size: 15px; }

.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 360px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.32); transition: background .25s ease, transform .25s ease; }
.service-card:hover { background: #fff; }
.service-number { display: block; margin-bottom: 44px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #8a94a5; }
.service-card h3 { margin: 0 0 14px; font-size: 26px; letter-spacing: -.035em; }
.service-card p { margin: 0 0 24px; color: #657083; line-height: 1.7; max-width: 540px; }
.service-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13px; color: #39455a; }
.service-card li { position: relative; padding-left: 18px; }
.service-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); position: absolute; left: 0; top: .52em; }

.section-dark { background: var(--ink); color: #fff; }
.section-head-dark > p { color: #98a5b9; }
.section-dark .eyebrow { color: #7fa2ff; }
.projects-list { border-top: 1px solid var(--line-dark); }
.project-row { display: grid; grid-template-columns: 66px 1fr 120px; gap: 28px; padding: 42px 0; border-bottom: 1px solid var(--line-dark); }
.project-index { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #5f718f; font-size: 11px; padding-top: 5px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.project-tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #9fb0ca; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.project-main h3 { margin: 0 0 12px; font-size: 34px; letter-spacing: -.04em; }
.project-main p { max-width: 760px; margin: 0; color: #a8b3c4; line-height: 1.72; }
.project-stack { margin-top: 18px; color: #6f84a4; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.project-links { display: flex; justify-content: flex-end; align-items: flex-start; }
.project-links a { padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 700; color: #dce6f6; }
.project-links a:hover { color: #fff; border-color: #fff; }
.project-links span { margin-left: 5px; }
.projects-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.projects-cta p { margin: 0; color: #8f9eb4; max-width: 650px; line-height: 1.6; }

.method-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 96px; }
.method-intro { position: sticky; top: 130px; align-self: start; }
.method-intro h2 { margin: 0; font-size: clamp(42px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.method-intro > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; margin: 25px 0; max-width: 500px; }
.text-link { display: inline-flex; gap: 8px; font-size: 13px; font-weight: 750; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.method-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.method-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.method-steps > li > span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #9099a8; padding-top: 5px; }
.method-steps h3 { margin: 0 0 9px; font-size: 25px; letter-spacing: -.035em; }
.method-steps p { margin: 0; color: var(--muted); line-height: 1.65; }

.expertise-section { padding-top: 40px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.expertise-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; min-height: 230px; background: rgba(255,255,255,.34); }
.expertise-card > span { display: block; margin-bottom: 45px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; color: #8a94a5; }
.expertise-card h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.03em; }
.expertise-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.contact-section { background: #e8ecf4; border-top: 1px solid #d7dce6; }
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 82px; align-items: start; }
.contact-copy h2 { margin: 0; font-size: clamp(44px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.contact-copy > p:not(.eyebrow) { max-width: 540px; margin: 25px 0 34px; color: #5d687a; line-height: 1.75; }
.contact-points { border-top: 1px solid #ccd3df; }
.contact-points > div { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid #ccd3df; }
.contact-points span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: #8b96a8; padding-top: 3px; }
.contact-points p { margin: 0; color: #667185; line-height: 1.45; font-size: 13px; }
.contact-points strong { color: var(--ink); }
.direct-contact { margin-top: 28px; display: flex; flex-direction: column; gap: 5px; }
.direct-contact span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #8b96a8; font-weight: 800; }
.direct-contact a { width: fit-content; font-weight: 720; border-bottom: 1px solid #8a94a5; }

.quote-form { background: #fff; border: 1px solid #d5dce7; border-radius: 18px; padding: 30px; box-shadow: 0 24px 70px rgba(18,28,48,.08); }
.form-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #e5e8ee; }
.form-top > div { display: flex; flex-direction: column; gap: 5px; }
.form-top span { color: #8a94a5; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.form-top strong { font-size: 22px; letter-spacing: -.03em; }
.form-state { color: #41825f !important; padding: 7px 9px; border: 1px solid #cbe6d7; border-radius: 999px; background: #f3fbf6; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field > span { font-size: 11px; font-weight: 750; color: #4f5b6f; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d7dce5; background: #fafbfc; border-radius: 9px; padding: 13px 14px; outline: none; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field textarea { resize: vertical; min-height: 145px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7c9dff; box-shadow: 0 0 0 4px rgba(45,99,255,.08); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #a6aeba; }
.consent { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; margin: 5px 0 18px; color: #6a7485; font-size: 11px; line-height: 1.45; }
.consent input { margin: 1px 0 0; }
.submit-button { width: 100%; }
.form-note { margin: 12px 0 0; color: #8b95a5; font-size: 10px; text-align: center; line-height: 1.5; }
.form-note code { background: #f1f3f6; padding: 2px 4px; border-radius: 4px; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

.footer { background: #080f1b; color: #fff; padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.brand-footer .brand-mark { background: #fff; color: var(--ink); }
.footer-grid > div:first-child > p { color: #73819a; margin: 18px 0 0; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-links > div { display: grid; align-content: start; gap: 10px; }
.footer-links span { color: #65748c; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; font-weight: 800; }
.footer-links a { color: #b8c3d4; font-size: 13px; width: fit-content; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 55px; margin-top: 55px; border-top: 1px solid rgba(255,255,255,.1); color: #617089; font-size: 10px; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Navigation compacte : on bascule avant que les liens desktop ne manquent de place. */
@media (max-width: 1040px) {
  .site-header {
    background: rgba(245,244,239,.96);
    backdrop-filter: blur(18px);
    border-color: rgba(11,18,32,.08);
  }
  .nav-wrap { height: 70px; }
  .nav-toggle { display: block; position: relative; z-index: 1002; }
  .nav {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    height: calc(100dvh - 70px);
    padding: 18px max(24px, calc((100vw - var(--container)) / 2)) 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background: #f5f4ef;
    border-top: 1px solid rgba(11,18,32,.08);
    box-shadow: 0 24px 55px rgba(11,18,32,.10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a {
    width: 100%;
    padding: 17px 2px;
    border-bottom: 1px solid rgba(11,18,32,.10);
    color: var(--ink);
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.03em;
  }
  .nav a::after { display: none; }
  .nav-portfolio {
    margin-top: 14px;
    padding: 14px 16px !important;
    border: 1px solid rgba(11,18,32,.16) !important;
    border-radius: 10px;
    background: #fff;
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}

@media (max-width: 1000px) {
  .hero-grid, .section-head, .method-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { max-width: 650px; transform: none; }
  .section-head { align-items: start; }
  .section-head > p { max-width: 700px; }
  .method-intro { position: static; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { justify-content: flex-start; overflow: auto; scrollbar-width: none; }
  .trust-inner::-webkit-scrollbar { display: none; }
}

@media (max-width: 800px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .hero { padding: 120px 0 68px; min-height: auto; }
  .hero-grid { gap: 52px; }
  .hero h1 { font-size: clamp(48px, 14vw, 70px); }
  .hero-lead { font-size: 17px; }
  .section { padding: 82px 0; }
  .section-head { margin-bottom: 38px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .project-row { grid-template-columns: 44px 1fr; gap: 14px; }
  .project-links { grid-column: 2; justify-content: flex-start; }
  .project-main h3 { font-size: 29px; }
  .projects-cta { align-items: flex-start; flex-direction: column; }
  .expertise-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-bottom { flex-direction: column; gap: 9px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-word { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-proof i { display: none; }
  .hero-panel { padding: 12px; border-radius: 16px; }
  .cap-row { grid-template-columns: 25px 1fr 18px; padding: 16px 13px; gap: 9px; }
  .cap-row small { font-size: 10px; }
  .section-head h2, .method-intro h2, .contact-copy h2 { font-size: 40px; }
  .service-card { padding: 26px 22px; }
  .service-number { margin-bottom: 30px; }
  .project-row { grid-template-columns: 1fr; }
  .project-index, .project-links { grid-column: 1; }
  .method-steps li { grid-template-columns: 42px 1fr; gap: 12px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 22px 17px; border-radius: 13px; }
  .form-top { flex-direction: column; }
  .footer-links { gap: 20px; }
}

.founder-section { padding: 0 0 116px; }
.founder-card {
  display: grid;
  grid-template-columns: .52fr 1.48fr;
  gap: 70px;
  padding: 48px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(12, 24, 44, .05);
}
.founder-label { display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; padding-right: 36px; border-right: 1px solid var(--line); }
.founder-label span { color: #8b95a5; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.founder-label b { font-size: 18px; letter-spacing: -.025em; }
.founder-copy h2 { margin: 0; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.founder-copy > p:not(.eyebrow) { max-width: 760px; margin: 24px 0 28px; color: var(--muted); line-height: 1.75; }
.founder-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .founder-section { padding-bottom: 82px; }
  .founder-card { grid-template-columns: 1fr; gap: 34px; padding: 30px; }
  .founder-label { min-height: auto; gap: 28px; padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .founder-card { padding: 23px 18px; border-radius: 14px; }
  .founder-copy h2 { font-size: 38px; }
  .founder-actions { align-items: flex-start; flex-direction: column; }
}