@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap");

:root {
  --paper: #f3f0e9;
  --panel: #fbfaf6;
  --ink: #151512;
  --text: #3c3832;
  --muted: #726b61;
  --line: #d5cec2;
  --strong-line: #aaa195;
  --accent: #8b3a24;
  --dark: #11110f;
  --light: #f7f3ea;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 72px;
  padding: 0 clamp(var(--s3), 4vw, var(--s6));
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 233, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.brand strong,
nav a,
.eyebrow,
.section-kicker,
.hero-actions a,
dt,
.mission-list span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
}

.brand strong {
  color: var(--ink);
}

nav {
  display: flex;
  gap: var(--s3);
}

.menu-toggle {
  display: none;
}

main {
  overflow: hidden;
}

h1,
h2,
p,
figure,
blockquote,
dl,
dd,
ol {
  margin: 0;
}

p,
dd,
address,
li p {
  max-width: 62ch;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-style: normal;
}

h1,
h2,
blockquote {
  font-weight: 500;
  letter-spacing: 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: clamp(var(--s4), 5vw, var(--s6));
  align-items: center;
  padding: clamp(var(--s5), 8vw, 112px) clamp(var(--s3), 5vw, var(--s7));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: var(--s3);
  color: var(--accent);
}

h1 {
  max-width: 11ch;
  font-size: clamp(54px, 6.8vw, 96px);
  line-height: 0.93;
}

.hero-copy > p:not(.eyebrow) {
  margin-top: var(--s4);
  font-size: clamp(18px, 1.5vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
}

.hero-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--s3);
  border: 1px solid var(--strong-line);
  color: var(--ink);
}

.hero-actions a:first-child {
  background: var(--ink);
  color: var(--light);
  border-color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: min(660px, 70vh);
  display: grid;
  grid-template-columns: 1fr 180px;
  grid-template-rows: 1fr 180px;
  gap: var(--s2);
}

.hero-main {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  border: 1px solid var(--strong-line);
}

.hero-main img {
  filter: saturate(0.85) contrast(1.03);
}

.hero-small {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  border: 10px solid var(--paper);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.visual-note {
  position: absolute;
  left: var(--s3);
  bottom: var(--s3);
  z-index: 2;
  max-width: 260px;
  padding: 10px 12px;
  background: rgba(243, 240, 233, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.agency,
.missions,
.principle,
.contact {
  padding: clamp(var(--s5), 7vw, var(--s7)) clamp(var(--s3), 5vw, var(--s7));
  border-top: 1px solid var(--line);
}

.agency {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  background: var(--panel);
}

.agency-intro h2,
.method-copy h2,
.contact h2 {
  max-width: 11ch;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.96;
}

.agency-intro p {
  margin-top: var(--s3);
}

.agency-intro {
  min-height: 560px;
  display: grid;
  align-content: center;
  padding: clamp(var(--s5), 7vw, var(--s7));
}

.agency-intro h2 {
  max-width: 12ch;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1;
}

.agency-data {
  display: grid;
  align-content: center;
  padding: clamp(var(--s4), 5vw, var(--s6));
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.agency-data > p,
.agency-note span {
  margin: 0 0 var(--s3);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--accent);
}

.facts {
  border-top: 1px solid var(--strong-line);
}

.facts div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: var(--s2);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  padding-top: 0.35em;
}

dd {
  color: var(--ink);
}

.agency-visual {
  min-height: 520px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.agency-visual-main {
  grid-column: 1;
  border-left: 0;
  border-bottom: 0;
}

.agency-visual img {
  filter: saturate(0.86) contrast(1.03);
}

.agency-note {
  display: grid;
  align-content: end;
  padding: clamp(var(--s4), 5vw, var(--s6));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.agency-note p {
  max-width: 34ch;
  font-size: 20px;
}

.missions {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--s6);
}

.mission-list {
  display: grid;
  gap: var(--s3);
}

.mission-list article {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 0.56fr);
  min-height: 300px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.mission-list figure {
  min-height: 300px;
  overflow: hidden;
}

.mission-list img {
  filter: saturate(0.9) contrast(1.02);
  transition: transform 700ms ease;
}

.mission-list article:hover img {
  transform: scale(1.035);
}

.mission-list article > div {
  display: grid;
  align-content: center;
  padding: clamp(var(--s3), 4vw, var(--s5));
}

.mission-list span {
  color: var(--accent);
  margin-bottom: var(--s2);
}

.mission-list h2 {
  margin-bottom: var(--s3);
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.98;
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  min-height: 780px;
  border-top: 1px solid var(--line);
}

.method-image {
  min-height: 520px;
}

.method-copy {
  display: grid;
  align-content: center;
  padding: clamp(var(--s5), 6vw, var(--s7));
  background: var(--ink);
  color: var(--light);
}

.method-copy .section-kicker {
  color: #d78f73;
}

.method-copy h2 {
  color: var(--light);
}

.method-copy ol {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
  padding: 0;
  list-style: none;
}

.method-copy li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid rgba(247, 243, 234, 0.24);
}

.method-copy strong {
  font-size: 18px;
  font-weight: 600;
}

.method-copy p {
  color: rgba(247, 243, 234, 0.72);
}

.principle {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1fr);
  min-height: 780px;
  align-items: stretch;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

blockquote {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 1.1;
}

.principle figure {
  min-height: 520px;
  border-left: 1px solid rgba(247, 243, 234, 0.16);
}

.principle-content {
  display: grid;
  align-content: center;
  padding: clamp(var(--s5), 6vw, var(--s7));
  color: var(--light);
}

.principle-content h2 {
  max-width: 11ch;
  color: var(--light);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
}

.principle-content .section-kicker {
  color: #d78f73;
}

.position-lead {
  margin-top: var(--s4);
  color: rgba(247, 243, 234, 0.74);
  font-size: 20px;
}

.position-points {
  display: grid;
  gap: 0;
  margin-top: var(--s5);
  border-top: 1px solid rgba(247, 243, 234, 0.22);
}

.position-points article {
  display: grid;
  grid-template-columns: 64px minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  align-content: start;
  min-height: auto;
  padding: var(--s3) 0;
  border-bottom: 1px solid rgba(247, 243, 234, 0.22);
  background: transparent;
}

.position-points span {
  margin-bottom: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  color: #d78f73;
}

.position-points strong {
  margin-bottom: 0;
  color: var(--light);
  font-size: 22px;
  font-weight: 500;
}

.position-points p {
  color: rgba(247, 243, 234, 0.68);
  font-size: 15px;
  line-height: 1.55;
}

.contact {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) 330px minmax(260px, 0.55fr);
  gap: var(--s5);
  align-items: center;
  background: var(--dark);
  color: var(--light);
}

.contact .section-kicker {
  color: #d78f73;
}

.contact h2 {
  color: var(--light);
}

.contact address {
  color: var(--light);
}

.contact a {
  display: inline-block;
  margin-top: var(--s4);
  border-bottom: 1px solid currentColor;
}

.contact figure {
  height: 360px;
  border: 1px solid rgba(247, 243, 234, 0.22);
  opacity: 0.82;
}

.projects-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: var(--s6);
  align-items: end;
  padding: clamp(var(--s5), 7vw, var(--s7)) clamp(var(--s3), 5vw, var(--s7));
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.projects-teaser h2,
.projects-hero h1 {
  max-width: 13ch;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 0.96;
}

.text-button {
  width: fit-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--s4);
  padding: 0 var(--s3);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.projects-page .site-header {
  position: sticky;
}

.projects-hero {
  min-height: 36vh;
  display: grid;
  align-content: end;
  padding: clamp(var(--s4), 6vw, var(--s6)) clamp(var(--s3), 5vw, var(--s7));
  border-bottom: 1px solid var(--line);
}

.projects-hero p:not(.section-kicker) {
  margin-top: var(--s4);
  font-size: clamp(18px, 1.5vw, 22px);
}

.projects-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  min-height: 100vh;
}

.project-grid {
  display: grid;
  align-content: start;
  gap: var(--s2);
  padding: var(--s4);
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.project-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--s2);
  align-items: end;
  min-height: 140px;
  padding: var(--s2);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.project-card.is-active {
  border-color: var(--ink);
}

.project-card img {
  grid-row: span 3;
  height: 108px;
  border: 1px solid var(--line);
}

.project-card span,
.project-card small,
.project-meta dt,
.admin-form label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 500;
}

.project-detail {
  padding: clamp(var(--s4), 5vw, var(--s7));
}

.project-detail-head {
  display: grid;
  gap: var(--s3);
  max-width: 860px;
}

.project-detail h2 {
  max-width: 11ch;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.92;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--s5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-meta div {
  padding: var(--s3);
  border-right: 1px solid var(--line);
}

.project-meta dd {
  margin-top: var(--s2);
  font-size: 24px;
}

.project-cover {
  height: min(720px, 70vh);
  border: 1px solid var(--line);
}

.project-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
  margin: var(--s6) 0;
}

.project-body h3 {
  margin: 0 0 var(--s2);
  font-size: 28px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.project-gallery figure {
  min-height: 420px;
  border: 1px solid var(--line);
}

.project-gallery figure:nth-child(3n + 1) {
  grid-column: span 2;
  min-height: 560px;
}

.admin-panel {
  padding: clamp(var(--s5), 7vw, var(--s7)) clamp(var(--s3), 5vw, var(--s7));
  border-top: 1px solid var(--line);
  background: var(--dark);
  color: var(--light);
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  align-items: end;
  margin-bottom: var(--s5);
}

.admin-head h2 {
  font-size: clamp(40px, 5vw, 72px);
}

.admin-project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.admin-project-list button {
  display: grid;
  gap: var(--s1);
  min-height: 112px;
  padding: var(--s2);
  border: 1px solid rgba(247, 243, 234, 0.24);
  background: rgba(247, 243, 234, 0.08);
  color: var(--light);
  text-align: left;
  cursor: pointer;
}

.admin-project-list button.is-active {
  border-color: var(--light);
  background: rgba(247, 243, 234, 0.16);
}

.admin-project-list span,
.admin-project-list small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.62);
}

.admin-project-list strong {
  color: var(--light);
  font-size: 22px;
  line-height: 1.08;
  font-weight: 500;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.admin-form label {
  display: grid;
  gap: var(--s1);
  color: rgba(247, 243, 234, 0.72);
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(247, 243, 234, 0.24);
  background: rgba(247, 243, 234, 0.08);
  color: var(--light);
  padding: 14px;
  font: inherit;
}

.admin-form .full-field {
  grid-column: span 2;
}

.admin-actions {
  grid-column: span 2;
  display: flex;
  gap: var(--s2);
}

.admin-actions button {
  min-height: 46px;
  padding: 0 var(--s3);
  border: 1px solid var(--light);
  background: var(--light);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-actions button + button {
  background: transparent;
  color: var(--light);
}

.admin-login {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--s3);
  background: rgba(17, 17, 15, 0.58);
  backdrop-filter: blur(10px);
}

.admin-login form {
  width: min(420px, 100%);
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.admin-login p {
  font-size: 28px;
  color: var(--ink);
}

.admin-login label {
  display: grid;
  gap: var(--s1);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-login input {
  min-height: 46px;
  border: 1px solid var(--strong-line);
  background: var(--panel);
  padding: 0 var(--s2);
  font: inherit;
}

.admin-login button {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-login button[aria-label="Fermer"] {
  justify-self: end;
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.admin-login strong {
  color: var(--accent);
}

body.modal-open {
  overflow: hidden;
}

.projects-workspace {
  display: block;
  min-height: auto;
  padding: clamp(var(--s4), 5vw, var(--s7));
  border-bottom: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  padding: 0;
  border: 0;
  background: transparent;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 520px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.project-card figure {
  height: 380px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-card img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transition: transform 700ms ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card > div {
  display: grid;
  align-content: end;
  gap: var(--s2);
  padding: var(--s3);
}

.project-card strong {
  display: block;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  font-weight: 500;
}

.project-detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  overflow: auto;
  padding: 0;
  background: var(--paper);
}

.project-detail.is-open {
  display: block;
  animation: projectIn 220ms ease-out;
}

@keyframes projectIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-close {
  position: fixed;
  top: var(--s3);
  right: var(--s3);
  z-index: 2;
  min-height: 44px;
  padding: 0 var(--s3);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--light);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.project-modal-layout {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: clamp(var(--s4), 5vw, var(--s7));
  min-height: 100vh;
  padding: clamp(var(--s5), 7vw, 112px) clamp(var(--s3), 5vw, var(--s7));
}

.project-detail-head {
  position: sticky;
  top: var(--s5);
  align-self: start;
  display: grid;
  gap: var(--s3);
  max-width: 440px;
}

.project-detail h2 {
  max-width: 10ch;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  overflow-wrap: normal;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: var(--s4) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.project-meta div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--s2);
  padding: var(--s2) 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.project-meta dd {
  margin-top: 0;
  font-size: 18px;
}

.project-viewer {
  grid-column: 2;
  display: grid;
  gap: var(--s2);
  align-content: start;
}

.project-cover {
  height: min(680px, 72vh);
  border: 1px solid var(--line);
  background: var(--panel);
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(78px, 1fr));
  gap: var(--s2);
}

.project-thumbs button {
  height: 92px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  opacity: 0.62;
  cursor: pointer;
}

.project-thumbs button.is-active {
  opacity: 1;
  border-color: var(--ink);
}

.project-body {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
  margin: var(--s4) 0 0;
}

.project-body h3 {
  margin: 0 0 var(--s2);
  font-size: 28px;
}

.project-gallery {
  display: none;
}

@media (max-width: 1050px) {
  .hero,
  .agency,
  .missions,
  .method,
  .principle,
  .contact,
  .projects-teaser,
  .projects-workspace,
  .project-body {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    min-height: auto;
    padding-block: var(--s2);
  }

  body.menu-open {
    overflow: hidden;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    flex: 0 0 auto;
    border: 1px solid var(--ink);
    background: rgba(243, 240, 233, 0.9);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 1px;
    display: block;
    background: var(--ink);
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    z-index: 18;
    display: grid;
    gap: 0;
    padding: 0 var(--s2) var(--s2);
    border-bottom: 1px solid var(--line);
    background: rgba(243, 240, 233, 0.98);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-header nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--ink);
  }

  .hero {
    min-height: calc(100svh - 71px);
    grid-template-columns: minmax(0, 0.95fr) minmax(136px, 0.78fr);
    gap: var(--s2);
    align-items: center;
    padding: var(--s3) var(--s2);
  }

  .hero-copy {
    max-width: none;
  }

  .hero .eyebrow {
    margin-bottom: var(--s2);
    font-size: 12px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(30px, 8.4vw, 42px);
    line-height: 0.96;
  }

  .hero-copy > p:not(.eyebrow) {
    margin-top: var(--s2);
    font-size: 13px;
    line-height: 1.48;
  }

  .hero-actions {
    margin-top: var(--s3);
    gap: 8px;
    flex-direction: row;
  }

  .hero-actions a {
    width: auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-visual {
    min-height: min(560px, 72svh);
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .hero-small {
    display: none;
  }

  .visual-note {
    left: var(--s2);
    bottom: var(--s2);
    max-width: 170px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .agency,
  .missions,
  .principle,
  .contact {
    gap: 0;
    padding: var(--s4) var(--s2);
  }

  .facts div,
  .method-copy li {
    grid-template-columns: 1fr;
  }

  p,
  dd,
  address,
  li p {
    font-size: 14px;
    line-height: 1.55;
  }

  .agency {
    padding: 0;
  }

  .agency-intro {
    min-height: auto;
    padding: var(--s4) var(--s2);
  }

  .agency-intro h2 {
    max-width: 13ch;
    font-size: clamp(32px, 10vw, 44px);
  }

  .agency-intro p {
    margin-top: var(--s2);
  }

  .agency-data {
    padding: var(--s3) var(--s2);
  }

  .facts div {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: var(--s2);
    padding: 12px 0;
  }

  .agency-visual {
    min-height: 300px;
    border-left: 0;
    border-right: 0;
  }

  .agency-data,
  .agency-note {
    border-left: 0;
  }

  .agency-note {
    padding: var(--s3) var(--s2) var(--s4);
  }

  .agency-note p {
    max-width: none;
    font-size: 16px;
  }

  .missions {
    display: block;
  }

  .missions > .section-kicker {
    margin-bottom: var(--s3);
  }

  .mission-list {
    gap: var(--s2);
  }

  .mission-list article {
    min-height: 0;
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .mission-list figure {
    min-height: 188px;
  }

  .mission-list article > div {
    padding: var(--s2);
  }

  .mission-list h2 {
    margin-bottom: var(--s2);
    font-size: clamp(24px, 8vw, 34px);
  }

  .mission-list p {
    font-size: 13px;
  }

  .method {
    min-height: auto;
  }

  .method-image {
    min-height: 260px;
  }

  .method-copy {
    padding: var(--s4) var(--s2);
  }

  .method-copy h2 {
    max-width: 12ch;
    font-size: clamp(32px, 10vw, 44px);
  }

  .method-copy ol {
    gap: var(--s2);
    margin-top: var(--s4);
  }

  .method-copy li {
    gap: var(--s1);
    padding-top: var(--s2);
  }

  .principle {
    min-height: auto;
    padding: 0;
    background: var(--ink);
  }

  .principle figure {
    min-height: 280px;
    order: 2;
    border-top: 1px solid rgba(247, 243, 234, 0.16);
    border-left: 0;
    border-right: 0;
  }

  .principle-content {
    order: 1;
    padding: var(--s4) var(--s2);
  }

  .principle-content h2 {
    max-width: 12ch;
    font-size: clamp(30px, 9vw, 42px);
  }

  .position-lead {
    margin-top: var(--s2);
    color: rgba(247, 243, 234, 0.74);
    font-size: 15px;
  }

  .position-points {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: var(--s3);
  }

  .position-points article {
    grid-template-columns: 36px minmax(92px, 0.38fr) minmax(0, 1fr);
    gap: var(--s2);
    min-height: 0;
    padding: 14px 0;
  }

  .position-points span {
    margin-bottom: 0;
    font-size: 12px;
  }

  .position-points strong {
    margin-bottom: 0;
    font-size: 15px;
  }

  .position-points p {
    font-size: 12px;
    line-height: 1.45;
  }

  .projects-teaser {
    gap: var(--s3);
    padding: var(--s4) var(--s2);
  }

  .projects-teaser h2 {
    max-width: 12ch;
    font-size: clamp(30px, 9vw, 42px);
  }

  .projects-teaser .text-button {
    margin-top: var(--s3);
  }

  .projects-hero {
    min-height: auto;
    padding: var(--s4) var(--s2);
  }

  .projects-hero h1 {
    max-width: 12ch;
    font-size: clamp(30px, 9vw, 42px);
  }

  .projects-hero p:not(.section-kicker) {
    margin-top: var(--s2);
    font-size: 14px;
  }

  .contact {
    min-height: auto;
    gap: var(--s3);
    align-items: start;
  }

  .contact h2 {
    max-width: 13ch;
    font-size: clamp(30px, 9vw, 42px);
  }

  .contact a {
    margin-top: var(--s2);
  }

  .contact figure {
    height: 220px;
  }

  .project-grid {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-meta,
  .project-gallery,
  .admin-project-list,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .project-gallery figure:nth-child(3n + 1),
  .admin-form label:nth-child(n),
  .admin-actions {
    grid-column: auto;
  }

  .admin-actions {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand strong {
    max-width: 180px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(128px, 0.8fr);
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions a {
    width: fit-content;
  }

  .agency-intro h2,
  .method-copy h2,
  .principle-content h2,
  .projects-teaser h2,
  .projects-hero h1,
  .contact h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  blockquote {
    font-size: clamp(26px, 9vw, 38px);
  }

  .hero-visual {
    min-height: min(510px, 69svh);
  }
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-modal-layout {
    grid-template-columns: 1fr;
  }

  .project-detail-head,
  .project-viewer,
  .project-body {
    grid-column: auto;
  }

  .project-detail-head {
    position: static;
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .project-card figure {
    height: 300px;
  }

  .project-modal-layout {
    padding: 88px var(--s3) var(--s5);
  }

  .project-detail h2 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .project-cover {
    height: 380px;
  }

  .project-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-body {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------------------------
   Passe tactile (2026-08-02) — skill desktop-vers-mobile, bascule 1.
   Au doigt, :hover se declenche apres la tape et reste colle. On le neutralise
   sur pointeur grossier et on fournit un etat presse a tout l'interactif.
--------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  a:active,
  button:active,
  [role="button"]:active,
  summary:active,
  label:active {
    opacity: 0.62;
    transition: opacity 0.05s linear;
  }

  a,
  button,
  [role="button"] {
    -webkit-tap-highlight-color: transparent;
  }
}

/* 16 px est un plancher technique : en dessous, iOS zoome de force la page
   des qu'on touche un champ. */
input:not([type="hidden"]),
select,
textarea {
  font-size: 16px;
  min-height: 48px;
}

textarea {
  min-height: 120px;
}

/* Cibles tactiles : plancher de 44 px (WCAG 2.5.5 + Apple HIG).
   Le lien de marque etait a 38 px, les boutons a 36 px, le numero de
   telephone du pied de page a 23 px. */
.brand,
.button,
.btn,
a.cta,
footer a,
.contact a,
a[href^="tel:"],
.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Pas de `display` sur .menu-toggle : il doit rester masque sur grand ecran,
   c'est la requete media qui le fait apparaitre sous 760 px. */
.menu-toggle {
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}


/* Le defilement anime est agreable a la souris, mais sur telephone un lien de
   menu peut demander un saut de plusieurs milliers de pixels : le navigateur
   l'anime pendant plusieurs secondes, et iOS ignore le doigt pendant toute
   l'animation. Le site parait fige. Sur pointeur grossier, on saute
   directement. (Mesure sur Le Coq en Pate : 12 148 px anime en 4 000 ms.) */
@media (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }
}

/* Lien d'evitement : masque tant qu'il n'a pas le focus, il apparait a la
   premiere tabulation pour sauter directement au contenu. */
.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: #14110e;
  color: #fdf8ef;
  font: 600 15px/1 system-ui, sans-serif;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.lien-evitement:focus {
  left: 0;
  outline: 3px solid #f4c84f;
  outline-offset: 2px;
}
