/* Thème « Index » — chargé après site.css, dont il reprend les bases
   (pied de page, page À propos, visionneuse) en changeant l'ambiance. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

.theme-index {
  --ink: #16150f;
  --muted: #6b685f;
  --line: #d6d2c9;
  --bg: #f4f2ee;
  --tile: #e6e2da;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
.theme-index a:hover { color: var(--ink); }
.theme-index .lb { background: rgba(244, 242, 238, .98); }

/* En-tête */
.ix-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-top: 32px; font-size: 15px; }
.ix-brand { font-weight: 500; }
.ix-brand span { font-weight: 400; color: var(--muted); }
.ix-nav { display: flex; gap: 24px; }
.ix-nav a { padding: 10px 0; }
.ix-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

/* Accueil : la liste */
.ix-home { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 72px; padding-bottom: 96px; }
.ix-list-col { flex: 999 1 600px; min-width: 0; }
.ix-tagline { margin: 0 0 40px; max-width: 640px; font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.3; }
.ix-filters { display: flex; flex-wrap: wrap; gap: 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 15px; }
.ix-filters a { padding: 12px 0; color: var(--muted); }
.ix-filters a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.ix-filters sup { font-size: 11px; color: var(--muted); }
.ix-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ix-filters + .ix-list { border-top: 0; }
.ix-list li { border-bottom: 1px solid var(--line); }
.ix-list a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 18px 0; }
.ix-num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ix-title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.01em; }
.ix-list a:hover .ix-title, .ix-list a:focus-visible .ix-title, .ix-list a.is-active .ix-title { font-style: italic; }
.ix-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ix-thumb { display: none; }

/* Aperçu de la couverture (ordinateur) */
.ix-preview { flex: 1 1 320px; max-width: 440px; position: sticky; top: 32px; margin: 0; }
.ix-preview-img { width: 100%; background: var(--tile); overflow: hidden; max-height: calc(100vh - 120px); }
.ix-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.ix-preview-cap { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Page d'une série */
.ix-serie-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 64px; padding-bottom: 36px; border-bottom: 1px solid var(--ink); }
.ix-serie-title { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.ix-serie-title h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 7vw, 80px); line-height: 1; letter-spacing: -0.015em; }
.ix-serie-info { display: flex; flex-direction: column; gap: 6px; max-width: 380px; font-size: 14px; }
.ix-intro { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1.35; }
.ix-grid-wrap { padding-top: 48px; padding-bottom: 24px; }
.ix-neighbours { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-top: 32px; padding-bottom: 64px; border-top: 1px solid var(--line); font-size: 14px; }
.ix-neighbours a { display: flex; align-items: baseline; gap: 12px; min-height: 44px; }
.ix-neighbours .next { margin-left: auto; }
.ix-nb-title { font-family: var(--serif); font-weight: 300; font-size: 28px; }

/* Téléphone : pas de survol, la couverture s'affiche dans chaque ligne,
   et les photos d'une série s'empilent. */
@media (max-width: 760px) {
  .ix-home { padding-top: 40px; gap: 0; }
  .ix-preview { display: none; }
  .ix-list a { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; align-items: center; padding: 14px 0; }
  .ix-num { display: none; }
  .ix-thumb { display: block; grid-row: 1 / 3; width: 72px; height: 72px; object-fit: cover; background: var(--tile); }
  .ix-title { font-size: 26px; align-self: end; }
  .ix-meta { align-self: start; white-space: normal; }
  .ix-serie-head { padding-top: 40px; }
  .ix-grid-wrap { padding-top: 28px; }
}
