@font-face {
  font-family: system-ui;
  src: local("Inter"), local("Helvetica Neue"), local("Arial");
}

:root {
  --bg: #f4f2ed;
  --ink: #111;
  --muted: #666;
  --line: #111;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

.language-page { display: none; }
#en { display: block; }
#fr:target { display: block; }
#fr:target ~ #en { display: none; }
body:has(#fr:target) #en { display: none; }

/* Fallback: English remains default in older browsers. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 1px solid rgba(0,0,0,.18);
  background: rgba(244,242,237,.92);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 800;
  letter-spacing: .22em;
  text-decoration: none;
  color: var(--ink);
}

nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav a, .contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.language-switch {
  padding: 4px 9px;
  border: 1px solid var(--ink) !important;
  text-decoration: none;
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 36px;
  align-items: center;
  padding: 56px 5vw 70px;
}

.kicker, .section-label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 12rem);
  letter-spacing: .16em;
  line-height: .86;
  font-weight: 900;
}

h2 {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: clamp(1.7rem, 3.5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.lead {
  max-width: 700px;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  color: #222;
}

.hero-image {
  margin: 0;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 14px 14px 0 #111;
}

.hero-image a { display: block; }

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding: 10px 14px 12px;
  font-size: .84rem;
  color: var(--muted);
  border-top: 1px solid rgba(0,0,0,.18);
}

.panel, .contact {
  margin: 28px 5vw;
  padding: clamp(32px, 6vw, 76px);
  border: 2px solid var(--line);
  background: var(--panel);
}

.panel h3, .contact h3 {
  max-width: 1000px;
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.panel p, .contact p {
  max-width: 900px;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 28px 5vw;
}

.grid article {
  min-height: 300px;
  padding: 28px;
  border: 2px solid var(--line);
  background: var(--panel);
}

.grid h3 {
  margin: 16px 0;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: .95;
}

.grid p { font-size: 1.05rem; }

.dark {
  background: #111;
  color: #f4f2ed;
}

.dark .section-label { color: #b7b7b7; }

blockquote {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(2rem, 5.5vw, 6.4rem);
  line-height: .93;
  letter-spacing: -.055em;
  font-weight: 800;
}

.pub-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  padding: 28px;
  border: 2px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: #f4f2ed;
}

.pub-card span {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  color: var(--muted);
  font-weight: 700;
}

.pub-card strong {
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: .96;
  letter-spacing: -.04em;
}

.pub-card em {
  margin-top: auto;
  font-style: normal;
  border-bottom: 1px solid currentColor;
  width: fit-content;
}

footer {
  padding: 34px 5vw 54px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
    padding: 18px 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 22px;
  }

  .hero-image { box-shadow: 8px 8px 0 #111; }

  .grid, .pub-list {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .panel, .contact { margin: 22px; }
}
