/* =========================================================
   André Dusigne — feuille de style
   ========================================================= */

:root {
  --bg: #f6f2ea;
  --bg-elev: #fffdf8;
  --text: #24201b;
  --muted: #6d655a;
  --line: #e2dacb;
  --accent: #a8701f;          /* ocre, clin d'œil à sa palette */
  --accent-soft: #f0e3cc;
  --overlay: rgba(20, 17, 13, .94);
  --shadow: 0 1px 2px rgba(40, 30, 15, .06), 0 8px 24px rgba(40, 30, 15, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120f;
    --bg-elev: #1d1a16;
    --text: #ebe4d8;
    --muted: #a39a8c;
    --line: #322d26;
    --accent: #d9a24c;
    --accent-soft: #3a2f1e;
    --overlay: rgba(8, 7, 5, .96);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14120f;
  --bg-elev: #1d1a16;
  --text: #ebe4d8;
  --muted: #a39a8c;
  --line: #322d26;
  --accent: #d9a24c;
  --accent-soft: #3a2f1e;
  --overlay: rgba(8, 7, 5, .96);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .3s, color .3s;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2em 0 .6em; }
h3 { font-size: 1.35rem; margin: 1.6em 0 .4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .04em; }
.brand-dates { font-size: .72rem; color: var(--muted); letter-spacing: .25em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: .93rem; letter-spacing: .02em;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  line-height: 1.4; /* même hauteur pour les liens et les boutons */
}
.nav-link:hover { background: var(--accent-soft); }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-link, .nav-item.is-active .nav-top .nav-link { color: var(--accent); }

/* Onglet avec sous-menu : lien + flèche, surlignés ensemble */
.nav-top { display: flex; align-items: center; border-radius: 6px; }
.nav-top .nav-link { padding-right: 4px; border-radius: 6px 0 0 6px; }
.nav-top .nav-link:hover { background: none; }
.nav-item.has-sub:hover .nav-top, .nav-item.open .nav-top, .nav-top:focus-within { background: var(--accent-soft); }
.sub-toggle {
  display: grid; place-items: center;
  width: 26px; align-self: stretch; padding: 0 10px 0 2px; box-sizing: content-box;
  background: none; border: 0; border-radius: 0 6px 6px 0; color: inherit; cursor: pointer;
}
.nav-item.is-active .sub-toggle { color: var(--accent); }
.caret { width: 10px; height: 10px; transition: transform .2s; }
.nav-item.open .caret { transform: rotate(180deg); }

.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 230px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
  /* menu plus haut que la fenêtre (ex. Œuvres et ses catégories) : il défile sur place */
  max-height: calc(100vh - var(--header-h) - 16px);
  max-height: calc(100dvh - var(--header-h) - 16px);
  overflow-y: auto; overscroll-behavior: contain;
}
/* pont invisible sous l'entrée du menu : la souris peut descendre vers le sous-menu sans le fermer
   (porté par l'entrée et non par le sous-menu, que le défilement rogne) */
@media (min-width: 901px) { .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } }
.submenu a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: .9rem;
}
.submenu a:hover, .submenu a:focus-visible { background: var(--accent-soft); }
.submenu a[aria-current="page"] { color: var(--accent); }
.submenu .sub-sub a { padding-left: 26px; font-size: .85rem; color: var(--muted); }

@media (hover: hover) and (min-width: 901px) {
  .nav-item:hover > .submenu { opacity: 1; visibility: visible; transform: none; }
}
.nav-item.open > .submenu { opacity: 1; visibility: visible; transform: none; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }
/* Bouton FR / EN */
.lang-switch { text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
/* Petits téléphones : boutons et nom un peu plus compacts pour que « André Dusigne » tienne sur une ligne */
@media (max-width: 380px) {
  .icon-btn { width: 34px; height: 34px; }
  .brand-name { font-size: 1.35rem; letter-spacing: .02em; white-space: nowrap; }
  .brand-dates { letter-spacing: .1em; font-size: .66rem; }
}
/* Signature d'André à la place du nom (images/signature.png : encre opaque, papier transparent).
   L'image sert de masque et prend la couleur du texte : encre sombre en mode clair, claire en mode sombre.
   Le nom reste dans la page (lecteurs d'écran) ; sans prise en charge des masques, il s'affiche en texte. */
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .brand-name {
    width: 160px; height: 55px; font-size: 0; color: transparent; letter-spacing: 0;
    background-color: currentColor; background-color: var(--text);
    -webkit-mask: url("../../images/signature.png") left center / contain no-repeat;
            mask: url("../../images/signature.png") left center / contain no-repeat;
  }
  .brand-dates { margin-top: -3px; }   /* la grande barre du « A » descend sous la ligne d'écriture */
  @media (max-width: 380px) { .brand-name { width: 128px; height: 44px; font-size: 0; } }
}
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.burger { display: none; }

@media (max-width: 900px) {
  /* backdrop-filter ferait du header le repère du panneau « fixed » : on le retire sur mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .burger { display: inline-grid; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 40px;
    background: var(--bg); overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s, visibility .25s;
  }
  .nav.open .nav-list { transform: none; visibility: visible; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-top { border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-top .nav-link { flex: 1; border-bottom: 0; border-radius: 0; }
  .nav-item.has-sub:hover .nav-top, .nav-top:focus-within { background: none; }
  .nav-item.open .nav-top { background: var(--accent-soft); }
  .sub-toggle { width: 48px; padding: 0; border-left: 1px solid var(--line); border-radius: 0; } /* grande zone tactile */
  .caret { width: 14px; height: 14px; }
  .submenu {
    position: static; box-shadow: none; border: 0; background: none;
    padding: 0 0 8px 12px; display: none; opacity: 1; visibility: visible; transform: none;
    max-height: none; overflow: visible;   /* c'est le panneau du menu entier qui défile */
  }
  .nav-item.open > .submenu { display: block; }
  .submenu a { padding: 11px 12px; font-size: .95rem; }   /* cibles tactiles confortables */
  .submenu .sub-sub a { font-size: .9rem; }
}

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 40px 0 28px;
  font-size: .86rem;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer h2 {
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; color: var(--text); margin: 0 0 10px;
}
.site-footer p { margin: 0 0 8px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.home .site-footer { margin-top: 0; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.03);
  animation: heroZoom 30s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,8,5,.55) 0%, rgba(10,8,5,0) 65%),
    linear-gradient(to top, rgba(10,8,5,.85) 0%, rgba(10,8,5,.35) 45%, rgba(10,8,5,.05) 75%);
}
.hero-content { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-content { position: relative; z-index: 1; padding-bottom: 64px; padding-top: 120px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin: 0; font-weight: 400; }
.hero-dates { letter-spacing: .4em; text-transform: uppercase; font-size: .85rem; opacity: .85; margin: 4px 0 24px; }
.hero-text { max-width: 620px; font-size: 1.08rem; line-height: 1.7; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-credit { position: absolute; right: 20px; bottom: 16px; z-index: 1; font-size: .75rem; opacity: .7; font-style: italic; }
/* Téléphone : la légende du tableau passe sous les boutons au lieu de les recouvrir */
@media (max-width: 700px) {
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-content { padding-bottom: 20px; }
  .hero-credit { position: relative; right: auto; bottom: auto; margin: 0; padding: 14px 16px 16px; text-align: right; }
}
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-size: .92rem; letter-spacing: .03em;
  border: 1px solid currentColor; color: inherit;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.hero .btn:not(.btn-primary) { color: #fff; }

/* ---------- En-têtes de page ---------- */

.page-head { padding: 56px 0 8px; }
.page-head .eyebrow {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .25em; color: var(--accent); margin: 0 0 8px;
}
.page-head .lead { color: var(--muted); font-size: 1.05rem; max-width: 680px; }

/* ---------- Sous-onglets (catégories) ---------- */

.subtabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 32px; padding: 0; list-style: none;
}
.subtabs a {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .88rem;
}
.subtabs a:hover { border-color: var(--accent); }
.subtabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.subtabs .count { opacity: .6; font-size: .8em; margin-left: 4px; }

/* Téléphone : catégories sur une ligne défilante, galerie sur 2 colonnes */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .page-head { padding-top: 32px; }
  .subtabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 16px -16px 24px; padding: 0 16px 6px;
    scrollbar-width: none;
  }
  .subtabs::-webkit-scrollbar { display: none; }
  .subtabs li { flex: none; }
  .subtabs a { padding: 9px 16px; }
  /* préfixe body : ces règles doivent passer devant celles définies plus bas */
  body .gallery { columns: 2; column-gap: 12px; }
  body .gallery-item { margin-bottom: 18px; }
  body .gallery-item .caption strong { font-size: 1rem; }
  body .gallery-item .caption span { font-size: .75rem; }
  body .type-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  body .type-card span { left: 12px; bottom: 10px; font-size: 1.15rem; }
  body .card { padding: 22px 20px; }
}

/* ---------- Galerie ---------- */

.gallery {
  columns: 4 240px;
  column-gap: 20px;
}
/* Rangées justifiées construites par galerie.js : images de même hauteur dans chaque rangée, pleine largeur */
.gallery.is-justified { columns: auto; display: flex; flex-direction: column; gap: 28px; }
.gallery-line { display: flex; gap: 20px; align-items: flex-start; }
.gallery-line .gallery-item { margin: 0; min-width: 0; }
@media (max-width: 600px) {
  .gallery.is-justified { gap: 18px; }
  .gallery-line { gap: 12px; }
}
.gallery-group + .gallery-group { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.gallery-group h2 { margin: 0 0 6px; }
.gallery-group-intro { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.gallery-group h2 + .gallery, .gallery-group h2 + .gallery-row { margin-top: 20px; }
/* Ligne justifiée : images de même hauteur qui remplissent exactement la largeur */
.gallery-row { display: flex; gap: 20px; align-items: flex-start; }
.gallery-row .gallery-item { margin: 0; min-width: 0; }
@media (max-width: 600px) {
  .gallery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .gallery-row .gallery-item:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
  .gallery-row .gallery-item--large { grid-column: 1 / -1; order: 3; }
  .gallery-row:has(.gallery-item--large) .gallery-item:last-child:not(.gallery-item--large) { grid-column: auto; width: auto; justify-self: stretch; }
}
.gallery-item {
  break-inside: avoid; margin: 0 0 24px;
  display: block; width: 100%; padding: 0; border: 0; background: none;
  text-align: left; cursor: zoom-in; color: inherit; font: inherit;
}
.gallery-item .frame {
  background: var(--bg-elev);
  border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: auto;
  transition: transform .4s ease, opacity .4s;
  background: var(--line);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item .caption { padding: 10px 2px 0; }
.gallery-item .caption strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; display: block; line-height: 1.2; }
.gallery-item .caption span { font-size: .8rem; color: var(--muted); }
/* Protection de base des œuvres : pas de menu d'enregistrement à l'appui long (téléphones), ni de sélection ou glisser */
.gallery-item img, .lb-stage img, .type-card img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
/* mention « Collection privée » sous la légende d'une œuvre */
.gallery-item .caption .caption-coll { display: block; font-size: .72rem; letter-spacing: .06em; color: var(--accent); margin-top: 2px; }
/* site anglais : traduction du titre, sous le titre original */
.gallery-item .caption .caption-en { display: block; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--muted); margin: 1px 0 2px; }

.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.type-card {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  color: #fff; text-decoration: none; box-shadow: var(--shadow);
}
.type-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.type-card:hover img { transform: scale(1.05); }
.type-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%); }
.type-card span { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.type-card small { display: block; font-family: var(--sans); font-size: .78rem; opacity: .85; }

/* ---------- Visionneuse (carrousel + fiche) ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: var(--overlay); color: #efe8dc;
  display: none;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto 1fr;
}
.lightbox.open { display: grid; }
body.lb-open { overflow: hidden; }

.lb-top {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; font-size: .85rem; color: #bfb6a8;
}
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 8px 72px 32px; min-height: 0; }
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transition: opacity .25s;
  user-select: none; -webkit-user-drag: none;
}
.lb-stage img.loading { opacity: 0; }

.lb-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-info {
  padding: 8px 32px 32px 8px; overflow-y: auto;
}
.lb-info .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; color: #d9a24c; margin: 0 0 10px; }
.lb-info h2 { font-size: 2rem; margin: 0 0 20px; color: #fff; }
.fiche { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .92rem; }
.fiche dt { color: #9d9486; }
.fiche dd { margin: 0; }
.lb-note { margin: 20px 0 0; padding: 2px 0 2px 16px; border-left: 2px solid #d9a24c; }
.lb-note p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: #e6dfd3; }
.lb-info h2:has(+ .lb-title-en) { margin-bottom: 4px; }
.lb-title-en { display: block; margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #b8afa1; }
.lb-note p.lb-note-en { margin-top: 8px; font-size: 1rem; color: #b8afa1; }
.lb-note cite { display: block; margin-top: 8px; font-style: normal; font-size: .8rem; color: #9d9486; }
.lb-info .copy { margin-top: 28px; font-size: .75rem; color: #8a8174; line-height: 1.5; }
.lb-share { margin-top: 18px; }
.lb-share button {
  background: none; border: 1px solid rgba(255,255,255,.2); color: #e6dfd3;
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .8rem;
}

.lb-thumbs {
  display: none;
}

@media (max-width: 900px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; background: #0e0c0a; }
  .lb-stage { padding: 0 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; width: 42px; height: 42px; }
  .lb-prev { left: calc(50% - 52px); }
  .lb-next { right: calc(50% - 52px); }
  .lb-stage { padding-bottom: 72px; }
  .lb-info { padding: 16px 20px 24px; max-height: 34vh; border-top: 1px solid rgba(255,255,255,.1); }
  .lb-info h2 { font-size: 1.5rem; margin-bottom: 12px; }
  .lb-info .copy { display: none; }
}

/* ---------- Textes ---------- */

.prose { font-size: 1.04rem; }
.prose p { margin: 0 0 1.1em; }
.prose blockquote {
  margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; font-style: italic;
}
.prose blockquote footer { font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--muted); margin-top: 8px; letter-spacing: .05em; }
/* « Ils l'évoquent » : citations regroupées par auteur */
.critique + .critique { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.critique h2 { margin: 0 0 4px; font-size: 1.6rem; }
.critique blockquote { margin: 1.1em 0; }
/* texte long : même présentation qu'une citation (filet ocre, italique), sur plusieurs paragraphes */
.texte-critique {
  margin: 1.1em 0 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; font-style: italic;
}
.texte-critique p { margin: 0 0 .7em; }
.texte-critique p:last-child { margin-bottom: 0; }
/* Site anglais : traduction sous une citation française */
.prose blockquote .trad { display: block; margin-top: 10px; font-size: 1.05rem; color: var(--muted); }
/* Site anglais : traduction d'un titre français (poèmes, hommages), juste sous le titre */
h2:has(+ .titre-trad) { margin-bottom: 2px; }
.titre-trad { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
/* Site anglais : traduction repliable sous un texte français (poèmes, hommages) */
.traduction { margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.traduction summary {
  cursor: pointer; display: inline-block; list-style: none;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.traduction summary::-webkit-details-marker { display: none; }
.traduction summary::before { content: "+ "; }
.traduction[open] summary::before { content: "– "; }
.traduction > :not(summary) { color: var(--muted); }
.traduction[open] > summary { margin-bottom: 14px; }
.traduction .poem { font-size: 1.1rem; }

.poem { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; white-space: pre-line; margin: 0 0 1.4em; }
.poem-block { padding: 32px 0; border-bottom: 1px solid var(--line); }
.ecrits-photo { max-width: 560px; margin: 8px 0 16px; }
.poem-block:last-child { border-bottom: 0; }
.poem-block h2 { margin-top: 0; }
.dedication { color: var(--muted); font-style: italic; margin-top: -.6em; }

.timeline { list-style: none; padding: 0; margin: 24px 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .55em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent);
}
.timeline .year { font-family: var(--serif); font-size: 1.25rem; color: var(--accent); display: block; line-height: 1.2; }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.list-clean li .meta { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .list-clean li { flex-direction: column; gap: 2px; }
  .list-clean li .meta { white-space: normal; font-size: .9rem; }
}

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
/* Biographie : deuxième rangée (Inspirations + photo au chevalet) */
.bio-inspirations { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
/* photo en hauteur à côté d'un texte court : largeur limitée pour garder la rangée équilibrée */
.bio-inspirations .figure { max-width: 340px; justify-self: center; }
.figure { margin: 0; }
.figure img { border-radius: 4px; box-shadow: var(--shadow); }
.figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }

.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px;
  padding: 28px 32px; margin: 0 0 24px;
}
.card h2 { margin-top: 0; }
.card .signature { color: var(--muted); font-size: .9rem; margin-top: 16px; }

/* Textes dépliables (hommages, poèmes) — le repliage est géré par site.js */
.repliable { position: relative; }
.repliable.is-collapsed { max-height: var(--repli-h, 13rem); overflow: hidden; }
.repliable.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5em;
  background: linear-gradient(to bottom, transparent, var(--repli-fond, var(--bg))); pointer-events: none;
}
.card .repliable { --repli-fond: var(--bg-elev); }
.repli-toggle {
  margin-top: 12px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--accent); font: 500 .88rem var(--sans); cursor: pointer;
}
.repli-toggle:hover { border-color: var(--accent); }
.repli-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hommages */
.hommage .signature { margin: -4px 0 18px; }
/* Écrits : texte en prose (« Visite à l'Imagier ») */
.prose-ecrit { max-width: 760px; margin: 24px auto 0; padding-top: 40px; border-top: 1px solid var(--line); }
.prose-ecrit .ecrit-contexte { color: var(--muted); font-size: .95rem; margin: 0 0 1.4em; }
.prose-ecrit .repliable p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; margin: 0 0 .9em; }
.prose-ecrit .ecrit-signature { text-align: right; font-variant: small-caps; letter-spacing: .08em; }
/* Rue : photo de l'inauguration, centrée entre le texte et les vidéos */
.inauguration-photo { max-width: 900px; margin: 48px auto 8px; }
.inauguration-photo img { width: 100%; height: auto; }
/* Rue : plan cliquable (ouvre l'image en grand) */
.plan-lien { display: block; cursor: zoom-in; }
.plan-lien img { transition: opacity .2s; }
.plan-lien:hover img { opacity: .9; }
/* Rue : texte du discours d'inauguration */
.discours { margin: 0 0 8px; }
.discours .signature { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.discours .discours-message { margin-top: 1.6em; }
.hommage .epigraphe em { font-family: var(--serif); font-size: 1.15rem; }
.hommage .vers { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.6; }

/* Hommages deux par deux (l'un sous l'autre sur téléphone) */
.hommages-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.hommages-grid .card { margin: 0; }
@media (min-width: 760px) {
  .hommages-grid { grid-template-columns: 1fr 1fr; }
}

/* Écrits : « Rêve » à gauche, photo puis poème court à droite (l'un sous l'autre sur téléphone) */
.poems { display: grid; grid-template-columns: 1fr; gap: 0 56px; align-items: start; }
.poems .repliable { --repli-h: 38rem; }
.poems .poem { margin-bottom: 0; }
.poems .ecrits-photo { margin: 32px 0 0; max-width: none; }
.poems .poems-col { order: -1; }   /* téléphone : photo et poème court d'abord */
@media (min-width: 760px) {
  .poems { grid-template-columns: 1fr 1fr; }
  .poems .poems-col { order: 0; }
  .poems .poem-block { border-bottom: 0; }
  .poems .repliable { --repli-h: 52rem; }
}

.placeholder {
  border: 1px dashed var(--line); border-radius: 8px; padding: 20px 24px;
  color: var(--muted); font-size: .92rem; background: var(--bg-elev);
}

/* ---------- Vidéos ---------- */

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video-card { margin: 0; }
.video-card video, .video-card iframe, .yt {
  width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: 4px; box-shadow: var(--shadow); display: block; border: 0;
}
/* Vidéo YouTube : vignette cliquable, le lecteur (youtube-nocookie) n'est chargé qu'au clic */
.yt { position: relative; padding: 0; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.yt:hover img, .yt:focus-visible img { opacity: 1; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: rgba(20, 18, 15, .8); border-radius: 12px; transition: background .2s;
}
.yt-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.yt:hover .yt-play, .yt:focus-visible .yt-play { background: var(--accent); }
.video-card figcaption { font-size: .9rem; margin-top: 10px; }

/* ---------- Fiche presse ---------- */

.press-card {
  display: grid; grid-template-columns: 170px 1fr; gap: 28px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px;
  padding: 28px 32px;
}
.press-source { border-right: 1px solid var(--line); padding-right: 24px; }
.press-journal { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.press-source time { display: block; color: var(--muted); font-size: .88rem; margin-top: 6px; }
.press-body h3 { margin: 0 0 4px; font-size: 1.5rem; }
.press-meta { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.press-body p { margin: 0 0 12px; }
.press-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px !important; font-size: .92rem; }
@media (max-width: 640px) {
  .press-card { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .press-source { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; display: flex; align-items: baseline; gap: 12px; }
  .press-source time { margin: 0; }
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
