/* Make It A Double — site vitrine
   Layout idea: every section splits in two (penser / produire), on a paper ground with ink blocks and amber as the double-shot accent. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-wdth.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
}

:root {
  --paper: #f5f4f0;
  --ink: #121212;
  --amber: #eba23b;
  --amber-deep: #8a4f00;
  --stone: #e7e4dd;
  --mute: #55544f;
  --line: rgba(18, 18, 18, 0.18);
  --line-light: rgba(245, 244, 240, 0.22);
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --space-section: clamp(64px, 10vw, 128px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
section[id] { scroll-margin-top: 72px; }

/* Display type */
.display, .h2, .wordmark, .page-title {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2 { font-size: clamp(2.8rem, 8vw, 6.25rem); line-height: 0.9; letter-spacing: -0.005em; margin: 0; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute);
}
.lead { font-size: clamp(1.125rem, 2vw, 1.4rem); line-height: 1.5; max-width: 34em; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 14px 24px; background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 2px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--amber); color: var(--ink); }
.btn--on-amber:hover { background: var(--paper); color: var(--ink); }
.arrow { width: 1.1em; height: 1.1em; flex: none; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--amber); }
.link:hover { color: var(--amber-deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 14px var(--gutter);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 38px; height: auto; }
.brand-name {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
  font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav a { font-size: 0.97rem; font-weight: 500; text-decoration: none; padding: 6px 0; }
.nav a:not(.nav-cta):hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .nav-cta { padding: 9px 18px; background: var(--ink); color: var(--paper); border-radius: 2px; font-weight: 600; transition: background-color 0.15s, color 0.15s; }
.nav .nav-cta:hover { background: var(--amber); color: var(--ink); }
.nav [aria-current="page"]:not(.nav-cta) { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; padding: 9px 14px;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px;
  font: 600 0.95rem/1 var(--font-body); cursor: pointer;
}

/* Hero */
.hero { padding-block: clamp(20px, 3.5vh, 56px) clamp(40px, 7vw, 96px); }
.hero .eyebrow { margin-bottom: clamp(10px, 2vh, 28px); }
.wordmark { font-size: clamp(4.4rem, min(25vw, 30vh), 21rem); line-height: 0.82; letter-spacing: -0.01em; margin: 0; text-wrap: nowrap; }
.wordmark span { display: block; }
.double { position: relative; display: inline-block; isolation: isolate; }
.double::after {
  content: attr(data-text); content: attr(data-text) / ""; position: absolute; z-index: -1;
  left: 0.05em; top: 0.05em; color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.35vw, 4px) var(--amber);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  margin-top: clamp(20px, 3.5vh, 56px); padding-top: clamp(20px, 2.5vh, 32px);
  border-top: 2px solid var(--ink);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin-top: 4px; }
.hero-tags li { padding: 5px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }

/* Expertises: two halves */
.split { display: grid; grid-template-columns: 1fr; }
.split-half { padding-block: clamp(48px, 7vw, 96px); padding-inline: var(--gutter); }
.split-ink { background: var(--ink); color: var(--paper); }
.split-amber { background: var(--amber); color: var(--ink); }
.split-half h3 {
  font-family: var(--font-display); font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.4rem, 9vw, 7.5rem); line-height: 0.85; margin: 0 0 clamp(12px, 2vw, 20px);
}
.split-sub { font-size: 1.3rem; font-weight: 600; margin-bottom: 14px; }
.split-text { max-width: 30em; margin-bottom: 28px; }
.ticks { list-style: none; border-top: 1px solid var(--line-light); max-width: 34em; }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--line-light); font-weight: 500; }
.rows { max-width: 34em; border-top: 1px solid rgba(18, 18, 18, 0.35); }
.rows > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid rgba(18, 18, 18, 0.35); }
.rows dt { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; }
.rows dd { font-size: 1rem; }

/* Section heads */
.section { padding-block: var(--space-section); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(32px, 5vw, 64px); align-items: end; }
.section-head p { max-width: 30em; }

/* References */
.refs { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0 clamp(24px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.refs li { border-top: 1px solid var(--line); }
.refs .ref {
  display: block; padding: 14px 0 12px;
  font-family: var(--font-display); font-stretch: 68%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1; text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.refs li:hover .ref { color: var(--amber-deep); padding-left: 10px; }
.refs .ref-cta { color: var(--amber-deep); display: flex; align-items: center; gap: 0.3em; }
.refs .ref-cta .arrow { width: 0.7em; height: 0.7em; }

/* Team */
.team { background: var(--stone); }
.team-grid { display: grid; grid-template-columns: 1fr; gap: clamp(48px, 7vw, 72px) clamp(32px, 5vw, 72px); }
.person figure { margin: 0 0 24px; background: var(--stone); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.person h3 {
  font-family: var(--font-display); font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.92; margin: 0 0 8px;
}
.person .role { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 18px; }
.person .bio { max-width: 36em; margin-bottom: 16px; }
.person .bio:last-child { margin-bottom: 0; }

/* CTA band */
.cta { background: var(--amber); padding-block: clamp(48px, 7vw, 88px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta .h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-light); }
.footer-grid h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 244, 240, 0.7); margin: 0 0 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-brand p { margin-top: 12px; color: rgba(245, 244, 240, 0.78); max-width: 24em; }
.footer-legal { padding-top: 20px; font-size: 0.875rem; color: rgba(245, 244, 240, 0.72); display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* Contact page */
.page-head { padding-block: clamp(36px, 6vw, 80px) 0; }
.page-title { font-size: clamp(3.4rem, 11vw, 9rem); line-height: 0.86; margin: 12px 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 72px); padding-block: clamp(32px, 5vw, 56px) var(--space-section); }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line); max-width: 32em; }
.contact-list > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.contact-list dd { font-weight: 500; }
.contact-list a { text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-form { background: var(--stone); padding: clamp(22px, 4vw, 40px); display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--mute); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 2px; font: 400 1rem/1.4 var(--font-body);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 1px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: 0.875rem; color: var(--mute); }
.form-status { padding: 12px 14px; background: var(--paper); border-left: 4px solid var(--amber); font-size: 0.95rem; }
.form-status.is-error { border-left-color: #a3261b; }
.form-note a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Legal page */
.legal { padding-block: clamp(32px, 5vw, 56px) var(--space-section); max-width: 52rem; }
.legal h2 { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; margin: 44px 0 12px; }
.legal p, .legal li { max-width: 42em; }
.legal p + p { margin-top: 12px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.legal-table th { width: 40%; font-weight: 600; color: var(--mute); }
.legal-table td { overflow-wrap: anywhere; }

/* Wide screens */
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .hero-side { display: grid; gap: 20px; justify-items: start; }
  .section-head { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .refs { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-ink { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
  .split-amber { padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
  .team-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1120px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Phone navigation */
@media (max-width: 759px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { font-size: 1.1rem; }
  .rows > div { grid-template-columns: 1fr; }
  .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { border-bottom: 0; padding-bottom: 0; }
  .legal-table td { padding-top: 2px; }
}

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