/* Version 2 — typo machine à écrire, accueil noir, pages en bloc centré */
:root {
  --bg: #fff;
  --fg: #000;
  --muted: #8a8a8a;
  --size: 11px;
  --col: clamp(200px, 22vw, 340px);   /* largeur de l'image et du texte */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Courier New", Courier, monospace;
  font-size: var(--size);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.home { --bg: #000; --fg: #fff; --muted: #9a9a9a; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
b, strong { font-weight: 700; }
.dim { color: var(--muted); }

/* Nom en capitales, sans cadre */
.logo {
  display: inline-block;
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1;
  text-transform: uppercase; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.clock { letter-spacing: 0.02em; }

/* ============ Accueil ============ */
.home-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 92px 20px 60px;
}
.home-wrap .clock { margin-top: 18px; }
.menu { margin-top: 64px; list-style: none; min-width: 180px; }
.menu li + li { margin-top: 10px; }
.menu .toggle { text-align: left; }
.menu .toggle:hover { text-decoration: underline; }
.menu .sub { list-style: none; margin: 10px 0 4px 2ch; display: none; }
.menu .sub li + li { margin-top: 8px; }
.menu .open .sub { display: block; }
.lang-switch { margin-top: 44px; color: var(--muted); }
.lang-switch button { color: var(--muted); }
.lang-switch .on { color: var(--fg); }

/* ============ Pages blanches : haut / bloc centré / barre en bas ============ */
.page {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 38px 20px 24px;
}
.top { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Projet : image + texte côte à côte, centrés */
#cards { flex: 1; width: 100%; margin-top: 44px; }
.single { display: flex; justify-content: center; align-items: flex-start; }
.entry { display: flex; align-items: flex-start; gap: 20px; flex: none; }

/* Archive : toutes les entrées côte à côte, la 1re centrée, défilement horizontal */
.strip {
  display: flex; align-items: flex-start; gap: 90px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 20px 28px calc(50% - var(--col) - 10px);
  scrollbar-width: thin; scrollbar-color: #c4c4c4 #eee;
}
.strip .entry { scroll-snap-align: center; }

.pic { --h: min(calc(var(--col) * 1.25), 70vh); width: calc(var(--h) * var(--ratio, 0.8)); flex: none; }
.frame { display: flex; justify-content: center; width: 100%; cursor: pointer; }
.ph { width: 100%; aspect-ratio: 4 / 5; background: #e6e6e6; }
.count button { padding: 0 2px; }
/* Même hauteur pour toutes les images (portrait 4:5 = référence) : les paysages sont simplement plus larges */
.frame img, .frame video { display: block; height: var(--h); width: auto; max-width: 100%; }
.frame video { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.count { margin-top: 16px; text-align: center; }

.txt { width: var(--col); display: flex; flex-direction: column; }
.meta { color: var(--muted); }
.txt h1 { font-size: 14px; font-weight: 400; line-height: 1.25; margin-bottom: 14px; }
.body { max-height: 60vh; overflow-y: auto; }
.body p + p { margin-top: 1.1em; }
.liens a { text-decoration: underline; white-space: nowrap; }
.archive { margin-top: 24px; align-self: flex-start; text-decoration: underline; padding: 0 2px; }
.archive.on { background: var(--fg); color: var(--bg); text-decoration: none; }

/* Info */
.info-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 24px; }

/* Barre du bas */
.bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  width: 100%; max-width: 640px; margin-top: 60px;
}
.bar nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.bar .on { font-weight: 700; }

/* ============ Mobile ============ */
@media (max-width: 640px) {
  .page { padding: 28px 16px 22px; }
  #cards { margin-top: 32px; }
  .entry { flex-direction: column; align-items: stretch; gap: 22px; width: 100%; }
  .pic, .txt { width: 100%; min-width: 0; }
  .pic { --ratio: auto; }
  .frame img, .frame video { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
  .strip { gap: 28px; padding: 0 0 22px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory; }
  .strip .entry { width: 82vw; }
  .body { max-height: none; }
  .bar nav { justify-content: flex-start; }
  .menu { margin-top: 48px; }
}

/* ============ Zoom au clic ============ */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px 16px; cursor: pointer;
}
.lb-media { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb-bar { display: flex; justify-content: space-between; width: 100%; max-width: 640px; padding-top: 14px; cursor: default; }
.lb-bar button { padding: 0 2px; }

/* Crédits (lignes avec « : ») : plus petits, groupés */
.body .credits, .body .liens { font-size: 9px; line-height: 1.5; }
.count .son { margin-left: 10px; text-decoration: underline; }
.frame video.paysage { aspect-ratio: auto; }
