/* Dans la nuit — présentation responsive, version affinée */

:root {
  --ink: #292a2e;
  --muted: #74757c;
  --accent: #596582;
  --line: #e7e5e1;
  --paper: #fffefa;
  --wash: #f5f4f1;
}

* { box-sizing: border-box; }
html { background: var(--wash); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
a:hover, a:focus-visible { color: #343f5a; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-shell {
  width: min(1240px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px clamp(24px, 5vw, 70px) 26px;
  background: var(--paper);
  box-shadow: 0 0 36px rgba(35, 35, 35, 0.035);
}
.site-header { display: flex; align-items: center; justify-content: flex-start; column-gap: clamp(40px, 12vw, 150px); flex-wrap: wrap; row-gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; max-width: 100%; }
.brand img { display: block; width: min(268px, 100%); height: auto; }
.icon-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.icon-nav a, .icon-nav .current { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; }
.icon-nav img { display: block; width: 67px; max-width: 100%; height: auto; }
.icon-nav a { padding: 2px; }
.icon-nav a:hover { background: #f0efeb; }
.icon-nav .current { opacity: .72; } 

.page-grid { display: grid; grid-template-columns: minmax(175px, 218px) minmax(0, 1fr); gap: clamp(34px, 5.2vw, 72px); padding-top: 44px; }
.side-nav { min-width: 0; border-right: 1px solid var(--line); padding-right: 25px; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font: 600 10px/1.5 system-ui, -apple-system, sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.side-nav nav { display: grid; gap: 10px; }
.side-nav nav a { display: block; color: #64656b; font: 13px/1.65 system-ui, -apple-system, sans-serif; padding: 2px 0; }
.side-nav nav a:hover { color: var(--accent); }
.side-nav nav a.active { color: var(--ink); font-weight: 650; }
.content { min-width: 0; }
.section-mark { display: flex; align-items: center; gap: 15px; color: var(--muted); }
.section-mark img { display: block; width: 70px; height: auto; }
.section-mark span { font: 600 10px/1.5 system-ui, -apple-system, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 30px   0 19px; font-size: clamp(36px, 4.4vw, 52px); font-weight: 400; line-height: 1.12; letter-spacing: .005em; }
.title-rule { width: 48px; height: 2px; margin-bottom: 31px; background: var(--accent); }
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: clamp(25px, 4vw, 46px); align-items: start; }
.work-description { min-width: 0; }
.work-description p { max-width: 64ch; margin: 0 0 1.25em; }
.poet-card { margin-top: 5px; padding-left: 17px; border-left: 1px solid var(--line); font-family: system-ui, -apple-system, sans-serif; font-size: 12px; line-height: 1.6; }
.poet-portrait { display: block; width: 100px; height: auto; max-width: 100%; margin-bottom: 13px; filter: saturate(.88); }
.poet-name { margin: 0; font-weight: 650; }
.poet-dates { margin: 2px 0 22px; color: var(--muted); }
.audio-link {
  display: block;
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  background: #f8f7f4;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.audio-link:hover {
  background: #f0efeb;
  text-decoration: none;
}.play-mark { display: inline-block; margin-right: 5px; font-size: 10px; }
.audio-link small { display: block; margin: 5px 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 400; }
.site-footer { margin-top: 58px; padding-top: 16px; border-top: 1px solid var(--line); color: #8a8985; font: 10px/1.6 system-ui, -apple-system, sans-serif; letter-spacing: .045em; }
.site-footer span { padding: 0 5px; }

@media (max-width: 760px) {
  .site-shell { width: 100%; padding: 25px 24px 20px; box-shadow: none; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 17px; padding-bottom: 19px; }
  .icon-nav img { width: 57px; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-top: 29px; }
  .side-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 19px; }
  .side-nav nav {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 7px 12px;
}

.side-nav nav a {
  font-size: 12.5px;
  line-height: 1.5;
}
  .eyebrow { margin-bottom: 9px; }
  .work-layout { grid-template-columns: minmax(0, 1fr) 125px; gap: 22px; }
  .poet-card { padding-left: 13px; }
  .site-footer { margin-top: 40px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; line-height: 1.75; }
  .site-shell { padding: 20px 17px 17px; }
  .brand img { width: min(268px, 88vw); }
  .icon-nav { gap: 3px; }
  .icon-nav img { width: 52px; }
  .section-mark { gap: 10px; }
  .section-mark img { width: 60px; }
  .section-mark span { font-size: 9px; letter-spacing: .08em; }
  h1 { margin-top: 22px; font-size: clamp(31px, 9vw, 40px); }
  .work-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .poet-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 11px; align-items: start; border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .poet-portrait { grid-row: span 3; width: 76px; margin: 0; }
  .poet-name { padding-top: 2px; }
  .poet-dates { margin: 0 0 12px; }
  .audio-link { grid-column: 2; padding-top: 10px; }
  .site-footer { margin-top: 33px; }
}

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