/* ==========================================================================
   Resolve — feuille de style unique, sans build step.
   Direction artistique : Swiss / International Typographic Style + touche éditoriale.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/publicsans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14140f;
  --paper: #f6f4ee;
  --paper-raised: #eeebe1;
  --brand: #1c3f52;
  --brand-strong: #0f2a38;
  --accent: #c1531f;
  --accent-dark: #9c4118;
  --grey: #6f6b5f;
  --grey-line: #d9d5c7;
  --white: #ffffff;

  --font-display: "Archivo", Arial, sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --gap: 24px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; }

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

/* ---- Typography ---- */
.h-display, h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0;
}
.lede {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 58ch;
}
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 68ch; }

/* ---- Layout ---- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 64px 0; border-bottom: 1px solid var(--grey-line); }
section:last-of-type { border-bottom: none; }
.section-tight { padding: 48px 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }

@media (max-width: 860px) {
  .grid-12 { grid-template-columns: 1fr; }
  .col-6, .col-4, .col-8 { grid-column: auto; }
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--grey-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--brand-strong);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  padding: 0;
  margin: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--accent);
}
.nav-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 20px; }
  .nav-links a { font-size: 1.1rem; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--brand-strong); border-color: var(--grey-line); }
.btn-outline:hover { border-color: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); }

/* ---- Hero ---- */
.hero { padding: 72px 0 64px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { color: var(--brand-strong); max-width: 15ch; }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* ---- Numbered list (process, etc.) — meaningful sequence ---- */
.step-list { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--gap);
  padding: 32px 0;
  border-top: 1px solid var(--grey-line);
}
.step:first-child { border-top: none; }
.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--grey-line);
  line-height: 1;
}
.step h3 { margin-bottom: 10px; color: var(--brand-strong); }
.step p { color: var(--grey); max-width: 62ch; }

@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- Cards (services, pillars) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-line);
  border: 1px solid var(--grey-line);
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--paper);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { color: var(--brand-strong); }
.card p { color: var(--grey); font-size: 0.98rem; }
.card-mark {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--grey-line);
  font-size: 1.6rem;
  line-height: 1;
}

/* ---- Section headers ---- */
.section-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap);
  align-items: end;
  margin-bottom: 44px;
}
.section-head .lede { margin: 0; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---- Panel (constat / quote) ---- */
.panel {
  background: var(--brand-strong);
  color: var(--paper);
  padding: 56px 0;
  border-bottom: none;
}
.panel h2, .panel h1 { color: var(--white); }
.panel .lede { color: rgba(246,244,238,0.75); }
.panel-quote {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: none;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  max-width: 42ch;
}

/* ---- FAQ ---- */
.faq-item {
  border-top: 1px solid var(--grey-line);
  padding: 26px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--grey-line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--brand-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .answer {
  margin-top: 16px;
  color: var(--grey);
  max-width: 68ch;
}

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field .hint { font-size: 0.82rem; color: var(--grey); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--grey-line);
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field-error {
  color: var(--accent-dark);
  font-size: 0.9rem;
  margin-top: 14px;
}

/* Honeypot: kept in the DOM and tabbable-off, but never visible to a real visitor. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.reassurance {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper-raised);
  padding: 20px 22px;
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--grey);
}

/* ---- Photo placeholder (swap for real photography) ---- */
.photo-slot {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--grey-line), var(--grey-line) 10px, var(--paper-raised) 10px, var(--paper-raised) 20px);
  border: 1px solid var(--grey-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 20px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--brand-strong);
  color: rgba(246,244,238,0.8);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(246,244,238,0.15);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-grid .logo { color: var(--white); }
.footer-grid .logo span { color: var(--accent); }
.footer-tagline { margin-top: 14px; max-width: 34ch; font-size: 0.92rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: rgba(246,244,238,0.5);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(246,244,238,0.5);
}

/* ---- Utilities ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.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;
}

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