/* =========================================================
   Jean-Robert Siffrard — VENDIRECT Inc.
   Design system: dossier bleu marine / touches orange,
   silhouette de la ville en filigrane.
   ========================================================= */

:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #edf0f9;
  --ink: #101425;
  --ink-soft: #4b5470;
  --ink-faint: #7b849e;
  --line: #dfe3ee;
  --navy: #002878;
  --navy-deep: #00133f;
  --navy-tint: #002878;
  --orange: #ff7000;
  --orange-ink: #a34500;
  --on-navy: #eef2fb;
  --on-navy-soft: #b7c3e6;
  --focus: #ff7000;
  --shadow: 0 24px 60px -30px rgba(0, 20, 70, 0.4);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1160px;
  --gap: clamp(1rem, 1.5vw, 1.75rem);
  --section-pad: clamp(3.6rem, 7vw, 6.5rem);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080b16;
    --surface: #0f1526;
    --surface-2: #131b32;
    --ink: #edf0f9;
    --ink-soft: #b0b9d4;
    --ink-faint: #7c86a6;
    --line: #232e4d;
    --navy: #4667b8;
    --navy-deep: #050815;
    --navy-tint: #a9bdf0;
    --orange: #ff8a3d;
    --orange-ink: #ffcfa3;
    --on-navy: #eef2fb;
    --on-navy-soft: #b7c3e6;
    --focus: #ff8a3d;
    --shadow: 0 24px 70px -25px rgba(0, 0, 0, 0.65);
  }
}
:root[data-theme="dark"] {
  --bg: #080b16;
  --surface: #0f1526;
  --surface-2: #131b32;
  --ink: #edf0f9;
  --ink-soft: #b0b9d4;
  --ink-faint: #7c86a6;
  --line: #232e4d;
  --navy: #4667b8;
  --navy-deep: #050815;
  --navy-tint: #a9bdf0;
  --orange: #ff8a3d;
  --orange-ink: #ffcfa3;
  --on-navy: #eef2fb;
  --on-navy-soft: #b7c3e6;
  --focus: #ff8a3d;
  --shadow: 0 24px 70px -25px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { content: ""; width: 1.4em; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.on-navy { color: var(--on-navy-soft); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0; }
.lede { color: var(--ink-soft); max-width: 60ch; }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #1a0d00; }
.btn-primary:hover { background: #ff8a2e; }
.btn-ghost-onnavy { background: transparent; border-color: rgba(238,242,251,0.4); color: var(--on-navy); }
.btn-ghost-onnavy:hover { border-color: var(--on-navy); }
.btn-outline { background: transparent; border: 1px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.85rem; }

/* ---------- Skyline motif ---------- */
.skyline { display: block; width: 100%; height: auto; }
.skyline path, .skyline rect { fill: currentColor; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0.45rem; padding-bottom: 0.45rem; gap: 1rem; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: var(--on-navy-soft); }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: 0.4; margin: 0 0.5rem; }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 28px; width: auto; }

nav.primary { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
nav.primary a { font-size: 0.87rem; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
nav.primary a:hover, nav.primary a.active { color: var(--navy); }
:root[data-theme="dark"] nav.primary a:hover { color: var(--navy-tint); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  nav.primary {
    position: fixed; inset: 96px 0 auto 0; background: var(--surface);
    flex-direction: column; align-items: flex-start; padding: 1.5rem clamp(1.25rem,4vw,2.5rem);
    border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform 0.25s ease;
    max-height: calc(100vh - 96px); overflow-y: auto;
  }
  nav.primary.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ---------- Page intro band (interior pages) ---------- */
.page-intro {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(2.6rem, 5vw, 3.4rem);
  overflow: hidden;
}
.page-intro .skyline-wrap { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; color: rgba(238,242,251,0.08); }
.page-intro-inner { position: relative; max-width: 44rem; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; margin-top: 0.8rem; }
.page-intro .lede { color: var(--on-navy-soft); margin-top: 1rem; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.74rem; color: var(--on-navy-soft); opacity: 0.85; }
.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Hero (home only) ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 150% at 12% 0%, #0a3390 0%, var(--navy-deep) 58%, #00081f 100%);
  color: var(--on-navy);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; position: relative; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); color: #fff; margin-top: 1rem; }
.hero .lede { color: var(--on-navy-soft); font-size: 1.06rem; margin-top: 1.2rem; max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-art { color: rgba(238,242,251,0.16); }
.hero-art svg { width: 100%; height: auto; display: block; max-width: 360px; margin: 0 auto; }
.hero-skyline-strip { position: relative; z-index: 1; color: rgba(238,242,251,0.1); margin-top: clamp(2.5rem, 6vw, 4rem); }

.dossier-strip { position: relative; margin-top: clamp(-3.6rem, -5vw, -2.8rem); z-index: 2; }
.dossier-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); }
.dossier-item { padding: 1.5rem clamp(1.1rem, 2.2vw, 1.9rem); border-left: 1px solid var(--line); }
.dossier-item:first-child { border-left: none; }
.dossier-num { font-family: var(--font-mono); font-size: 1.8rem; color: var(--navy); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .dossier-num { color: var(--navy-tint); }
.dossier-label { font-size: 0.81rem; color: var(--ink-soft); margin-top: 0.3rem; line-height: 1.4; }
@media (max-width: 700px) {
  .dossier-card { grid-template-columns: 1fr; }
  .dossier-item { border-left: none; border-top: 1px solid var(--line); }
  .dossier-item:first-child { border-top: none; }
}

/* ---------- Sections ---------- */
section { padding: var(--section-pad) 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-top: 0.6rem; }
.surface-alt { background: var(--surface-2); }
.section-foot-cta { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- About / two-column blocks ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } }

.photo-dossier {
  position: relative; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--on-navy);
}
.photo-dossier::before {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 34px 34px 0;
  border-color: transparent var(--bg) transparent transparent; opacity: 0.9;
}
.photo-dossier .monogram { font-family: var(--font-display); font-size: 3.2rem; letter-spacing: 0.02em; }
.photo-dossier .tag {
  position: absolute; left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--on-navy-soft);
  border-top: 1px dashed rgba(238,242,251,0.35); padding-top: 0.6rem;
}
.photo-dossier img { width: 100%; height: 100%; object-fit: cover; display: block; }

.copy p + p { margin-top: 1.05rem; }
.copy .lede { max-width: none; }
.fact-list { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem 0.8rem; }
.fact-pill { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); border: 1px solid var(--line); padding: 0.4rem 0.75rem; border-radius: 999px; }

/* ---------- Card grids ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.diff-card { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.1rem); }
.diff-tab { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--navy); background: var(--surface-2); padding: 0.3rem 0.55rem; margin-bottom: 1rem; }
:root[data-theme="dark"] .diff-tab { color: var(--navy-tint); }
.diff-card h3 { margin-bottom: 0.55rem; }
.diff-card p { color: var(--ink-soft); font-size: 0.95rem; }
.diff-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.75rem; }
@media (max-width: 820px) { .diff-grid { grid-template-columns: 1fr; } }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 820px) { .step-grid { grid-template-columns: 1fr; } }
.step-card { position: relative; padding-top: 2.4rem; border-top: 2px solid var(--navy); }
.step-card .step-num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--orange-ink); display: block; margin-bottom: 0.55rem; }
.step-card p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.55rem; }

/* ---------- Listings ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .listing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-slot { border: 1px dashed var(--line); background: var(--surface); padding: 1.3rem; display: flex; flex-direction: column; gap: 0.85rem; min-height: 14.5rem; }
.listing-thumb {
  flex: 1; background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, transparent 10px 20px);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); text-align: center; padding: 1rem;
}
.listing-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); }
.listing-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.listing-cta p { color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--orange-ink); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); margin-top: 0.8rem; font-size: 0.95rem; max-width: 62ch; }

/* ---------- Office / territory card ---------- */
.office-card { background: var(--navy); color: var(--on-navy); padding: clamp(1.5rem, 3vw, 2.2rem); position: relative; }
.office-card .eyebrow { color: var(--on-navy-soft); }
.office-card h3 { color: #fff; margin: 0.65rem 0 1rem; }
.office-card address { font-style: normal; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.9; color: var(--on-navy-soft); }
.office-card address a { color: var(--on-navy); text-decoration: none; }
.office-card address a:hover { text-decoration: underline; }

/* ---------- Contact / form ---------- */
.contact-points { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-point { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-point .dot { width: 6px; height: 6px; margin-top: 0.55rem; background: var(--orange); flex-shrink: 0; }
.contact-point p { color: var(--ink-soft); font-size: 0.92rem; }

form.evaluation { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.3rem); }
.role-toggle { display: flex; gap: 0.6rem; margin-bottom: 1.3rem; }
.role-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.role-toggle label { flex: 1; text-align: center; padding: 0.72rem 0.5rem; border: 1px solid var(--line); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; color: var(--ink-soft); }
.role-toggle input:checked + label { border-color: var(--navy); color: var(--navy); background: var(--surface-2); }
:root[data-theme="dark"] .role-toggle input:checked + label { color: var(--navy-tint); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 0.4rem; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.72rem 0.8rem; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font-family: var(--font-body); font-size: 0.95rem; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.25rem 0 1.35rem; }
.consent input { margin-top: 0.25rem; }
.consent label { font-size: 0.8rem; color: var(--ink-faint); line-height: 1.5; }
.form-fineprint { font-size: 0.76rem; color: var(--ink-faint); margin-top: 1rem; }
.form-success { display: none; background: var(--surface-2); border-left: 3px solid var(--orange); padding: 1rem 1.2rem; font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; }
.form-success.show { display: block; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-deep); color: var(--on-navy-soft); padding: clamp(2.8rem, 6vw, 4.2rem) 0 2rem; position: relative; overflow: hidden; }
.footer-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; color: rgba(238,242,251,0.05); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
footer.site .brand img { opacity: 0.92; height: 24px; border-radius: 3px; }
.article-body { max-width: 42rem; margin: 0 auto; text-align: left; line-height: 1.75; }
.article-body h2 { margin-top: 2.2rem; font-size: 1.25rem; }
.article-body p { margin-top: 1.1rem; }
.article-meta { max-width: 42rem; margin: 0 auto 1.5rem; color: var(--ink-faint); font-size: 0.85rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1.5rem, 3vw, 2.2rem); }
.blog-card { border: 1px solid var(--border, #e4e7ee); border-radius: 10px; padding: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }
.blog-card h3 { margin: 0; }
footer.site address { font-style: normal; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.9; }
footer.site address a { color: var(--on-navy-soft); text-decoration: none; }
footer.site address a:hover { color: #fff; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.88rem; }
footer.site ul a { text-decoration: none; color: var(--on-navy-soft); }
footer.site ul a:hover { color: #fff; }
.footer-legal { position: relative; border-top: 1px solid rgba(238,242,251,0.12); margin-top: 2.4rem; padding-top: 1.5rem; font-size: 0.76rem; color: var(--on-navy-soft); opacity: 0.85; }
.footer-legal p + p { margin-top: 0.6rem; }
.social-links { display: flex; gap: 0.9rem; margin-top: 1.3rem; }
.social-links a { color: var(--on-navy-soft); display: inline-flex; opacity: 0.85; }
.social-links a:hover { color: #fff; opacity: 1; }
.social-links svg { width: 19px; height: 19px; }

/* ---------- Utility ---------- */
.stack-sm > * + * { margin-top: 0.6rem; }
.center-narrow { max-width: 46rem; margin: 0 auto; text-align: center; }
