:root {
  --ink: #18231d;
  --muted: #657069;
  --paper: #f4f1e8;
  --card: #fbfaf5;
  --line: #d7d5ca;
  --accent: #e85d3f;
  --green: #315d49;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display: flex; width: 28px; height: 28px; align-items: end; gap: 3px; padding: 5px; border-radius: 7px; background: var(--ink); }
.brand-mark i { display: block; width: 4px; background: var(--paper); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 11px; background: var(--accent); }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: .88rem; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--ink); }
.language-switch { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; color: var(--ink); background: var(--card); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; }
.language-switch:hover { border-color: var(--muted); }
.language-flag { display: inline-block; width: 1.35rem; height: .9rem; flex: none; border: 1px solid #0002; border-radius: 2px; box-shadow: 0 1px 2px #0002; }
.flag-fr { background: linear-gradient(90deg, #1b3f8b 0 33.333%, #fff 33.333% 66.666%, #e3343f 66.666%); }
.flag-en { background: linear-gradient(27deg, transparent 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%), linear-gradient(-27deg, transparent 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%), linear-gradient(90deg, transparent 40%, #fff 40% 44%, #c8102e 44% 56%, #fff 56% 60%, transparent 60%), linear-gradient(transparent 36%, #fff 36% 42%, #c8102e 42% 58%, #fff 58% 64%, transparent 64%), #21468b; }

.hero { display: grid; min-height: 690px; grid-template-columns: 1.25fr .75fr; gap: clamp(48px, 9vw, 120px); align-items: center; padding-block: 88px; }
.eyebrow, .section-number { margin: 0; color: var(--accent); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 22px 0 0; font-size: clamp(4.4rem, 8.6vw, 8rem); line-height: .86; letter-spacing: -.078em; }
h1 span { color: var(--green); }
h1 .title-primary { color: var(--ink); }
.hero-lede { max-width: 660px; margin: 32px 0 0; color: var(--muted); font-size: 1.16rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; border-radius: 8px; padding: 0 20px; color: white; background: var(--ink); font-weight: 800; text-decoration: none; }
.button:hover { background: var(--green); }
.text-link { font-size: .9rem; font-weight: 800; text-underline-offset: 5px; }

.workbench { align-self: end; margin-bottom: 44px; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--card); box-shadow: 15px 15px 0 #e3dfd3; transform: rotate(1.5deg); }
.workbench-label { margin: 0 0 32px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.workbench-line { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.workbench-line span { color: var(--accent); font-size: .72rem; font-weight: 850; }
.workbench-note { margin: 32px 0 0; color: var(--green); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .74rem; }

.intro, .closing { display: grid; grid-template-columns: minmax(160px, .4fr) 1.6fr; gap: 40px; border-top: 1px solid var(--line); padding-block: 110px; }
h2 { max-width: 850px; margin: 0; font-size: clamp(2.8rem, 5.5vw, 5.5rem); line-height: .96; letter-spacing: -.06em; }
.prose { max-width: 750px; margin-top: 38px; }
.prose p { margin: 0 0 22px; color: var(--muted); font-size: 1.02rem; line-height: 1.78; }
.lead-prose p:first-child { color: var(--ink); font-size: 1.28rem; }

.principles, .projects { border-top: 1px solid var(--line); padding-block: 110px; }
.section-heading { display: grid; grid-template-columns: minmax(160px, .4fr) 1.6fr; gap: 40px; margin-bottom: 62px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle-grid article { min-height: 330px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #ffffff3a; }
.principle-grid article > span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; }
.principle-grid h3 { margin: 70px 0 18px; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.025em; }
.principle-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.project-card { display: flex; min-height: 280px; align-items: start; justify-content: space-between; gap: 24px; border-radius: 18px; padding: clamp(30px, 3.5vw, 44px); color: white; background: var(--green); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.project-card:hover { background: #244c3b; transform: translateY(-3px); }
.project-status { display: inline-block; border-radius: 99px; padding: 7px 10px; color: #d5efdf; background: #ffffff17; font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.project-card h3 { margin: 34px 0 12px; font-size: clamp(2.7rem, 4vw, 4rem); line-height: .95; letter-spacing: -.06em; }
.project-card p { max-width: 610px; margin: 0; color: #d2e0d8; font-size: 1rem; line-height: 1.6; }
.project-arrow { align-self: end; font-size: 2.4rem; }

.closing { margin-top: 20px; }
.site-footer { display: flex; min-height: 150px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer .brand { color: var(--ink); }

a:focus-visible, button:focus-visible { outline: 3px solid #e85d3f55; outline-offset: 5px; }

@media (max-width: 850px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 75px; }
  .workbench { max-width: 480px; align-self: auto; margin: 0; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1160px); }
  .site-header { min-height: 78px; }
  nav { gap: 10px; align-items: center; }
  nav a:first-child { display: none; }
  .hero { gap: 58px; padding-block: 58px 85px; }
  h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: center; }
  .text-link { text-align: center; }
  .intro, .closing, .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .intro, .closing, .principles, .projects { padding-block: 78px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 275px; }
  .principle-grid h3 { margin-top: 50px; }
  .project-list { grid-template-columns: 1fr; gap: 28px; }
  .project-card { min-height: 0; align-items: start; }
  .project-arrow { font-size: 2rem; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card { transition: none; }
}
