/* Polices hébergées sur le site (OFL, assets/polices/) : plus d'appel à Google Fonts (vitesse, RGPD). Oswald = police variable 400–700. */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/polices/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/polices/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'BBH Bogle'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/polices/bbh-bogle-latin.woff2) format('woff2'); }

/* =====================================================================
   Exposition en ligne — Rock in Le Havre
   Scénographie : fond sombre, accent rouge parcimonieux, œuvres sans filtre.
   ===================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --bg-3: #1b1b1e;
  --line: #2a2a2f;
  --text: #ecebe7;
  --muted: #b0afab;
  --faint: #8d8c89;
  --red: #cf1531;
  --red-2: #67000f;

  --f-title: 'Oswald', 'Arial Narrow', sans-serif;
  /* texte courant de tout le site : Oswald 400 (choix utilisateur) ; titres en BBH Bogle (--f-display) */
  --f-text: 'Oswald', 'Arial Narrow', sans-serif;

  --gutter: 16px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --header-h: 110px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: clamp(40px, 4vw, 72px);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

.label {
    margin: 0;
    font: 300 0.8rem / 1.2 var(--f-title);
    letter-spacing: 0.7em;
    text-transform: uppercase;
    color: var(--mur-texte);
    margin-bottom: 40px;
}

.label_home {
    margin: 0;
    font: 300 0.8rem / 1.2 var(--f-title);
    letter-spacing: 0.7em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 5px;
}

.rule {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red);
  border: 0;
  margin: 1.5rem 0;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: background-color .2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, .08);
}

.icon-btn:disabled {
  opacity: .3;
  cursor: default;
  background: none;
}

.icon-btn svg,
.back svg,
.search svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--f-title);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.01em;
}

.logo span:first-child {
  font-size: 1.45rem;
}

.logo span:last-child {
  font-size: .82rem;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--red);
  align-self: flex-start;
}

/* ---------- En-tête ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 calc(var(--gutter) - 6px) 0 var(--gutter);
  background: rgba(11, 11, 12, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topnav {
  display: none;
  gap: 32px;
  margin-left: auto;
  margin-right: auto;
}

.topnav a {
  position: relative;
  text-decoration: none;
  padding: 10px 0;
  font: 500 .78rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.topnav a:hover {
  color: var(--text);
}

.topnav a[aria-current="page"] {
  color: var(--red);
}

.topnav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* navigation dans la barre à partir de 1100 px (900 avant l'ajout du lien « Les expositions », 08/11/2026 :
   la barre passait sur deux lignes) ; en dessous, menu burger */
@media (min-width: 1100px) {
  .topnav {
    display: flex;
    gap: clamp(20px, 2.2vw, 32px);
  }

  .topnav a {
    white-space: nowrap;
  }

  /* navigation tout à droite, sur toutes les pages (choix utilisateur) */
  .topnav {
    margin-right: 0;
  }

  .topbar__tools {
    margin-left: 0;
  }

  /* la navigation est dans la barre : plus besoin du menu */
  .btn-menu {
    display: none;
  }
}

/* ---------- Sommaire ---------- */
.sommaire {
  position: fixed;
  inset: var(--header-h) 0 0 auto;
  z-index: 29;
  width: min(440px, 100%);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sommaire__inner {
  padding: 32px var(--gutter) 48px;
}

.sommaire__salles {
  list-style: none;
  margin: 20px 0 32px;
  padding: 0;
  counter-reset: s;
}

.sommaire__salles a {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.sommaire__salles a:hover .t {
  color: var(--red);
}

.sommaire__salles .n {
  grid-row: span 2;
  font: 600 1rem/1.4 var(--f-title);
  color: var(--faint);
}

.sommaire__salles .t {
  font: 600 1.5rem/1.15 var(--f-title);
  text-transform: uppercase;
  transition: color .2s;
}

.sommaire__salles .p {
  color: var(--faint);
  font-size: .9rem;
}

.sommaire__liens {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sommaire__liens a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--muted);
  font: 500 .85rem/1.2 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sommaire__liens a:hover {
  color: var(--text);
}

/* ---------- Menu du site sur petit écran (< 1100 px), plein écran (refonte 08/11/2026, choix utilisateur) :
   grands liens numérotés, page en cours en rouge, encart « Expo du moment » en pied ---------- */
.sommaire--menu {
  inset: var(--header-h) 0 0 0;
  width: 100%;
  background: #0c0c0d;
  border-left: 0;
  border-top: 1px solid var(--line);
}

.sommaire--menu .sommaire__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}

.sommaire--menu .sommaire__liens {
  counter-reset: menu;
}

.sommaire--menu .sommaire__liens a {
  counter-increment: menu;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: 600 clamp(1.45rem, 6.2vw, 1.9rem)/1.1 var(--f-title);
  letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}

.sommaire--menu .sommaire__liens a::before {
  content: counter(menu, decimal-leading-zero);
  min-width: 1.7rem;
  color: var(--red);
  font: 600 .72rem/1 var(--f-title);
  letter-spacing: .12em;
}

.sommaire--menu .sommaire__liens a::after {
  content: '→';
  margin-left: auto;
  color: var(--faint);
  font-size: 1.1rem;
  transition: color .15s, transform .15s;
}

.sommaire--menu .sommaire__liens a[aria-current="page"],
.sommaire--menu .sommaire__liens a:active {
  color: var(--red);
}

.sommaire--menu .sommaire__liens a[aria-current="page"]::after {
  color: var(--red);
}

@media (hover: hover) {
  .sommaire--menu .sommaire__liens a:hover { color: var(--red); }
  .sommaire--menu .sommaire__liens a:hover::after { color: var(--red); transform: translateX(4px); }
}

.sommaire__pied {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 32px;
}

/* encart de l'exposition du moment : carte noire à filet rouge, comme les cartes du site (jamais arrondie) */
.sommaire__une {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  background: #141416;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  color: var(--text);
  text-decoration: none;
}

.sommaire__une-label {
  color: var(--red);
  font: 600 .7rem/1 var(--f-title);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.sommaire__une-titre {
  margin-top: 4px;
  font: 400 1.7rem/1 var(--f-display);
  text-transform: uppercase;
}

.sommaire__une-sous {
  color: var(--muted);
  font-size: .95rem;
}

.sommaire__une-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  margin-top: 10px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  font: 600 .78rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sommaire__une-go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.sommaire__site {
  justify-self: start;
  color: var(--faint);
  font: 500 .8rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* menu ouvert : page figée, barre du haut opaque, boutons flottants de la salle masqués */
body.menu-ouvert {
  overflow: hidden;
}

html body.menu-ouvert .topbar {
  background: #0c0c0d;
  border-bottom-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}

body.menu-ouvert .salle-programme,
body.menu-ouvert .salle-fleches {
  display: none;
}

/* ---------- En-tête d’exposition (accueil « à la une » et page d’expo) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.decor {
  margin: 0;
  background: #050506;
  overflow: hidden;
}

.decor img {
  width: 100%;
  height: 56svh;
  object-fit: cover;
  object-position: 38% 50%;
  /* mur du titre au centre sur mobile */
}

@media (min-width: 720px) {

  /* proportions du visuel conservées (attributs width/height) ; plafonné pour laisser voir le texte d'introduction */
  .decor img {
    height: auto;
    max-height: calc(100svh - var(--header-h) - 140px);
  }
}

/* Hero immersif de l'accueil (exposition du moment) : visuel plein écran sous l'en-tête transparent,
   texte à gauche, bandeau des salles en bas. Mobile : visuel puis texte puis salles en défilement horizontal. */
.page-hero .topbar {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(rgba(5, 5, 6, .8), rgba(5, 5, 6, 0));
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color .3s, border-color .3s;
}

.page-hero.is-scrolled .topbar {
  background: rgba(11, 11, 12, .92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero--immersif {
  position: relative;
  display: block;
}

.immersif__media {
  position: relative;
  margin: 0;
  background: #050506;
}

.immersif__media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 60% 50%;
}

.immersif__media::after {
  /* fondu du visuel de mise en scène vers le fond (jamais appliqué aux œuvres) */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 12, 0) 35%), linear-gradient(rgba(5, 5, 6, .55), rgba(5, 5, 6, 0) 22%);
}

.hero--sans-visuel {
  padding-top: var(--header-h);
}

.immersif__texte {
  position: relative;
  padding: 8px var(--gutter) 40px;
}

.immersif__titre {
  margin: 10px 0 0;
  font: 700 clamp(2.8rem, 6vw, 6rem)/.9 var(--f-title);
  text-transform: uppercase;
  letter-spacing: -.005em;
}

.immersif__titre a {
  text-decoration: none;
}

.immersif__sous {
  margin: 5px 0 0;
  font: 500 clamp(1.2rem, 1.9vw, 1.6rem)/1.25 var(--f-title);
}

.immersif__chapo {
  margin: 0;
  color: #d4d2cd;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-primaire {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font: 600 .85rem/1 var(--f-title);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color .2s;
}

/* mobile : boutons sur toute la largeur, texte centré (choix utilisateur 11/11/2026) */
@media (max-width: 719px) {
  .btn-primaire {
    width: 100%;
    justify-content: center;
  }
}

.btn-primaire:hover {
  background: #a8112a;
}

.btn-primaire svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .25s var(--ease);
}

/* choix de la visite dans le hero de la page d'expo : classique | 3D */
.immersif__choix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.immersif__choix .btn-primaire {
  margin-top: 0;
}

.btn-primaire--contour {
  background: rgba(11, 11, 13, .55);
  box-shadow: inset 0 0 0 2px #fff;
}

.btn-primaire--contour:hover {
  background: #fff;
  color: #0b0b0d;
}

.btn-primaire:hover svg:not(.btn-primaire__icone) {
  transform: translateX(4px);
}

.immersif__defiler {
  display: none;
}

/* Bandeau des salles */
.immersif__salles {
  position: relative;
  padding: 0 0 32px;
}

.immersif__salles ol {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 62vw);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.immersif__salles ol::-webkit-scrollbar {
  display: none;
}

.immersif__salles li {
  scroll-snap-align: start;
}

.salle-carte {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-3);
  text-decoration: none;
  outline: 1px solid rgba(255, 255, 255, .14);
  outline-offset: -1px;
  transition: outline-color .2s;
}

.salle-carte img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.salle-carte::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(5, 5, 6, 0) 35%, rgba(5, 5, 6, .9));
}

.salle-carte.is-first,
.salle-carte:hover,
.salle-carte:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.salle-carte__txt {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.salle-carte__titre {
  font: 600 1.05rem/1.1 var(--f-title);
  text-transform: uppercase;
}

.salle-carte__sous {
  font-size: .82rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero--immersif {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: max(100svh, 640px);
  }

  .immersif__media {
    position: absolute;
    inset: 0;
  }

  .immersif__media img {
    height: 100%;
  }

  .immersif__media::after {
    background:
      linear-gradient(90deg, rgba(8, 8, 9, .92) 0%, rgba(8, 8, 9, .7) 24%, rgba(8, 8, 9, .1) 50%, rgba(8, 8, 9, 0) 64%),
      linear-gradient(0deg, rgba(8, 8, 9, .9) 0%, rgba(8, 8, 9, 0) 34%),
      linear-gradient(rgba(5, 5, 6, .6), rgba(5, 5, 6, 0) 18%);
  }

  .hero--sans-visuel {
    padding-top: 0;
  }

  .immersif__texte {
    align-self: center;
    width: min(50rem, 46vw);
    padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  }

  .immersif__defiler {
    position: absolute;
    left: 50%;
    bottom: calc(var(--cartes-h, 170px) + 28px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    font: 500 .72rem/1 var(--f-title);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #d4d2cd;
  }

  .immersif__defiler i {
    width: 18px;
    height: 28px;
    border: 1.5px solid currentColor;
    border-radius: 9px;
    position: relative;
  }

  .immersif__defiler i::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    background: currentColor;
    border-radius: 1px;
  }

  .immersif__salles {
    padding: 0 0 28px;
  }

  .immersif__salles ol {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    overflow: visible;
  }

  .hero--sans-visuel {
    min-height: 0;
  }

  .hero--sans-visuel .immersif__defiler {
    display: none;
  }

  .hero--sans-visuel .immersif__texte {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 48px;
  }

  .hero--sans-visuel .immersif__salles {
    padding-bottom: 64px;
  }
}

.hero__text {
  padding: 32px var(--gutter) 64px;
}

.hero__titre {
  margin: 12px 0 0;
  max-width: 18ch;
  font: 600 clamp(2rem, 4.4vw, 3.6rem)/1.02 var(--f-title);
  text-transform: uppercase;
}

.hero__titre a {
  text-decoration: none;
}

.hero__titre a:hover {
  color: var(--red);
}

.hero__compte {
  margin: 12px 0 0;
  color: var(--faint);
  font: 500 .95rem/1.3 var(--f-title);
  letter-spacing: .06em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  margin-top: 24px;
}

.hero__actions .cta {
  margin-top: 0;
}

.hero__index {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font: 500 .8rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
}

.hero__index:hover {
  color: var(--text);
  text-decoration-color: var(--red);
}

/* Expo sans décor : image à la une (souvent une affiche verticale) à côté du texte, jamais recadrée */
.hero__visuel {
  margin: 0;
  padding: 32px var(--gutter) 0;
}

.hero__visuel img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70svh;
  margin: 0 auto;
}

@media (min-width: 1000px) {
  .hero--visuel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    min-height: min(calc(100svh - var(--header-h)), 960px);
  }

  .hero--visuel .hero__visuel {
    order: 2;
    padding: 48px var(--gutter) 48px 0;
  }

  .hero--visuel .hero__visuel img {
    max-height: calc(100svh - var(--header-h) - 96px);
    margin: 0 0 0 auto;
  }

  .hero--visuel .hero__text {
    display: block;
  }

  .hero--visuel .hero__text .rule {
    display: block;
  }
}

.hero__intro {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}

.hero__intro+.hero__intro {
  margin-top: 1em;
}

.hero__intro:first-child {
  color: var(--text);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  min-height: 44px;
  text-decoration: none;
  color: var(--red);
  font: 600 .85rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cta svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .25s var(--ease);
}

.cta:hover svg {
  transform: translateX(4px);
}

@media (min-width: 1000px) {
  .hero__text {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 0 clamp(40px, 6vw, 120px);
    align-items: start;
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .hero__text .rule {
    display: none;
  }

  .hero__lead {
    grid-row: span 2;
  }
}

/* ---------- Liste des expositions (accueil et page « Expositions ») ---------- */
.expos-bloc {
  border-top: 1px solid var(--line);
  padding: 64px var(--gutter) 96px;
}

.expos-bloc__titre {
  margin: 0 0 40px;
  font: 600 .8rem/1.2 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}

.expos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 64px;
}

.expos__lien {
  display: grid;
  gap: 20px;
  text-decoration: none;
}

.expos__img {
  display: block;
}

.expos__img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56svh;
}

.expos__txt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expos__titre {
  font: 600 clamp(1.8rem, 3.6vw, 3rem)/1.02 var(--f-title);
  text-transform: uppercase;
  transition: color .2s;
}

.expos__lien:hover .expos__titre {
  color: var(--red);
}

.expos__chapo {
  max-width: 52ch;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expos__voir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--red);
  font: 600 .8rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.expos__voir svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .25s var(--ease);
}

.expos__lien:hover .expos__voir svg {
  transform: translateX(4px);
}

@media (min-width: 720px) {
  .expos__lien {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 48px;
  }

  .expos__img {
    justify-self: end;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 8px;
  color: var(--muted);
  text-decoration: none;
  font: 500 .8rem/1 var(--f-title);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--text);
}

.pager__count {
  font: 500 .8rem/1 var(--f-title);
  letter-spacing: .1em;
  color: var(--faint);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pager__count b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Salles ---------- */
.salle {
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 88px;
}

.salle__intro {
  margin-bottom: 48px;
  max-width: 38rem;
}

.salle__titre {
  margin: 14px 0 0;
  font: 600 clamp(2.4rem, 8vw, 3.6rem)/.95 var(--f-title);
  text-transform: uppercase;
}

.salle__periode {
margin: 10px 0 0;
    font: 500 1.3rem / 1.2 var(--f-title);
    letter-spacing: .04em;
    color: var(--bg);
}

.salle__texte {
  margin: 0;
  color: white;
}

.salle__texte p {
  margin: 0 0 1em;
  margin-bottom: 30px;
}

.salle__liste {
  margin: 0;
  color: var(--faint);
  font-size: .95rem;
}

.salle__liste span {
  color: var(--muted);
}

@media (min-width: 1100px) {
  .salle {
    display: grid;
    grid-template-columns: minmax(250px, 19rem) 1fr;
    gap: clamp(40px, 5vw, 96px);
    padding-top: 96px;
    padding-bottom: 140px;
  }

  .salle__intro {
    margin: 0;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
}

/* Mur d'accrochage : grille 12 colonnes, compositions alternées */
.mur {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 72px;
}

.mur>li {
  min-width: 0;
}

@media (min-width: 720px) {
  .mur {
    grid-template-columns: repeat(6, 1fr);
    column-gap: 28px;
    row-gap: 96px;
  }

  .mur>li {
    grid-column: span var(--st, 3);
    justify-self: var(--j, start);
    align-self: var(--a, start);
  }
}

@media (min-width: 1100px) {
  .mur {
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(24px, 2.2vw, 40px);
    row-gap: clamp(96px, 11vw, 160px);
  }

  .mur>li {
    grid-column: var(--c, auto) / span var(--s, 4);
  }

  .mur>li[data-drop] {
    margin-top: clamp(48px, 8vw, 140px);
  }
}

/* ---------- Œuvre + cartel (ensemble indissociable) ---------- */
.oeuvre {
  margin: 0;
  width: fit-content;
  max-width: 100%;
}

.oeuvre__img {
  display: block;
  max-width: 100%;
  cursor: pointer;
  background: var(--bg-2);
}

.oeuvre__img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--maxh, 76vh);
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.oeuvre__img img.is-loaded {
  opacity: 1;
}

.oeuvre__img:hover img {
  opacity: .94;
}

.oeuvre[data-taille="pleine"] {
  --maxh: 86vh;
  margin-inline: auto;
}

/* le cartel prend exactement la largeur de l'œuvre */
.oeuvre .cartel {
  width: 0;
  min-width: 100%;
}

@media (max-width: 719px) {
  .oeuvre {
    width: auto;
    max-width: none;
    margin: 0 calc(var(--gutter) * -1);
  }

  .oeuvre__img {
    margin: 0 auto;
    width: fit-content;
  }

  .oeuvre__img img {
    max-height: 82svh;
  }

  .oeuvre .cartel {
    width: auto;
    min-width: 0;
    padding: 0 var(--gutter);
  }
}

/* ---------- Encadrement muséal sur les murs : cadre noir + marie-louise, éclairage de cimaise ----------
   L'œuvre elle-même n'est ni recadrée ni filtrée : le cadre et la marie-louise l'entourent. */
.mur .oeuvre {
  position: relative;
}

.mur .oeuvre::before {
  /* halo du projecteur sur le mur, au-dessus du cadre */
  content: '';
  position: absolute;
  left: -35%;
  right: -35%;
  top: -30%;
  height: 90%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 40% 50% at 50% 30%, rgba(255, 244, 222, .07), transparent 100%);
}

.mur .oeuvre__img {
  padding: clamp(18px, 2.8vw, 48px);
  /* marie-louise */
  background: #f1eee6;
  border: clamp(6px, .65vw, 12px) solid #0b0b0c;
  /* cadre */
  box-shadow:
    0 0 0 1px #2c2c30,
    /* arête du cadre sur le mur sombre */
    inset 0 0 0 1px rgba(0, 0, 0, .06),
    inset 0 3px 8px rgba(0, 0, 0, .16),
    /* profondeur de la marie-louise */
    0 26px 50px -22px rgba(0, 0, 0, .95);
  /* ombre portée */
}

.mur .oeuvre__img img {
  max-height: var(--maxh, 64vh);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .22);
  /* biseau de la fenêtre */
}

.mur .oeuvre__img:hover img {
  opacity: 1;
}

.mur .oeuvre__img:hover {
  box-shadow: 0 0 0 1px var(--red), inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 3px 8px rgba(0, 0, 0, .16), 0 26px 50px -22px rgba(0, 0, 0, .95);
}

.mur .oeuvre[data-taille="pleine"] {
  --maxh: 74vh;
}

.mur .oeuvre .cartel {
  padding-top: 20px;
}

@media (max-width: 719px) {

  /* mobile : l'encadrement reste dans les marges, centré, le cartel aligné sur le cadre */
  .mur .oeuvre {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
  }

  .mur .oeuvre__img {
    padding: 12px;
    border-width: 6px;
  }

  .mur .oeuvre__img img {
    max-height: 66svh;
  }

  .mur .oeuvre .cartel {
    width: 0;
    min-width: 100%;
    padding: 16px 0 0;
  }
}

.cartel {
  padding-top: 16px;
  font-size: .95rem;
  line-height: 1.45;
}

.cartel__nature {
  margin-bottom: 6px;
}

.cartel__titre {
  margin: 0;
  font: 600 1.3rem/1.15 var(--f-title);
  letter-spacing: .01em;
}

.cartel__meta,
.cartel__contexte,
.cartel__credit {
  margin: 4px 0 0;
  color: var(--muted);
}

.cartel__meta span+span::before {
  content: ' · ';
  color: var(--faint);
}

/* artistes identifiés sur le document */
.cartel__artistes {
  margin: 6px 0 0;
  font: 600 .95rem/1.4 var(--f-title);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.cartel__artistes a,
.cartel__artistes span {
  color: inherit;
}

.cartel__artistes a {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.cartel__artistes a:hover {
  color: var(--red);
}

.cartel__artistes > *+*::before {
  content: ' · ';
  color: var(--faint);
  text-decoration: none;
  display: inline-block;
  margin: 0 .2em;
}

.cartel__contexte {
  color: var(--faint);
}

.cartel__credit {
  color: var(--faint);
  font-size: .875rem;
}

.cartel__texte {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--muted);
  white-space: pre-line; /* retours à la ligne saisis dans le back-office respectés (comme l'aperçu du cartel) */
}

.cartel__texte.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cartel__more {
  margin-top: 4px;
  min-height: 32px;
  color: var(--text);
  font: 600 .78rem/1 var(--f-title);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.cartel__fiche {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .875rem;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.cartel__fiche:hover {
  color: var(--text);
}

/* ---------- Pages (index, à propos) ---------- */
.view--page {
  padding: 48px var(--gutter) 96px;
  min-height: 70vh;
}

.page-head {
  margin-bottom: 40px;
}

.page-title {
  margin: 12px 0 0;
  font: 600 clamp(2.6rem, 8vw, 4.5rem)/.95 var(--f-title);
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: 28px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  max-width: 420px;
  border-bottom: 1px solid var(--faint);
  padding: 4px 0;
}

.search:focus-within {
  border-color: var(--red);
}

.search input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
}

.search input::placeholder {
  color: var(--faint);
}

.count {
  margin: 20px 0 0;
  color: var(--faint);
  font-size: .9rem;
}

/* Toutes les œuvres : mosaïque masonry (colonnes), chaque œuvre entière dans son cadre noir + marie-louise */
.planche {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 14px;
}

@media (min-width: 720px) {
  .planche {
    columns: 3;
    /* écart entre les œuvres : de l'air comme sur un mur d'exposition (choix utilisateur) */
    column-gap: clamp(32px, 3.6vw, 64px);
  }
}

@media (min-width: 1100px) {
  .planche {
    columns: 4;
  }
}

@media (min-width: 1600px) {
  .planche {
    columns: 5;
  }
}

.planche li {
  break-inside: avoid;
  margin-bottom: clamp(44px, 4.6vw, 80px);
}

.planche .oeuvre,
.planche .oeuvre .cartel {
  width: auto;
  min-width: 0;
  margin: 0;
  padding-inline: 0;
}

.planche .oeuvre__img {
  width: 100%;
  padding: clamp(8px, 1vw, 16px);
  background: #f7f5f0;
  border: clamp(5px, .5vw, 8px) solid #0b0b0c;
  box-shadow: var(--ombre-cadre);
}

.planche .oeuvre__img img {
  width: 100%;
  max-height: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}

.planche .oeuvre__img:hover {
  box-shadow: 0 0 0 2px black, 0 22px 40px -16px rgba(0, 0, 0, .6);
}

/* cartel « de musée » (choix utilisateur) : étiquette blanche de la largeur du cadre, même hiérarchie que le cartel
   de salle — date · lieu, groupe(s) en gros, titre plus petit, © auteur, puis nature / crédit (pas de salle) */
.planche .oeuvre .cartel {
  --text: #1b1b1d;
  --muted: #4f4d49;
  --faint: #6b6964;
  position: relative;
  width: 100%;
  margin-top: 14px;
  padding: 16px 16px 14px;
  background: #fbfaf7;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 16px -8px rgba(0, 0, 0, .55);
}

/* petit filet rouge en tête d'étiquette */
.planche .oeuvre .cartel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  width: 28px;
  height: 3px;
  background: var(--red);
}

.planche .cartel > * {
  margin: 0;
}

.planche .cartel__meta {
  margin-bottom: 6px;
  color: var(--muted);
  font: 600 .7rem/1.35 var(--f-title);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.planche .cartel__nom {
  color: var(--text);
  font: 600 1.12rem/1.15 var(--f-title);
  letter-spacing: 0;
}

.planche .cartel__titre--second {
  margin-top: 3px;
  color: var(--text);
  font: 400 .9rem/1.3 var(--f-text);
}

.planche .cartel__auteur {
  margin-top: 6px;
  color: var(--muted);
  font-size: .8rem;
}

.planche .cartel__pied {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2dfd8;
  color: var(--faint);
  font-size: .74rem;
}

.prose {
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.prose strong {
  color: var(--text);
}

.prose a {
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

/* ---------- Pages À propos et Contact (« Pages du site ») ----------
   une photo d'archive des expos du moment tirée au hasard (app.js visuelPage) en fond fixe de toute la page, assombrie,
   le texte par-dessus ; en-tête transparent (body.page-hero) ; mention du document en bas, sans lien */
.page-site {
  position: relative;
  background: #0c0c0d;
}

.page-site__fond {
  position: fixed;
  inset: 0;
  z-index: 0;
  margin: 0;
  background: #050506;
  pointer-events: none;
}

.page-site__fond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* voile : texte lisible partout, plus sombre à gauche (là où commence le texte) */
.page-site__fond::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 9, .92) 0%, rgba(8, 8, 9, .82) 45%, rgba(8, 8, 9, .7) 100%),
    linear-gradient(rgba(5, 5, 6, .55), rgba(5, 5, 6, 0) 22%);
}

/* le pied de page passe devant le fond fixe */
.footer {
  position: relative;
  z-index: 1;
}

.page-site__contenu {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(40px, 9vh, 120px)) var(--gutter) 24px;
}

.page-site__tete .rule {
  margin-bottom: 0;
}

/* document montré en fond : nom, date · lieu, exposition */
.page-site__credit {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-self: flex-end;
  max-width: 40rem;
  margin: auto 0 0;
  padding: 32px 0 0 12px;
  border-left: 2px solid var(--red);
  font: 500 .74rem/1.4 var(--f-title);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c9c7c2;
}

.page-site__credit:empty {
  display: none;
}

.page-site__credit-nom {
  color: #fff;
}

.page-site__corps {
  padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 96px);
}

.page-site__corps > * {
  max-width: 46rem;
}

.page-site__texte {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e6e4df;
}

.page-site__texte p {
  margin: 0 0 1.1em;
}

.page-site__texte h2 {
  margin: 1.8em 0 .6em;
  color: var(--text);
  font: 600 1.05rem/1.2 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-site__texte ul {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

.page-site__texte li {
  margin-bottom: .35em;
}

.page-site__texte li::marker {
  color: var(--red);
}

.page-site__texte em {
  color: var(--text);
}

/* formulaire : carte sombre posée sur la photo */
.page-site .contact-form {
  background: rgba(16, 16, 18, .92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.page-site .contact-form input,
.page-site .contact-form textarea {
  background: #0a0a0b;
  border-color: #46464d;
}

/* Contact : titre et texte dans la 1re colonne */
.page-site__corps--deux {
  padding-top: 0;
}

.page-site__corps--deux .page-site__texte {
  margin-top: clamp(32px, 5vw, 64px);
}

@media (min-width: 1000px) {
  /* Contact : titre et texte | formulaire, à la même hauteur */
  .page-site__corps--deux {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
    max-width: 76rem;
  }

  .page-site__corps--deux > * {
    max-width: none;
  }

  .page-site__corps--deux .contact-form {
    margin-top: 0;
  }
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  padding: clamp(22px, 3vw, 40px);
  background: #151517;
  border-top: 3px solid var(--red);
}

.contact-form__titre {
  margin: 0 0 4px;
  color: #fff;
  font: 600 1.05rem/1.2 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-form__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.contact-form__note {
  margin: 0;
  color: var(--faint);
  font-size: .9rem;
}

.contact-form[hidden] {
  display: none;
}

.contact-form__ligne {
  display: grid;
  gap: 18px;
}

@media (min-width: 600px) {
  .contact-form__ligne {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font: 500 .8rem/1.2 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form__facultatif {
  color: var(--faint);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.contact-form label:has(.contact-form__facultatif) {
  display: block;
}

.contact-form label:has(.contact-form__facultatif) input {
  display: block;
  margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #3a3a40;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--f-text);
  letter-spacing: 0;
  text-transform: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}

/* champ piège pour les robots, hors de l'écran */
.contact-form__piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn-primaire {
  margin-top: 0;
  border: 0;
  cursor: pointer;
}

.contact-form .btn-primaire:disabled {
  opacity: .6;
  cursor: wait;
}

.contact-form__etat {
  margin: 0;
  color: var(--muted);
}

.contact-form__etat:empty {
  display: none;
}

.contact-form__etat.is-ok {
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--red);
}

.contact-form__etat.is-erreur {
  color: #ff8a98;
}

/* ---------- États ---------- */
.state {
  padding: 64px var(--gutter);
  text-align: center;
  color: var(--muted);
}

.state:empty {
  display: none;
}

.state button {
  margin-top: 16px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--faint);
}

.loader {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--red);
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    opacity: .2;
  }

  to {
    opacity: 1;
  }
}

/* ---------- Pied de page ---------- */
.footer {
  padding: clamp(40px, 5vw, 72px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: #0c0c0d;
  border-top: 3px solid var(--red);
  color: #b0afab;
  font-size: 1rem;
}

.footer p {
  margin: 0;
}

.footer__haut {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer__logo {
  grid-column: 1 / -1;
  justify-self: start;
  width: 112px;
}

.footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer__appel {
  grid-column: 1 / -1;
}

.footer__titre {
  color: #fff;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.05;
}

.footer .footer__texte {
  max-width: 46ch;
  margin-top: 14px;
  line-height: 1.5;
}

.footer__boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.footer__boutons .btn-primaire {
  margin-top: 0;
}

.footer .footer__intitule {
  margin-bottom: 14px;
  color: #fff;
  font: 600 .8rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer__liens ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__liens a {
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
}

.footer__liens a:hover,
.footer__liens a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.footer__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #2a2a2f;
  color: #8d8c89;
  font-size: .85rem;
}

.footer__bas a {
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

/* Page Confidentialité (texte du back-office) ; bouton « Modifier mon choix » visible si la mesure d'audience est active */
.page-confidentialite {
  max-width: 68ch;
}
.page-confidentialite__choix {
  margin-top: 2rem;
}

@media (min-width: 1000px) {
  .footer__haut {
    grid-template-columns: clamp(130px, 13vw, 190px) minmax(0, 1fr) auto;
    column-gap: clamp(32px, 5vw, 88px);
  }

  .footer__logo {
    grid-column: auto;
    width: 100%;
  }

  .footer__appel {
    grid-column: auto;
  }
}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .oeuvre__img img {
    opacity: 1;
  }
}

/* ---------- Typographie des titres : BBH Bogle (une seule graisse, sans lettres accentuées :
   les titres sont affichés sans accents par app.js > titreHTML, texte exact pour les lecteurs d'écran) ---------- */
:root {
  --f-display: 'BBH Bogle', 'Oswald', 'Arial Narrow', sans-serif;
}

.immersif__titre,
.hero__titre,
.page-title,
.salle__titre,
.expos__titre,
.salle-carte__titre {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0;
}

.immersif__titre {
  line-height: .92;
}

.salle__titre {
  line-height: .95;
}

/* ---------- Cimaise : couleur des murs d'exposition (salles, pages de salle, expositions passées) ----------
   Gris ardoise #2b2d34 : texte clair, contrastes calculés (texte 11.5:1, secondaire 7.7:1, discret 5.4:1). */
:root {
  --mur: #2b2d34;
  --mur-survol: #33363e;
  --mur-ligne: rgba(255, 255, 255, .1);
  --mur-texte: #f7f7f7;
  --mur-muted: #c3c2be;
  --mur-faint: #a3a29f;
  --ombre-cadre: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .05), inset 0 2px 6px rgba(0, 0, 0, .12),
    0 4px 10px rgba(0, 0, 0, .25), 0 22px 40px -16px rgba(0, 0, 0, .6);
}

.salle,
.expos-bloc,
#view-expositions,
#view-salle,
#view-oeuvres,
#view-lieux,
.plan-visite {
  --text: var(--mur-texte);
  --muted: var(--mur-muted);
  --faint: var(--mur-faint);
  --line: var(--mur-ligne);
  --bg-2: #383b44;
  background: var(--mur);
  color: white;
}

/* petits libellés sur le mur : gris (le rouge du site est --red #cf1531, unique, choix utilisateur) */
.expos-bloc .label,
#view-expositions .label,
.plan-visite .label,
#view-oeuvres .label,
#view-lieux .label,
.expos__voir,
.expos-bloc__tout,
.salle-pager .label {
  color: #858585;
}

.salle {
  border-top-color: var(--mur-ligne);
}

.salle+.salle {
  border-top: 1px solid var(--mur-ligne);
}

.salle .cartel__fiche:hover,
.salle .cartel__more {
  color: var(--text);
}

.mur .oeuvre::before {
  /* lumière chaude du projecteur sur le mur */
  background: radial-gradient(ellipse 40% 50% at 50% 30%, rgba(255, 244, 222, .09), transparent 100%);
}

.mur .oeuvre__img {
  background: #f7f5f0;
  box-shadow: var(--ombre-cadre);
}

.mur .oeuvre__img:hover {
  box-shadow: 0 0 0 1px var(--red), inset 0 2px 6px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .25), 0 22px 40px -16px rgba(0, 0, 0, .6);
}

/* ---------- Expositions passées (accueil) et page « Expositions » : affiches encadrées sur cimaise claire ---------- */
.expos-bloc {
  border-top: 0;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(80px, 10vw, 140px);
}

.expos-bloc__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.expos-bloc__tete .label {
  flex-basis: 100%;
}

.expos-bloc__titre {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
  text-transform: uppercase;
  font: 400 clamp(2.4rem, 6vw, 4.4rem)/.95 var(--f-display);
}

.expos-bloc__tout {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font: 500 .8rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 6px;
}

.expos-bloc__tout:hover {
  color: var(--text);
}

.expos--grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(56px, 6vw, 80px) clamp(28px, 3vw, 48px);
  align-items: start;
}

.expo-carte a {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: inherit;
  text-decoration: none;
}

.expo-carte__cadre {
  --pad: clamp(18px, 2.2vw, 30px);
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: #f7f5f0;
  border: clamp(8px, .8vw, 12px) solid #0b0b0c;
  box-shadow: var(--ombre-cadre);
  transition: box-shadow .2s;
}

.expo-carte__cadre img,
.expo-carte__vide {
  /* image entière (contain), centrée dans la marie-louise : jamais recadrée */
  position: absolute;
  inset: var(--pad);
  width: calc(100% - 2 * var(--pad));
  height: calc(100% - 2 * var(--pad));
  object-fit: contain;
}

.expo-carte__vide {
  background: #383b44;
}

.expo-carte a:hover .expo-carte__cadre {
  box-shadow: 0 0 0 2px var(--red), inset 0 2px 6px rgba(0, 0, 0, .1),
    0 3px 8px rgba(0, 0, 0, .12), 0 18px 34px -16px rgba(0, 0, 0, .6);
}

.expo-carte__txt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expo-carte .expos__titre {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: .98;
  transition: color .2s;
}

.expo-carte a:hover .expos__titre {
  color: var(--red);
}

.expo-carte__chapo {
  color: var(--muted);
  max-width: 46ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expo-carte__meta {
  color: var(--faint);
  font-size: .9rem;
}

.expo-carte__meta:empty {
  display: none;
}

.expo-carte .expos__voir {
  margin-top: 4px;
}

#view-expositions .page-head .label {
  color: var(--red);
}

/* ---------- Page « Les expositions » : cartes « affiche » (visuel plein cadre fondu dans le noir, texte en bas) ---------- */
.affiches-expos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.affiche-expo a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(520px, 44vw, 640px);
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}

.affiche-expo__media {
  position: absolute;
  inset: 0 0 auto;
  height: 78%;
}

.affiche-expo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* cadrage « carte » du back-office (variable posée sur l'img par app.js) */
  object-position: var(--cad-v, 50% 50%);
}

/* repli sur une œuvre : montrée entière (jamais recadrée), sur fond noir */
.affiche-expo__media--entiere {
  inset: 0 0 auto;
  height: 56%;
  padding: 28px 28px 0;
}

.affiche-expo__media--entiere img {
  object-fit: contain;
}

/* fondu vers le noir, sous le texte (sur le visuel de décor seulement) */
.affiche-expo__media:not(.affiche-expo__media--entiere)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, .6) 62%, #000 100%);
}

.affiche-expo__txt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 clamp(20px, 2.2vw, 26px) clamp(20px, 2.2vw, 26px);
}

/* sur-titre (rouge) · titre · sous-titre · intro */
.affiche-expo__label {
  color: var(--red);
  font: 700 .82rem/1.2 var(--f-title);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.affiche-expo__titre {
  font: 400 clamp(1.7rem, 2.3vw, 2.2rem)/1 var(--f-display);
  text-transform: uppercase;
}

.affiche-expo a:hover .affiche-expo__titre {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.affiche-expo__sous {
  color: #ecebe7;
  font: 600 1rem/1.3 var(--f-title);
}

.affiche-expo__intro {
  color: #c9c8c4;
  font-size: .95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* pied : date de présentation | bouton */
.affiche-expo__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 8px;
}

.affiche-expo__date {
  font: 600 .88rem/1.3 var(--f-title);
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.affiche-expo__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-left: auto;
  padding: 0 20px;
  background: var(--red);
  color: #fff;
  font: 700 .95rem/1 var(--f-title);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .2s;
}

.affiche-expo__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.affiche-expo a:hover .affiche-expo__btn,
.affiche-expo a:focus-visible .affiche-expo__btn {
  background: #a8112a;
}

.affiche-expo a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* Expo du moment : en tête, sur toute la largeur ; badge ; intro plus longue */
.affiche-expo--une {
  grid-column: 1 / -1;
}

.affiche-expo__une {
  align-self: flex-start;
  padding: 5px 10px;
  background: #fff;
  color: #0c0c0d;
  font: 700 .74rem/1 var(--f-title);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.affiche-expo--une .affiche-expo__intro {
  -webkit-line-clamp: 4;
}

/* ≥ 900 px : carte large, photo à gauche (cadrage du hero de la page de l'expo) | textes à droite */
@media (min-width: 900px) {
  .affiche-expo--une a {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
    align-items: end;
    min-height: clamp(460px, 40vw, 600px);
  }

  .affiche-expo--une .affiche-expo__media {
    position: relative;
    inset: auto;
    height: 100%;
    min-height: inherit;
  }

  .affiche-expo--une .affiche-expo__media img {
    position: absolute;
    inset: 0;
    object-position: var(--cad-l, var(--cad-v, 50% 50%));
  }

  .affiche-expo--une .affiche-expo__media:not(.affiche-expo__media--entiere)::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 55%, #000 100%);
  }

  .affiche-expo--une .affiche-expo__media--entiere {
    padding: 32px;
  }

  .affiche-expo--une .affiche-expo__txt {
    align-self: center;
    gap: 14px;
    padding: clamp(28px, 3.4vw, 52px);
  }

  .affiche-expo--une .affiche-expo__titre {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: .95;
  }

  .affiche-expo--une .affiche-expo__sous {
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  }

  .affiche-expo--une .affiche-expo__intro {
    font-size: 1.02rem;
    -webkit-line-clamp: 5;
  }
}

/* ---------- Page d'exposition : récapitulatif « Plan de la visite » (une carte par salle) ---------- */
.plan-visite {
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(72px, 8vw, 120px);
  border-top: 1px solid var(--mur-ligne);
}

.plan-visite__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.plan-visite__titre {
  margin: 10px 0 0;
  font: 400 clamp(2rem, 4.4vw, 3.4rem)/.95 var(--f-display);
  text-transform: uppercase;
}

.plan-visite__cartes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px);
  align-items: start;
}

.plan-carte {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.plan-carte__cadre {
  /* simple bloc photo (vignette de navigation, recadrée comme les cartes de salle de l'accueil) ; l'œuvre reste entière dans la salle */
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  overflow: hidden;
  background: #383b44;
}

.plan-carte__cadre img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-carte:hover .plan-carte__cadre {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.plan-carte__titre {
  font: 400 clamp(1.4rem, 2vw, 1.9rem)/1 var(--f-display);
  text-transform: uppercase;
}

.plan-carte:hover .plan-carte__titre {
  color: var(--red);
}

.plan-carte__meta {
  color: var(--muted);
  font-size: .92rem;
}

.plan-carte__entrer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--red);
  font: 600 .78rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.plan-carte__entrer svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ---------- Page d'une salle : fil d'Ariane et navigation page à page ---------- */
#view-salle .salle {
  border-top: 0;
}

.salle-pager {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  background-color: var(--bg);
}

@media (min-width: 720px) {
  .salle-pager {
    grid-template-columns: 1fr 1fr;
  }

  /* fin de la visite sans autre exposition : un seul bloc « Retour » sur toute la largeur */
  .salle-pager--seul {
    grid-template-columns: 1fr;
  }
}

/* mobile : l'un sous l'autre, la salle suivante (ou l'autre exposition) d'abord, la précédente en plus discret */
@media (max-width: 719px) {
  .salle-pager__lien--suiv {
    order: -1;
  }

  .salle-pager__lien + .salle-pager__lien {
    border-top: 0;
  }

  .salle-pager:not(.salle-pager--seul) .salle-pager__lien--prec {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .salle-pager:not(.salle-pager--seul) .salle-pager__lien--prec .salle-pager__titre {
    font-size: 1.4rem;
  }
}

.salle-pager__lien {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(32px, 5vw, 64px) var(--gutter);
  color: var(--text);
  text-decoration: none;
  transition: background-color .2s;
}

.salle-pager__lien+.salle-pager__lien {
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .salle-pager__lien+.salle-pager__lien {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .salle-pager__lien--suiv {
    align-items: flex-end;
    text-align: right;
  }
}

.salle-pager__lien:hover {
  background: var(--bg-3);
}

.salle-pager__titre {
  font: 400 clamp(1.8rem, 3.6vw, 3rem)/.95 var(--f-display);
  text-transform: uppercase;
}

.salle-pager__lien:hover .salle-pager__titre {
  color: var(--red);
}

.salle-pager__sous {
  color: var(--muted);
}

/* ---------- Page de salle : une œuvre par écran (visuel à gauche, cartel à droite), défilement vertical ---------- */
html.defilement-salle {
  scroll-snap-type: y proximity;
}

.salle-entree {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 60px);
  padding: 32px var(--gutter) 56px;
  scroll-snap-align: start;
  /* intro de la salle sur fond rouge à toutes les tailles, comme la colonne du grand écran (choix utilisateur) */
  background-color: var(--red);
}

/* mobile et tablette : l'intro prend la hauteur de son contenu (choix utilisateur) */
@media (max-width: 1199px) {
  .salle-entree {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 36px;
  }
}

.salle-entree__txt {
  max-width: 46rem;
}

.salle-entree .salle__titre {
  margin: 14px 0 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .92;
  margin-bottom: 20px;
}

.salle-entree .salle__texte {
  font-size: 1.1rem;
}

.salle-entree__suite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font: 500 .8rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.salle-entree__suite:hover {
  color: var(--text);
}

.salle-entree__suite span {
  font-size: 1.1rem;
  color: var(--red);
}

.oeuvre-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--mur-ligne);
  scroll-snap-align: start;
}

/* ancrage du défilement sur la page de l'œuvre, pas sur son image (centrée : elle bouge en se chargeant
   et le navigateur décalait alors l'arrivée sur ?o=<id>) */
.oeuvre-page > * {
  overflow-anchor: none;
}

.oeuvre-page__visuel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.oeuvre-page__cadre {
  /* cadre noir + marie-louise : l'œuvre entière, jamais recadrée */
  display: block;
  max-width: 100%;
  padding: clamp(14px, 2.2vw, 36px);
  background: #f7f5f0;
  border: clamp(6px, .6vw, 11px) solid #0b0b0c;
  box-shadow: var(--ombre-cadre);
}

.oeuvre-page__cadre img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - var(--header-h) - 200px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .22);
}

.oeuvre-page__infos {
  min-width: 0;
}

/* numéro du document au-dessus du titre : « 01 / 05 », numéro courant en gras rouge */
.oeuvre-page__n {
  margin: 0 0 18px;
  color: var(--faint);
  font: 300 .8rem/1 var(--f-title);
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.oeuvre-page__n b {
  font-weight: 700;
}

.oeuvre-page .cartel {
  padding: 0;
  font-size: 1rem;
  max-width: 34rem;
}

.oeuvre-page .cartel__nature {
  margin: 0 0 8px;
}

/* Cartel de la page de salle (choix utilisateur) : date (auteur, lieu) en tête, puis le groupe en gros sans soulignement,
   puis le titre du document plus petit ; sans groupe associé, le titre prend le style du groupe */
.oeuvre-page .cartel__titre,
.oeuvre-page .cartel__groupe {
  font: 600 clamp(1.7rem, 2.8vw, 2.6rem)/1.05 var(--f-title);
  letter-spacing: 0;
  text-transform: none;
  margin: 14px 0 0;
}

.oeuvre-page .cartel > :first-child {
  margin-top: 0;
}

.oeuvre-page .cartel__groupe a {
  text-decoration: none;
}

.oeuvre-page .cartel__groupe a:hover,
.oeuvre-page .cartel__groupe a:focus-visible {
  color: var(--red);
}

.oeuvre-page .cartel__titre--second {
  margin-top: 8px;
  font: 500 clamp(1.1rem, 1.5vw, 1.35rem)/1.25 var(--f-title);
  color: var(--text);
}

.oeuvre-page .cartel__meta {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--text);
}

.oeuvre-page .cartel__meta span+span::before {
  content: none;
}

.oeuvre-page .cartel__texte {
  margin-top: 22px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.oeuvre-page .cartel__bas {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--mur-ligne);
}

@media (min-width: 1000px) {
  .oeuvre-page {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr);
    align-items: center;
    gap: clamp(40px, 5vw, 96px);
    min-height: calc(100svh - var(--header-h));
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media (max-width: 999px) {
  .oeuvre-page__cadre img {
    max-height: 72svh;
  }
}

/* Tablette en hauteur (écran tactile 720-999 px, choix utilisateur 08/11/2026 ; ordinateur et téléphone inchangés) :
   une œuvre et son cartel tiennent dans l'écran, à l'écart de la pastille ↑ ↓ fixée à droite */
@media (min-width: 720px) and (max-width: 999px) and (min-height: 600px) and (pointer: coarse) {
  .oeuvre-page {
    min-height: calc(100svh - var(--header-h));
    align-content: center;
    gap: 20px;
    padding: 28px 76px 32px;
  }

  .oeuvre-page__cadre img {
    max-height: max(300px, calc(100svh - var(--header-h) - 400px));
  }

  .oeuvre-page .cartel {
    max-width: none;
  }
}

@media (max-width: 719px) {
  .oeuvre-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .oeuvre-page__infos {
    padding: 0 4px;
  }

  .oeuvre-page__cadre {
    padding: 10px;
    border-width: 6px;
  }
}

/* Grand écran : introduction de la salle fixe à gauche pendant le défilement des œuvres */
@media (min-width: 1200px) {
  .salle-pages {
    display: grid;
    /* intro élargie (choix utilisateur) : ~26 % de l'écran, entre 300 px et 34rem */
    grid-template-columns: minmax(300px, clamp(22rem, 26vw, 34rem)) minmax(0, 1fr);
    align-items: start;
  }

  .salle-entree {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    min-height: 0;
    /* intro plus haute que l'écran : elle défile seule. Place de la barre toujours réservée et pas de défilement
       horizontal : sinon la barre apparaissait / disparaissait en boucle (largeur qui change → texte recomposé),
       ce qui faisait aussi sauter l'accroche du défilement en bas de page */
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    /* barre discrète sur le fond rouge (choix utilisateur 08/11/2026) : fine, blanche translucide, sans rail */
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
    overscroll-behavior: contain;
    /* centrée par marges automatiques (cf. .salle-entree__txt) : une intro plus haute que l'écran commence en haut
       au lieu d'avoir son début coupé (align-items: center la faisait déborder vers le haut) */
    align-items: flex-start;
    padding: 40px clamp(24px, 2.5vw, 40px) 40px var(--gutter);
    border-right: 1px solid var(--mur-ligne);
    scroll-snap-align: none;
    background-color: var(--red);
  }

  .salle-entree:hover {
    scrollbar-color: rgba(255, 255, 255, .5) transparent;
  }

  /* navigateurs sans scrollbar-color (anciens Safari) */
  .salle-entree::-webkit-scrollbar { width: 6px; }
  .salle-entree::-webkit-scrollbar-track { background: transparent; }
  .salle-entree::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); border-radius: 3px; }
  .salle-entree:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .5); }

  .salle-entree__txt {
    margin: auto 0;
  }

  .salle-entree .salle__titre {
    font-size: clamp(2.2rem, 3.4vw, 3.6rem);
    overflow-wrap: break-word; /* un mot très long passe à la ligne au lieu d'être coupé (pas de défilement horizontal) */
  }

  .salle-entree .salle__texte {
    font-size: 1rem;
  }

  .salle-pages__oeuvres .oeuvre-page:first-child {
    border-top: 0;
  }

  /* cartel resserré (choix utilisateur) : colonne plafonnée, moins de vide à droite du texte ; l'œuvre prend le reste */
  .oeuvre-page {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 26rem);
    padding-left: clamp(28px, 3vw, 56px);
  }

  /* œuvre calée contre le cartel : une affiche verticale ne laisse plus de vide entre l'œuvre et le texte */
  .oeuvre-page__visuel {
    justify-content: flex-end;
  }
}

/* Page d'exposition : suite du texte de présentation ; lien « Toutes les œuvres » sous les salles */
.plan-visite__pied {
  margin: clamp(48px, 5vw, 72px) 0 0;
  text-align: center;
}

/* ==========================================================================
   Page d'une exposition — esprit affiche (fond noir, rouge, capitales) :
   hero court + titre bicolore, présentation en deux colonnes, salles en « chapitres »
   ========================================================================== */
#view-expo {
  background: #0c0c0d;
}

/* petit trait rouge devant les intitulés de section */
.expo-intro__texte::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--red);
}

/* Hero : titre présenté comme celui de l'accueil (styles .immersif__titre / __sous communs) ; sur toute la hauteur
   de l'écran comme l'accueil (choix utilisateur), avec « Commencer la visite » qui défile jusqu'aux salles */

/* Bloc sous le hero, en deux colonnes : tous les textes | « La visite » (salles) */
.expo-intro {
  display: grid;
  gap: 100px;
  align-items: start;
  padding: clamp(56px, 7vw, 104px) var(--gutter);
  background: #0c0c0d;
  color: #ecebe7;
  border-bottom: 1px solid #222226;
}

.expo-intro__lead--seul {
    font-size: 20px;
}

@media (min-width: 1000px) {
  .expo-intro {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr);
  }

  .expo-intro--seul {
    grid-template-columns: minmax(0, 1fr);
  }
}

.expo-intro__texte {
  max-width: 40rem;
}

.expo-intro__texte::before {
  margin-bottom: 22px;
}

.expo-intro__titre {
  margin: 0 0 22px;
  font: 700 clamp(1.7rem, 2.8vw, 2.5rem)/1.12 var(--f-text);
  letter-spacing: -.01em;
  text-wrap: balance;
}

.expo-intro__lead {
  margin: 0 0 1em;
  color: #d4d2cd;
  font-size: 1.15rem;
  line-height: 1.6;
}

.expo-intro__lead--seul {
  color: #ecebe7;
    font-family: 'Oswald';
    font-size: 23px;
  line-height: 1.45;
  font-weight: 400;
}

/* suite du texte, sous le chapô */
.expo-intro__p {
  margin: 0 0 1.1em;
  color: #b9b7b2;
  font-size: 1.05rem;
  line-height: 1.75;
  text-wrap: pretty;
}

/* textes de présentation dans le hero de la page d'expo : même style que .immersif__chapo de l'accueil, sans coupure */
.immersif__accroche {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.immersif__p {
  margin: 14px 0 0;
  color: #d4d2cd;
}

.rule + .immersif__p {
  margin-top: 0;
}

.immersif__accroche + .immersif__p,
.immersif__accroche + .immersif__chapo {
  margin-top: 10px;
}

/* « La visite » : salles en cartes sur toute la largeur, puis « Toutes les œuvres » et les artistes présents */
#view-expo .plan-visite {
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  background: #0c0c0d;
  color: #ecebe7;
  border: 0;
  border-bottom: 1px solid #222226;
  scroll-margin-top: var(--header-h);
}

.plan-visite__titre::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 16px;
  background: var(--red);
}

#view-expo .plan-visite__titre {
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  font: 700 clamp(1.3rem, 2vw, 1.7rem)/1 var(--f-title);
  letter-spacing: .06em;
  text-transform: uppercase;
  /* cible de « Commencer la visite » : le titre (et son trait rouge) juste sous l'en-tête */
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* salles en cartes « chapitres » (vignette en haut, numéro, titre, sous-titre, flèche), toutes de même hauteur */
#view-expo .plan-visite__cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

#view-expo .plan-visite__cartes > li {
  display: flex;
}

/* toute la largeur : autant de colonnes que de salles, 4 au plus (2 sur tablette, 1 sur mobile) */
@media (min-width: 600px) {
  #view-expo .expo-salles__cartes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  #view-expo .expo-salles__cartes--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #view-expo .expo-salles__cartes--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  #view-expo .expo-salles__cartes--1 {
    grid-template-columns: minmax(0, 32rem);
  }
}

.expo-salles__tout {
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  text-align: center;
}

.expo-salles__tout .btn-primaire {
  margin-top: 0;
}

/* artistes présents dans l'exposition : discret, sous le bouton */
.expo-salles__artistes {
  max-width: 62rem;
  margin: 28px auto 0;
  color: #8f8d89;
  font-size: .92rem;
  line-height: 1.7;
  text-align: center;
}

.expo-salles__artistes > span:first-child {
  margin-right: 4px;
  color: #6f6d69;
  font: 600 .72rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.expo-salles__artistes a {
  color: inherit;
  text-decoration: none;
}

.expo-salles__artistes a:hover,
.expo-salles__artistes a:focus-visible {
  color: #fff;
}

.expo-salles__sep {
  color: var(--red);
}

.plan-visite__mosaique {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--red);
  text-decoration: none;
  font: 600 .8rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.plan-visite__mosaique svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.plan-visite__mosaique:hover {
  color: #fff;
}

/* « À voir aussi » : autres expositions en lien (mêmes cartes que les salles, raison en rouge) */
.suggestions {
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(72px, 8vw, 120px);
  background: #0c0c0d;
  color: #ecebe7;
}

.suggestions__titre {
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  font: 700 clamp(1.3rem, 2vw, 1.7rem)/1 var(--f-title);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.suggestions__titre::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 16px;
  background: var(--red);
}

.suggestions__cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.suggestions__cartes > li {
  display: flex;
}

/* Cartes « chapitre » (salles de « La visite », « À voir aussi ») : même design que les cartes de la page Les
   expositions (choix utilisateur) — carte noire, visuel en haut fondu dans le noir, libellé rouge, titre, sous-titre,
   bouton rouge. Vignette de navigation recadrée (exception assumée) ; l'œuvre reste entière dans la salle. */
.plan-visite__cartes {
  align-items: stretch;
}

.plan-visite__cartes > li,
.suggestions__cartes > li {
  display: flex;
}

.chapitre {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: clamp(360px, 30vw, 460px);
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
  /* liseré : la page d'expo est noire, la carte doit s'en détacher */
  border: 1px solid #26262b;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}

.chapitre__img {
  position: absolute;
  inset: 0 0 auto;
  height: 74%;
  background: #1d1d20;
}

.chapitre__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* cadrage « carte » de la photo d'une expo (variable posée par app.js) */
  object-position: var(--cad-v, 50% 50%);
}

/* fondu vers le noir, sous le texte */
.chapitre__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .6) 62%, #000 100%);
}

.chapitre__corps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 clamp(18px, 1.8vw, 24px) clamp(18px, 1.8vw, 24px);
}

/* libellé rouge : « Salle 01 », raison de la suggestion */
.chapitre__n,
.chapitre__raison {
  color: var(--red);
  font: 700 .8rem/1.25 var(--f-title);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.chapitre__titre {
  font: 400 clamp(1.35rem, 1.8vw, 1.75rem)/1 var(--f-display);
  text-transform: uppercase;
}

.chapitre:hover .chapitre__titre,
.chapitre:focus-visible .chapitre__titre {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.chapitre__sous {
  color: #d9d8d4;
  font: 500 .95rem/1.3 var(--f-title);
}

.chapitre__pied {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.chapitre__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  font: 700 .88rem/1 var(--f-title);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .2s;
}

.chapitre__btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.chapitre:hover .chapitre__btn,
.chapitre:focus-visible .chapitre__btn {
  background: #a8112a;
}

.chapitre:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* « Faites défiler pour explorer » / « Plan de la visite » : liens vers la section suivante */
a.immersif__defiler {
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
}

a.immersif__defiler:hover,
a.immersif__defiler:focus-visible {
  color: #fff;
}

a.immersif__defiler:hover i {
  border-color: var(--red);
}

/* Salle : retour à l'expo dans l'introduction, boutons ↑ ↓ (document précédent / suivant) */
/* rappel discret de l'exposition, en tête de l'intro (choix utilisateur) */
.salle-entree__expo {
  margin: 0 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  color: var(--mur-texte);
}

.salle-entree__expo p {
  margin: 0;
}

/* mêmes styles que le hero de l'exposition (.label_home, .immersif__titre, .immersif__sous), en petit ; pas de rouge sur le fond rouge */
.salle-entree__expo .salle-entree__expo-sur {
  margin-bottom: 4px;
  color: inherit;
  font-size: .62rem;
  letter-spacing: .5em;
}

.salle-entree__expo-titre {
  font: 400 2.25rem/.95 var(--f-display);
  text-transform: uppercase;
}

.salle-entree__expo .salle-entree__expo-sous {
  margin-top: 5px;
  font: 500 .88rem/1.25 var(--f-title);
}

.salle-entree__retour {
  display: inline-flex;
  margin: 0 0 28px;
  color: var(--mur-texte);
}

/* lien vers la visite en 3D (visite-3d.html), sur le fond rouge de l'intro */
.salle-entree__3d {
  display: flex;
  width: fit-content;
  margin: 0 0 20px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  background: #0b0b0d;
  color: #fff;
  font: 600 .85rem/1 var(--f-title);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

/* icône cube, comme le bouton « Visite en 3D » de la page d'expo */
.salle-entree__3d svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.salle-entree__3d:hover,
.salle-entree__3d:focus-visible {
  background: #fff;
  color: #0b0b0d;
}

.salle-entree__retour:hover {
  color: var(--text);
}

.salle-fleches {
  position: fixed;
  z-index: 20;
  right: clamp(10px, 1.6vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 30px;
  background: rgba(20, 21, 25, .82);
  border: 1px solid var(--mur-ligne);
}

.salle-fleches .icon-btn {
  color: var(--mur-texte);
}

.salle-fleches .icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.salle-fleches .icon-btn:disabled {
  opacity: .3;
}

.salle-fleches__n {
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 500 .72rem/1.1 var(--f-title);
  letter-spacing: .08em;
  color: var(--mur-faint);
  text-align: center;
  font-variant-numeric: tabular-nums;
  writing-mode: horizontal-tb;
}

.salle-fleches__n b {
  color: var(--red);
  font-size: .9rem;
  font-weight: 700;
}

/* séparateur « _ » entre numéro courant et total */
.num-sep {
  display: block;
  margin: -.3em 0 .45em;
  line-height: 1;
}

.salle-pager {
  scroll-snap-align: end;
}

/* le bas de page (pied) est aussi une position d'arrêt : sans elle, le défilement « aimanté » ramenait
   de force sur .salle-pager quand on descendait tout en bas */
html.defilement-salle .footer {
  scroll-snap-align: end;
}

/* grand écran : chaque défilement (molette, ↑ ↓) s'arrête sur un document entier */
@media (min-width: 1000px) {
  html.defilement-salle {
    scroll-snap-type: y mandatory;
  }
}

@media (max-width: 719px) {
  .salle-fleches {
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: none;
  }
}

/* ---------- En-tête : logo en « onglet » (signalétique de musée) ----------
   Le logo carré est posé dans un bloc noir plus grand que la barre, qui déborde dessous ;
   au défilement, l'onglet se réduit à la hauteur de la barre. */
:root {
  --onglet: 76px;
}

@media (min-width: 720px) {
  :root {
    --onglet: 110px;
  }
}

/* = hauteur de la barre (110 px) */
.logo-onglet {
  position: relative;
  z-index: 2;
  flex: none;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: var(--onglet);
  height: var(--onglet);
  padding: 12px;
}

.logo-onglet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.is-scrolled .logo-onglet {
  width: var(--header-h);
  height: var(--header-h);
  padding: 7px;
  box-shadow: none;
}

.logo-onglet:focus-visible {
  outline-offset: -3px;
}

.topbar__titre {
  flex: none;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  font: 500 .78rem/1.15 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.topbar__titre:hover {
  color: #fff;
}

.topbar {
  gap: 20px;
}

@media (max-width: 719px) {
  .topbar {
    gap: 12px;
  }

  .topbar__titre {
    font-size: .66rem;
    padding-left: 10px;
    letter-spacing: .1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-onglet {
    transition: none;
  }
}

/* ---------- Contenu statique de référencement (pages générées par le back-office) ----------
   Lu par les moteurs et sans JavaScript ; masqué dès que la visite démarre (classe .js posée par data.js). */
.js .seo {
  display: none;
}

.seo {
  max-width: 72rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 32px) var(--gutter) 64px;
}

.seo h1 {
  font: 400 clamp(2rem, 5vw, 3.6rem)/1 var(--f-display);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.seo h2 {
  font: 400 1.6rem/1.1 var(--f-display);
  text-transform: uppercase;
  margin: 40px 0 12px;
}

.seo p,
.seo li {
  line-height: 1.6;
}

.seo img {
  max-width: 100%;
  height: auto;
}

.seo figure {
  margin: 32px 0;
}

.seo a {
  color: inherit;
}

/* ==========================================================================
   Les lieux — esprit affiche (comme la page d'expo) : fond noir, titre bicolore,
   liste de lieux numérotés à gauche | carte collante à droite (repères numérotés)
   Carte : Leaflet + OpenStreetMap, assombrie par filtre ; aucune animation.
   ========================================================================== */
#view-lieux,
#view-artistes {
  background: #0c0c0d;
  color: #ecebe7;
}

/* Les artistes : même en-tête et mêmes cartes que Les lieux (.lieux-tete, .lieu, .lieu__docs), en grille */
#view-artistes .lieux-tete__label {
  color: var(--red);
}

.artistes-recherche {
  max-width: 28rem;
  margin-top: 24px;
}

.artistes__liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 0 var(--gutter) clamp(72px, 8vw, 120px);
  list-style: none;
}

.artiste .lieu__nom {
  font-size: 1.3rem;
}

a.lieu__voir {
  text-decoration: none;
}

.lieux-tete {
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(32px, 4vw, 56px);
}

.lieux-tete__label {
  display: flex;
  align-items: center;
  gap: 12px;
}

#view-lieux .lieux-tete__label {
  color: var(--red);
}

.lieux-tete__label::before {
  content: '';
  width: 32px;
  height: 3px;
  background: var(--red);
}

.lieux-tete__titre {
  margin: 14px 0 0;
  font: 400 clamp(3rem, 7.5vw, 7rem)/.88 var(--f-display);
  text-transform: uppercase;
}

.lieux-tete__titre .rouge {
  color: var(--red);
}

.lieux-tete__intro {
  max-width: 36rem;
  margin: 22px 0 0;
  color: #b9b7b2;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* fond commun des cartes Leaflet (page Les lieux, page d'un lieu, mini-carte de l'accueil) */
.lieux__map {
  height: 56vh;
  min-height: 320px;
  background: #141416;
  border: 1px solid #242428;
  font: inherit;
}

.lieux__map .leaflet-tile-pane {
  filter: grayscale(1) invert(1) contrast(.85) brightness(.9);
}

.lieux__map .leaflet-control-zoom a {
  background: #0c0c0d;
  color: #ecebe7;
  border-color: #2a2a2e;
}

.lieux__map .leaflet-control-attribution {
  background: rgba(12, 12, 13, .75);
  color: #8d8b86;
}

.lieux__map .leaflet-control-attribution a {
  color: #b9b7b2;
}

.lieux__map .leaflet-popup-content-wrapper,
.lieux__map .leaflet-popup-tip {
  background: #0c0c0d;
  color: #ecebe7;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

.lieux__map .leaflet-popup-content {
  margin: 14px 18px;
  font: 400 1rem/1.4 var(--f-text);
}

.lieux__map .leaflet-popup-content strong {
  display: block;
  font: 600 1rem/1.2 var(--f-title);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.lieux__map .leaflet-popup-content a {
  color: var(--red);
}

.lieux__map a.leaflet-popup-close-button {
  color: #b9b7b2;
}

/* repères numérotés (rond rouge) ; lieu choisi : blanc
   (sélecteurs renforcés : leaflet.css est chargé après cette feuille) */
.lieux__map .leaflet-marker-icon.repere {
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}

.repere {
  display: grid;
  place-items: center;
  width: 34px !important;
  height: 34px !important;
  margin: -17px 0 0 -17px !important;
  background: var(--red);
  color: #fff;
  border: 2px solid #0c0c0d;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
  font: 700 .85rem/1 var(--f-title);
}

.repere.is-actif {
  background: #fff;
  color: #0c0c0d;
  border-color: var(--red);
  z-index: 1000 !important;
}

.lieux__tout {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  min-height: 40px;
  padding: 0 14px;
  background: #0c0c0d;
  color: #fff;
  border: 1px solid #2a2a2e;
  cursor: pointer;
  font: 600 .74rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lieux__tout:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Liste des lieux : cartes numérotées (comme les « chapitres » de la page d'expo) */
.lieux__liste {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lieu {
  padding: 20px 22px 22px;
  background: #141416;
  border: 1px solid #242428;
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color .2s;
}

.lieu.is-actif,
.lieu:hover {
  border-color: var(--red);
}

.lieu__tete {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.lieu__n {
  flex: none;
  color: var(--red);
  font: 700 1.5rem/1 var(--f-title);
}

.lieu__nom {
  margin: 0;
  font: 700 1.15rem/1.2 var(--f-title);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.lieu__adresse {
  margin: 6px 0 0;
  color: #a9a7a2;
  font-size: .95rem;
}

.lieu__texte {
  margin: 14px 0 0;
  color: #b9b7b2;
  font-size: 1rem;
  line-height: 1.65;
}

/* documents du lieu : œuvres entières (jamais recadrées) dans de petits cadres noirs */
.lieu__docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lieu__docs a {
  display: grid;
  gap: 6px;
  color: #b9b7b2;
  text-decoration: none;
  font-size: .8rem;
  line-height: 1.3;
}

.lieu__docs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 5px;
  background: #0c0c0d;
  border: 1px solid #242428;
}

.lieu__docs a:hover img {
  border-color: var(--red);
}

.lieu__docs a:hover span {
  color: #fff;
}

.lieu__voir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--red);
  cursor: pointer;
  font: 600 .78rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lieu__voir svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.lieu__voir:hover {
  color: #fff;
}

/* ==========================================================================
   Accueil — plusieurs expositions du moment : hero partagé en panneaux côte à côte (empilés sur mobile)
   ========================================================================== */
.hero--multi {
  display: block;
  background: #0c0c0d;
}

.unes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .unes {
    min-height: max(100svh, 640px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unes--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.une-panneau {
  position: relative;
  display: flex;
  min-height: 72svh;
  border-bottom: 1px solid #222226;
}

@media (min-width: 900px) {
  .une-panneau {
    min-height: 0;
    border-bottom: 0;
  }

  .une-panneau + .une-panneau {
    border-left: 1px solid #222226;
  }

  /* 4 expositions : deux rangées de deux */
  .unes--4 .une-panneau:nth-child(n + 3) {
    border-top: 1px solid #222226;
  }

  .unes--4 .une-panneau:nth-child(3) {
    border-left: 0;
  }
}

.une-panneau__lien {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

/* visuel de mise en scène (décor, jamais une œuvre) recadré pour remplir le panneau, assombri pour la lisibilité */
.une-panneau__media {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #050506;
}

.une-panneau__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Deux expositions : noir et blanc atténué au repos, couleur au survol (écrans tactiles : couleur). --une-repos = opacité au repos */
@media (hover: hover) {
  .unes--2 {
    --une-repos: .4;
  }

  .unes--2 .une-panneau__media img {
    filter: grayscale(1);
    opacity: var(--une-repos);
    transition: filter .25s ease, opacity .25s ease;
  }

  .unes--2 .une-panneau__lien:hover .une-panneau__media img,
  .unes--2 .une-panneau__lien:focus-visible .une-panneau__media img {
    filter: none;
    opacity: 1;
  }
}

.une-panneau__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 8, 9, .94) 0%, rgba(8, 8, 9, .55) 38%, rgba(8, 8, 9, .1) 70%),
    linear-gradient(rgba(5, 5, 6, .6), rgba(5, 5, 6, 0) 22%);
  transition: opacity .25s ease;
}

.une-panneau__lien:hover .une-panneau__media::after,
.une-panneau__lien:focus-visible .une-panneau__media::after {
  opacity: .8;
}

.une-panneau--sans-visuel .une-panneau__lien {
  background: #141416;
}

.une-panneau__texte {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: calc(var(--header-h) + 32px) var(--gutter) clamp(32px, 4vw, 56px);
}

.une-panneau__titre {
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  max-width: 12ch;
}

.unes--3 .une-panneau__titre {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
}

.une-panneau__sous {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.une-panneau__accroche {
  display: block;
  margin-top: 14px;
}

/* Deux expositions : séparation en biais, soulignée d'un trait rouge (choix utilisateur). --biais = demi-décalage horizontal */
@media (min-width: 900px) {
  .unes--2 {
    --biais: 4vw;
    position: relative;
    overflow: hidden;
  }

  .unes--2 .une-panneau:first-child {
    margin-right: calc(-1 * var(--biais));
    clip-path: polygon(0 0, 100% 0, calc(100% - 2 * var(--biais)) 100%, 0 100%);
  }

  .unes--2 .une-panneau + .une-panneau {
    margin-left: calc(-1 * var(--biais));
    border-left: 0;
    clip-path: polygon(calc(2 * var(--biais)) 0, 100% 0, 100% 100%, 0 100%);
  }

  /* le texte du panneau de droite s'écarte du biais */
  .unes--2 .une-panneau + .une-panneau .une-panneau__texte {
    padding-left: calc(var(--gutter) + var(--biais));
  }

  .unes--2::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--red);
    pointer-events: none;
    clip-path: polygon(calc(50% + var(--biais) - 2px) 0, calc(50% + var(--biais) + 2px) 0, calc(50% - var(--biais) + 2px) 100%, calc(50% - var(--biais) - 2px) 100%);
  }
}

.une-panneau .btn-primaire {
  margin-top: 26px;
}

.une-panneau__lien:hover .btn-primaire,
.une-panneau__lien:focus-visible .btn-primaire {
  background: #a8112a;
}

.une-panneau__lien:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
  .une-panneau__media::after,
  .unes--2 .une-panneau__media img {
    transition: none;
  }
}

/* ==========================================================================
   Accueil — « Explorer » (esprit affiche) : la carte des lieux | le mur des artistes
   ========================================================================== */
.explorer {
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(72px, 9vw, 128px);
  background: #0c0c0d;
  color: #ecebe7;
  border-bottom: 1px solid #222226;
}

.explorer__tete {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.explorer__tete .label {
  color: #858585;
}

.explorer__titre {
  margin: 0;
  font: 400 clamp(2.4rem, 6vw, 4.4rem)/.95 var(--f-display);
  text-transform: uppercase;
}

/* petit trait rouge devant chaque bloc, comme les intitulés de la page d'expo */
.explorer__nom::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--red);
}

.explorer__nom {
  margin: 0;
  font: 400 clamp(2.6rem, 5.5vw, 5rem)/.9 var(--f-display);
  text-transform: uppercase;
}

.explorer__nom a {
  color: inherit;
  text-decoration: none;
}

.explorer__nom .rouge {
  color: var(--red);
}

.explorer__intro {
  max-width: 34rem;
  margin: 18px 0 0;
  color: #b9b7b2;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Les lieux : texte et liste numérotée | mini-carte (repères comme sur la page Les lieux) */
.explorer-lieux {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}

@media (min-width: 1000px) {
  .explorer-lieux {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.explorer-lieux__liste {
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #242428;
}

.explorer-lieux__liste li {
  border-bottom: 1px solid #242428;
}

.explorer-lieux__liste a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  color: #ecebe7;
  text-decoration: none;
  font: 600 1.05rem/1.25 var(--f-title);
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color .15s;
}

.explorer-lieux__liste a:hover,
.explorer-lieux__liste a:focus-visible {
  color: var(--red);
}

.explorer-lieux__n {
  min-width: 2ch;
  color: var(--red);
  font-weight: 700;
}

.explorer-lieux__carte {
  display: block;
  min-height: 320px;
}

/* la mini-carte reprend .lieux__map (fond OSM assombri, repères rouges) ; non interactive, le lien ouvre la page */
.explorer-lieux__map {
  display: block;
  height: 100%;
  min-height: 320px;
  cursor: pointer;
}

@media (min-width: 1000px) {
  .explorer-lieux__map {
    min-height: 460px;
  }
}

.explorer-lieux__carte .leaflet-container {
  cursor: pointer;
}

/* mobile : pas de mini-carte sur l'accueil (choix utilisateur 11/11/2026) ; masquée, elle n'est jamais
   « visible » pour l'IntersectionObserver, donc Leaflet et les tuiles ne sont pas chargés */
@media (max-width: 719px) {
  .explorer-lieux__carte {
    display: none;
  }
}

/* Les artistes : mur de noms façon affiche de festival, séparés par une barre rouge */
.explorer-artistes {
  margin-top: clamp(40px, 9vw, 128px);
}

/* barre rouge devant CHAQUE nom ; la liste est décalée à gauche de la largeur d'une barre (--sep) et ce décalage
   est rogné (clip-path) : les barres en début de ligne (et celle du 1er nom) ne se voient pas (choix utilisateur 11/11/2026) */
.explorer-artistes__noms {
  --sep: 1.3em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  margin: 32px 0 36px calc(-1 * var(--sep));
  padding: 0;
  list-style: none;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  clip-path: inset(-0.5em -0.5em -0.5em var(--sep));
}

@media (max-width: 719px) {
  .explorer-artistes__noms {
    font-size: 1.2rem;
  }
}

.explorer-artistes__noms li {
  display: inline-flex;
  align-items: baseline;
}

.explorer-artistes__noms li::before {
  content: '/';
  flex: none;
  width: var(--sep);
  text-align: center;
  color: var(--red);
  font: 400 1em/1.15 var(--f-title);
}

.explorer-artistes__noms a {
  color: #ecebe7;
  text-decoration: none;
  font: 700 1em/1.15 var(--f-title);
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: color .15s;
}

.explorer-artistes__noms a:hover,
.explorer-artistes__noms a:focus-visible {
  color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  .explorer-lieux__liste a,
  .explorer-artistes__noms a {
    transition: none;
  }
}

/* ==========================================================================
   Les lieux — « atlas » : panneau (titre sobre, recherche, liste compacte numérotée) | carte plein écran.
   Grand écran : la vue occupe l'écran sous l'en-tête, le panneau défile seul. Mobile : carte puis liste.
   ========================================================================== */
#view-lieux.atlas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #0c0c0d;
  color: #ecebe7;
}

.atlas__carte {
  position: relative;
  order: -1;
}

.atlas__map {
  height: 46svh;
  min-height: 300px;
  border: 0;
  border-bottom: 1px solid #242428;
}

.atlas__panneau {
  padding: 28px var(--gutter) 56px;
}

@media (min-width: 1000px) {
  #view-lieux.atlas {
    grid-template-columns: minmax(340px, 30rem) minmax(0, 1fr);
    height: calc(100svh - var(--header-h));
  }

  .atlas__carte {
    order: 0;
  }

  .atlas__map {
    height: 100%;
    min-height: 0;
    border-bottom: 0;
    border-left: 1px solid #242428;
  }

  /* le panneau défile seul ; place de la barre réservée (pas d'oscillation de largeur) */
  .atlas__panneau {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    padding: 36px clamp(20px, 2vw, 32px) 40px var(--gutter);
  }
}

#view-lieux .atlas__tete .label,
.lieu-page__col > .label {
  color: var(--red);
}

.atlas__titre {
  margin: 10px 0 0;
  font: 700 clamp(1.9rem, 2.6vw, 2.6rem)/1 var(--f-title);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.atlas__intro {
  margin: 12px 0 0;
  color: #b9b7b2;
  font-size: 1rem;
  line-height: 1.55;
}

.atlas__recherche {
  margin-top: 20px;
}

.atlas__liste,
.lieu-page__proches ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #242428;
}

.atlas__liste li,
.lieu-page__proches li {
  border-bottom: 1px solid #242428;
}

/* une ligne : numéro (= repère) | nom + adresse | flèche */
.atlas__lieu,
.lieu-page__proches a {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 4px;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s;
}

.atlas__lieu:hover,
.atlas__lieu:focus-visible,
.lieu-page__proches a:hover,
.lieu-page__proches a:focus-visible {
  background: #17171a;
}

.atlas__lieu:hover .atlas__nom,
.atlas__lieu:focus-visible .atlas__nom,
.lieu-page__proches a:hover .atlas__nom,
.lieu-page__proches a:focus-visible .atlas__nom,
.atlas__lieu:hover .atlas__fleche,
.lieu-page__proches a:hover .atlas__fleche {
  color: var(--red);
}

.atlas__n {
  color: var(--red);
  font: 700 .95rem/1 var(--f-title);
  font-variant-numeric: tabular-nums;
}

.atlas__nom {
  display: block;
  font: 600 1rem/1.25 var(--f-title);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.atlas__adresse {
  display: block;
  margin-top: 3px;
  color: #8d8b86;
  font-size: .88rem;
  line-height: 1.35;
}

.atlas__fleche {
  color: #5d5b57;
}

.atlas__fleche svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.atlas__vide {
  padding: 16px 0;
  color: #b9b7b2;
}

/* repères : estompés hors recherche ; bulle du nom au survol (sélecteurs renforcés : leaflet.css est chargé après) */
.repere.is-estompe {
  opacity: .22;
}

/* page d'un lieu : les autres lieux en discret */
.repere.is-discret {
  opacity: .45;
}

.repere.is-discret:hover {
  opacity: 1;
}

.leaflet-tooltip.repere-bulle {
  padding: 6px 10px;
  background: #0c0c0d;
  color: #ecebe7;
  border: 1px solid #2a2a2e;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
  font: 600 .8rem/1.2 var(--f-title);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.leaflet-tooltip-top.repere-bulle::before {
  border-top-color: #0c0c0d;
}

/* bulle d'un repère : nom + adresse ; sur ordinateur, petite carte (bulleLieu, app.js) : « Lieu 05 », nom, adresse,
   œuvres entières dans des cases de taille fixe (Leaflet place la bulle d'après sa taille à l'ouverture), « Voir le lieu » */
.repere-bulle__nom {
  display: block;
}
.repere-bulle__adresse {
  display: block;
  margin-top: 3px;
  color: #a9a7a1;
  font: 400 .74rem/1.3 var(--f-text);
  letter-spacing: 0;
  text-transform: none;
}
.leaflet-tooltip-bottom.repere-bulle::before {
  border-bottom-color: #0c0c0d;
}
/* grande bulle posée à côté du repère (pas la place au-dessus ni au-dessous, ouvrirBulle) : décalée, donc sans flèche */
.leaflet-tooltip-left.repere-bulle::before,
.leaflet-tooltip-right.repere-bulle::before {
  display: none;
}
/* grande bulle des lieux sur ordinateur : suit la taille de l'écran (choix utilisateur 06/11/2026) */
.leaflet-tooltip.repere-bulle:has(.repere-bulle__carte) {
  width: clamp(400px, 27vw, 560px);
  padding: 0;
  white-space: normal;
  border-color: #2a2a2e;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .9), 0 2px 6px rgba(0, 0, 0, .5);
}
.repere-bulle__carte {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 14px;
  text-decoration: none;
}
.leaflet-container a.repere-bulle__carte { /* Leaflet colore les liens de la carte en bleu */
  color: #ecebe7;
}
.repere-bulle__carte:hover .repere-bulle__pied,
.repere-bulle__carte:focus-visible .repere-bulle__pied {
  color: var(--red);
}
.repere-bulle__carte::before { /* filet rouge en tête, comme les intitulés du site */
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  width: 34px;
  height: 3px;
  background: var(--red);
}

.repere-bulle__carte .repere-bulle__nom {
  font: 600 clamp(1.1rem, 1.1vw, 1.45rem)/1.15 var(--f-title);
  letter-spacing: .03em;
}
.repere-bulle__carte .repere-bulle__adresse {
  margin-top: 6px;
  font-size: clamp(.85rem, .75vw, 1rem);
}
.repere-bulle__oeuvres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
}
.repere-bulle__oeuvre {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(160px, 11vw, 240px);
  padding: 6px;
  background: #1b1b1e;
  overflow: hidden;
}
.repere-bulle__oeuvres--1 .repere-bulle__oeuvre {
  grid-column: 1 / -1;
  height: clamp(260px, 19vw, 400px);
}
.repere-bulle__oeuvres--2 .repere-bulle__oeuvre {
  height: clamp(220px, 15vw, 320px);
}
.repere-bulle__oeuvres--3 .repere-bulle__oeuvre:first-child {
  grid-column: 1 / -1;
  height: clamp(200px, 14vw, 300px);
}
.repere-bulle__oeuvre img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
.repere-bulle__pied {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #222226;
  color: #ecebe7;
  font: 600 .68rem/1 var(--f-title);
  letter-spacing: .12em;
}
.repere-bulle__pied svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
}

/* ==========================================================================
   Page d'un lieu (lieux/<slug>/, choix utilisateur) : barre latérale collante (présentation, carte, à proximité)
   | archives mélangées par date, en petit, sur la cimaise ; < 1000 px : présentation, carte, archives, à proximité
   ========================================================================== */
#view-lieu {
  background: #0c0c0d;
  color: #ecebe7;
}

.lieu-cadre {
  display: flex;
  flex-direction: column;
}

.lieu-tete {
  display: contents;
}

.lieu-tete__txt {
  padding: 28px var(--gutter) 32px;
}

.lieu-archives {
  order: 1;
}

.lieu-proches {
  order: 2;
}

.lieu-tete__n {
  margin: 0;
  color: var(--red);
  font: 700 .85rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lieu-tete__titre {
  margin: 14px 0 0;
  font: 400 clamp(2rem, 2.6vw, 2.8rem)/1.02 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.lieu-tete__carte {
  height: 300px;
  min-height: 0;
  border-width: 1px 0;
}

@media (min-width: 1000px) {
  .lieu-cadre {
    display: grid;
    grid-template-columns: clamp(320px, 27vw, 420px) minmax(0, 1fr);
  }

  /* la barre reste à l'écran et défile seule si son contenu dépasse */
  .lieu-tete {
    position: sticky;
    top: var(--header-h);
    display: flex;
    flex-direction: column;
    align-self: start;
    height: calc(100svh - var(--header-h));
    overflow: hidden auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }

  .lieu-tete__txt {
    padding: 28px clamp(20px, 2vw, 32px) 24px var(--gutter);
  }

  .lieu-tete__carte {
    flex: 1 0 220px;
    height: auto;
  }

  .lieu-archives {
    min-height: calc(100svh - var(--header-h));
  }
}

/* le mur : cimaise, cadres et cartels de la mosaïque « Toutes les œuvres », en plus petit */
.lieu-archives {
  padding: clamp(32px, 3.4vw, 48px) var(--gutter) clamp(48px, 5vw, 72px);
  background: var(--mur);
  color: var(--mur-texte);
}

.lieu-archives__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}

.lieu-archives__tete .lieu-page__h2 {
  margin-bottom: 0;
}

.lieu-archives__periode {
  margin: 0;
  color: var(--mur-muted);
  font: 500 1rem/1 var(--f-title);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

/* grille en lignes (et non en colonnes CSS) : la date se lit de gauche à droite, de haut en bas */
.planche.lieu-mur {
  --mur-min: 150px; /* largeur minimale d'une carte */
  --c: 1;           /* échelle du cartel et du cadre */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--mur-min)), 1fr));
  gap: 28px 20px;
  align-items: start;
  columns: auto;
}

/* paliers selon le nombre d'archives du lieu (murLieuHTML) : 1 | 2-3 | 4-8 | 9 et plus */
.planche.lieu-mur--seul {
  --mur-min: 100%;
  --c: 1.3;
  max-width: 520px;
}

@media (min-width: 720px) {
  .planche.lieu-mur {
    gap: 36px clamp(20px, 2vw, 32px);
  }

  .planche.lieu-mur--peu {
    --mur-min: 280px;
    --c: 1.18;
  }

  .planche.lieu-mur--moyen {
    --mur-min: 190px;
  }

  .planche.lieu-mur--beaucoup {
    --mur-min: 150px;
    --c: .9;
  }
}

.planche.lieu-mur li {
  margin-bottom: 0;
}

/* page d'un lieu : œuvres seules, sans cartel, en colonnes qui prennent toute la largeur (5 au plus ; choix utilisateur
   06/11/2026) ; lieu-mur--n<k> = nombre d'archives (plafonné à 5) */
.planche.lieu-mur.lieu-mur--colonnes {
  --c: .9;
  --ecart: clamp(14px, 1.5vw, 28px);
  display: flex;
  align-items: flex-start;
  gap: var(--ecart);
  columns: auto;
  max-width: none;
}
.lieu-mur__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ecart);
  margin: 0;
  padding: 0;
  list-style: none;
}
.planche.lieu-mur--colonnes li,
.planche.lieu-mur--colonnes .oeuvre {
  margin: 0;
}
.planche.lieu-mur.lieu-mur--n1 {
  max-width: 720px;
}

.lieu-mur .oeuvre__img {
  padding: calc(6px * var(--c));
  border-width: calc(4px * var(--c));
}

.planche.lieu-mur .oeuvre .cartel {
  margin-top: calc(8px * var(--c));
  padding: calc(11px * var(--c)) calc(11px * var(--c)) calc(10px * var(--c));
  font-size: calc(.76rem * var(--c));
}

.planche.lieu-mur .oeuvre .cartel::before {
  left: calc(11px * var(--c));
  width: calc(20px * var(--c));
  height: 2px;
}

.lieu-mur .cartel__meta {
  margin-bottom: 4px;
  font-size: calc(.62rem * var(--c));
}

.planche.lieu-mur .cartel__nom {
  font-size: calc(.95rem * var(--c));
}

.planche.lieu-mur .cartel__titre--second {
  font-size: calc(.78rem * var(--c));
}

.planche.lieu-mur .cartel__auteur {
  margin-top: 4px;
  font-size: calc(.72rem * var(--c));
}

.planche.lieu-mur .cartel__pied {
  margin-top: 6px;
  padding-top: 6px;
  font-size: calc(.66rem * var(--c));
}

/* exposition d'origine, en pied du cartel */
.planche .lieu-mur__expo {
  margin-top: 6px;
  font: 600 calc(.64rem * var(--c, 1))/1.3 var(--f-title);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.lieu-mur__expo a {
  color: #a8112a;
  text-decoration: none;
}

.lieu-mur__expo a:hover,
.lieu-mur__expo a:focus-visible {
  text-decoration: underline;
}

.lieu-proches {
  margin-top: 0;
  padding: 32px var(--gutter) 40px;
}

@media (min-width: 1000px) {
  .lieu-proches {
    padding: 22px clamp(20px, 2vw, 32px) 20px var(--gutter);
  }

  .lieu-proches .lieu-page__h2 {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .lieu-proches .lieu-page__h2::before {
    display: none;
  }

  .lieu-proches a {
    padding-block: 8px;
  }
}

/* intitulés de section : petit trait rouge, capitales */
.lieu-page__h2 {
  margin: 0 0 20px;
  font: 700 clamp(1.2rem, 1.8vw, 1.5rem)/1 var(--f-title);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lieu-page__h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 14px;
  background: var(--red);
}

.lieu-page__retour {
  display: inline-block;
  margin-bottom: 28px;
  color: #b9b7b2;
  text-decoration: none;
  font: 600 .8rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lieu-page__retour:hover,
.lieu-page__retour:focus-visible {
  color: var(--red);
}

.lieu-page__titre {
  margin: 10px 0 0;
  font: 700 clamp(2rem, 3.6vw, 3.4rem)/1.02 var(--f-title);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lieu-page__adresse {
  margin: 14px 0 0;
  color: #b9b7b2;
  font-size: 1.05rem;
}

.lieu-page__p {
  max-width: 40rem;
  margin: 18px 0 0;
  color: #d4d2cd;
  font-size: 1.08rem;
  line-height: 1.65;
}

.lieu-page__map {
  height: clamp(240px, 36svh, 400px);
  min-height: 0;
  margin-top: 28px;
}

.lieu-page__proches {
  margin-top: 36px;
}

.lieu-page__proches ul {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .atlas__lieu,
  .lieu-page__proches a {
    transition: none;
  }
}

/* ==========================================================================
   Les artistes — répertoire (même esprit que Les lieux, choix utilisateur) : en-tête sobre, recherche,
   index des lettres, groupes par lettre en colonnes ; page d'un artiste = mise en page d'un lieu (.lieu-page__*)
   ========================================================================== */
#view-artistes.repertoire {
  background: #0c0c0d;
  color: #ecebe7;
}

.repertoire__tete {
  max-width: 60rem;
  padding: clamp(32px, 4vw, 56px) var(--gutter) 24px;
}

#view-artistes .repertoire__tete .label {
  color: var(--red);
}

.repertoire__lettres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 22px;
}

.repertoire__lettres button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  background: transparent;
  color: #ecebe7;
  border: 1px solid #2a2a2e;
  cursor: pointer;
  font: 600 .9rem/1 var(--f-title);
  transition: background-color .15s, border-color .15s;
}

.repertoire__lettres button:hover,
.repertoire__lettres button:focus-visible {
  background: var(--red);
  border-color: var(--red);
}

.repertoire__lettres button:disabled {
  opacity: .3;
  cursor: default;
  background: transparent;
  border-color: #2a2a2e;
}

.repertoire__groupes {
  column-width: 300px;
  column-gap: clamp(32px, 3vw, 56px);
  padding: 16px var(--gutter) clamp(72px, 8vw, 120px);
}

.repertoire__groupe {
  break-inside: avoid;
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.repertoire__lettre {
  margin: 0 0 8px;
  color: var(--red);
  font: 400 2.2rem/1 var(--f-display);
}

.repertoire .atlas__liste {
  margin-top: 0;
}

/* Répertoire en barre latérale (la liste défile seule) | fiche de l'artiste sur la cimaise (choix utilisateur).
   < 1000 px : artistes/ = la liste seule ; artistes/<slug>/ = la fiche seule, avec un lien de retour */
.repertoire__fiche {
  display: none;
  padding: 28px var(--gutter) 0;
  background: var(--mur);
  color: var(--mur-texte);
}

.repertoire--fiche .repertoire__fiche {
  display: block;
}

.repertoire--fiche .repertoire__barre {
  display: none;
}

.atlas__lieu[aria-current] {
  background: #17171a;
}

.atlas__lieu[aria-current] .atlas__nom,
.atlas__lieu[aria-current] .atlas__fleche {
  color: var(--red);
}

@media (min-width: 1000px) {
  #view-artistes:not([hidden]) {
    display: grid;
    grid-template-columns: clamp(320px, 27vw, 420px) minmax(0, 1fr);
  }

  .repertoire__barre,
  .repertoire--fiche .repertoire__barre {
    position: sticky;
    top: var(--header-h);
    display: flex;
    flex-direction: column;
    align-self: start;
    height: calc(100svh - var(--header-h));
  }

  .repertoire__tete {
    flex: none;
    padding: 24px clamp(20px, 2vw, 32px) 16px var(--gutter);
    border-bottom: 1px solid #242428;
  }

  .repertoire__tete .label,
  .repertoire__tete .atlas__intro {
    display: none;
  }

  #view-artistes .atlas__titre {
    margin: 0;
    font: 400 clamp(1.8rem, 2.2vw, 2.4rem)/1.02 var(--f-display);
  }

  .repertoire__tete .atlas__recherche {
    margin-top: 12px;
  }

  .repertoire__lettres {
    margin-top: 14px;
    gap: 3px;
  }

  .repertoire__lettres button {
    min-width: 28px;
    min-height: 28px;
    padding: 0 4px;
    font-size: .8rem;
  }

  .repertoire__groupes {
    flex: 1 1 0;
    min-height: 0;
    padding: 16px clamp(12px, 1.4vw, 24px) 24px var(--gutter);
    columns: auto;
    overflow: hidden auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }

  .repertoire__groupe {
    margin-bottom: 20px;
  }

  .repertoire__lettre {
    font-size: 1.5rem;
  }

  .repertoire__groupes .atlas__lieu {
    padding-block: 8px;
  }

  /* colonne : le bandeau vers rockinlehavre.com reste calé en bas de la fiche */
  .repertoire__fiche,
  .repertoire--fiche .repertoire__fiche {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: calc(100svh - var(--header-h));
    padding: clamp(32px, 3.4vw, 48px) var(--gutter) 0;
  }

  .repertoire__fiche > .artiste-bloc:last-of-type {
    margin-bottom: clamp(40px, 5vw, 64px);
  }

  .repertoire__fiche .artiste-cta {
    margin-top: auto;
  }

  .repertoire__retour {
    display: none;
  }
}

.artiste-tete__titre {
  margin: 14px 0 0;
  font: 400 clamp(2.2rem, 4.4vw, 4.4rem)/1 var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.artiste-tete__meta {
  margin: 14px 0 0;
  color: var(--mur-muted);
  font-size: 1.05rem;
}

.artiste-bloc {
  margin-top: clamp(36px, 4vw, 56px);
}

.artiste-lieux ul {
  border-color: var(--mur-ligne);
}

.artiste-lieux li {
  border-color: var(--mur-ligne);
}

.artiste-lieux a:hover,
.artiste-lieux a:focus-visible {
  background: var(--mur-survol);
}

.artiste-lieux .atlas__adresse {
  color: var(--mur-muted);
}

.artiste-lieux .atlas__fleche {
  color: var(--mur-faint);
}

@media (min-width: 800px) {
  .artiste-lieux ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    column-gap: clamp(20px, 3vw, 48px);
    border-top: 0;
  }

  .artiste-lieux li {
    border-top: 1px solid var(--mur-ligne);
  }
}

/* vers la page du groupe sur rockinlehavre.com : bandeau noir en fin de fiche */
.artiste-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin: clamp(40px, 5vw, 64px) calc(var(--gutter) * -1) 0;
  padding: clamp(28px, 3.4vw, 44px) var(--gutter);
  background: #0c0c0d;
  border-top: 4px solid var(--red);
}

.artiste-cta__titre {
  margin: 0;
  font: 700 clamp(1.2rem, 1.8vw, 1.6rem)/1.15 var(--f-title);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.artiste-cta__txt {
  margin: 8px 0 0;
  color: #b9b7b2;
  font-size: 1.02rem;
}

/* ligne sans numéro : nom + description | flèche */
.atlas__lieu--sans-n {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .repertoire__lettres button {
    transition: none;
  }
}
/* ------------------------------------------------------------------
 * Agrandissement d'un document de la salle (lightbox) — sans animation
 * ------------------------------------------------------------------ */
.oeuvre-page__zoom {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

/* pas de contour rouge autour de l'œuvre (choix utilisateur) : au clavier, le voile « Voir en grand » signale le focus */
.oeuvre-page__zoom:focus,
.oeuvre-page__zoom:focus-visible {
  outline: none;
}

.oeuvre-page__zoom img {
  display: block;
}

html.lb-ouverte {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  /* cimaise des salles */
  background: var(--mur);
  color: var(--mur-texte);
  --muted: var(--mur-muted);
}

.lightbox::backdrop {
  background: var(--mur);
}

.lightbox__scene {
  position: absolute;
  inset: 72px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  align-content: safe center;
  padding: 24px 32px;
  overflow-y: auto;
}

/* en-tête : identité du site | salle et exposition | fermer */
.lightbox__tete {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: 72px;
  padding: 0 14px 0 clamp(14px, 3vw, 40px);
  background: #0b0b0c;
  border-bottom: 3px solid var(--red);
}

.lightbox__marque {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
}

.lightbox__marque img {
  width: auto;
  height: 50px;
}

.lightbox__site {
  padding-left: 14px;
  border-left: 2px solid var(--red);
  font: 500 .72rem/1.15 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ecebe7;
  white-space: nowrap;
}

.lightbox__ou {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lightbox__salle {
  overflow: hidden;
  color: var(--red);
  font: 600 .74rem/1.2 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lightbox__expo {
  overflow: hidden;
  color: #fff;
  font: 400 1.35rem/1 var(--f-display);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* cadre noir + marie-louise, comme dans la salle ; l'œuvre entière, jamais recadrée */
.lightbox__cadre {
  grid-column: 2;
  padding: clamp(12px, 1.6vw, 26px);
  background: #f7f5f0;
  border: 8px solid #0b0b0c;
  box-shadow: var(--ombre-cadre);
}

.lightbox__oeuvre {
  position: relative;
}

.lightbox__img {
  display: block;
  /* place du cartel (17rem + 28px) de chaque côté, pour garder le cadre centré */
  max-width: calc(100vw - 34rem - 190px);
  max-height: calc(100dvh - 210px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .22);
}

.lightbox {
  --text: var(--mur-texte);
  --faint: var(--mur-faint);
  --line: var(--mur-ligne);
}

/* cartel de la lightbox : à droite de l'œuvre, calé en bas du cadre ; le cadre reste au centre de la page */
.lightbox__cartel {
  grid-column: 3;
  align-self: end;
  justify-self: start;
  width: min(17rem, 100%);
  margin-left: 28px;
}

/* « Fermer » + rond ✕, tout le bloc est cliquable */
.lightbox__fermer {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: #ecebe7;
  font: 600 .74rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(12, 12, 13, .8);
  color: #fff;
  font: 400 1.3rem/1 var(--f-title);
  letter-spacing: 0;
  transition: background-color .15s, border-color .15s;
}

.lightbox__fermer:hover .lightbox__btn,
.lightbox__fermer:focus-visible .lightbox__btn {
  background: var(--red);
  border-color: var(--red);
}

.lightbox__fermer:hover {
  color: #fff;
}

/* < 1000 px : cartel sous l'œuvre */
@media (max-width: 999px) {
  .lightbox__scene {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .lightbox__cadre,
  .lightbox__cartel {
    grid-column: 1;
  }

  .lightbox__cartel {
    justify-self: center;
    width: min(30rem, 100%);
    margin: 18px 0 0;
  }

  .lightbox__img {
    max-width: calc(100vw - 132px);
    max-height: calc(100dvh - 300px);
  }
}


@media (max-width: 719px) {
  .lightbox__tete {
    height: 60px;
    gap: 12px;
  }

  .lightbox__marque img {
    height: 40px;
  }

  .lightbox__site {
    display: none;
  }

  .lightbox__expo {
    font-size: 1.05rem;
  }

  .lightbox__scene {
    inset: 60px 0 0;
    padding: 16px 8px;
  }


  .lightbox__cadre {
    padding: 10px;
    border-width: 6px;
  }

  .lightbox__img {
    max-width: calc(100vw - 48px);
    max-height: calc(100dvh - 240px);
  }
}

/* ------------------------------------------------------------------
 * Cartel « de musée » (salle et lightbox) : étiquette blanche, petit filet rouge
 * ------------------------------------------------------------------ */
.cartel-musee {
  position: relative;
  padding: 16px 16px 14px;
  background: #fbfaf7;
  color: #1b1b1d;
  font-size: .84rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 16px -8px rgba(0, 0, 0, .55);
}

.cartel-musee::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  width: 28px;
  height: 3px;
  background: var(--red);
}

.cartel-musee > * {
  margin: 0;
}

.cartel-musee__meta {
  margin-bottom: 6px;
  color: #4f4d49;
  font: 500 .7rem/1.4 var(--f-title);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cartel-musee__nom {
  font: 600 1.15rem/1.15 var(--f-title);
  letter-spacing: 0;
  text-transform: none;
}

.cartel-musee__titre {
  margin-top: 4px;
  font: 500 .95rem/1.25 var(--f-title);
}

.cartel-musee__texte {
  margin-top: 10px;
  color: #33312e;
  white-space: pre-line;
}

.cartel-musee__pied {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e2dfd8;
  color: #6b6964;
  font-size: .74rem;
}

/* lien discret « En savoir plus sur <groupe> » sous le crédit (un seul groupe associé) */
.cartel-musee__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--red);
  font: 600 .68rem/1.3 var(--f-title);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

.cartel-musee__cta svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.cartel-musee__cta:hover,
.cartel-musee__cta:focus-visible {
  color: #a8112a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* administrateur connecté : lien discret vers la fiche de l'archive dans le back-office */
.cartel-musee__modifier {
  display: table;
  margin: 8px 0 -4px auto;
  padding: 2px 6px;
  border: 1px solid transparent;
  color: #9a9893;
  font: 500 .66rem/1.4 var(--f-title);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

.cartel-musee__modifier:hover,
.cartel-musee__modifier:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

/* administrateur : fiche du back-office en fenêtre, par-dessus la page */
.modale-admin {
  width: min(1500px, 100vw - 32px);
  max-width: none;
  height: calc(100dvh - 32px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: #0c0c0d;
  color: #ecebe7;
  border: 0;
  border-top: 3px solid var(--red);
}

.modale-admin[open] {
  display: flex;
  flex-direction: column;
}

.modale-admin::backdrop {
  background: rgba(0, 0, 0, .75);
}

.modale-admin__tete {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.modale-admin__titre {
  margin-right: auto;
  font: 600 .9rem/1.2 var(--f-title);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.modale-admin__page,
.modale-admin__fermer {
  padding: 8px 12px;
  background: transparent;
  color: #ecebe7;
  border: 1px solid #3a3a3f;
  cursor: pointer;
  font: 600 .78rem/1 var(--f-title);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.modale-admin__page:hover,
.modale-admin__page:focus-visible,
.modale-admin__fermer:hover,
.modale-admin__fermer:focus-visible {
  background: var(--red);
  border-color: var(--red);
}

.modale-admin__cadre {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
}

@media (max-width: 719px) {
  .modale-admin {
    width: 100vw;
    height: 100dvh;
  }
}

/* salle : étiquette un peu plus grande, à côté du cadre */
.oeuvre-page .cartel-musee {
  max-width: 22rem;
  font-size: .9rem;
}

.oeuvre-page .cartel-musee__nom {
  font-size: 1.3rem;
}

/* filigrane (config.js : filigrane) : en bas à droite de l'image, ne gêne pas les clics */
.oeuvre-page__zoom,
.lightbox__oeuvre {
  position: relative;
}

/* archives : pas de menu « enregistrer l'image » au toucher long (iOS) */
.oeuvre-page__cadre img,
.lightbox__oeuvre img,
.planche img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* version blanche ou noire choisie d'après l'œuvre : invisible tant que le choix n'est pas fait */
.filigrane:not(.is-pret) {
  visibility: hidden;
}

.oeuvre-page__zoom .filigrane,
.lightbox__oeuvre .filigrane {
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: 70px;
  height: auto;
  max-height: none;
  box-shadow: none;
  opacity: .35;
  pointer-events: none;
  user-select: none;
}

/* salle : voile au survol de l'œuvre, « Voir en grand » → lightbox (sur l'image seulement, pas la marie-louise) */
.oeuvre-page__voir {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 13, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.oeuvre-page__voir > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
  font: 600 .8rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.oeuvre-page__voir svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.oeuvre-page__zoom:hover .oeuvre-page__voir,
.oeuvre-page__zoom:focus-visible .oeuvre-page__voir {
  opacity: 1;
}

/* Archive vidéo : la vignette prend toute la largeur disponible (--ratio = largeur / hauteur), bouton lecture permanent */
.oeuvre-page__cadre--video {
  width: min(100%, calc((100svh - var(--header-h) - 200px) * var(--ratio)));
}

.oeuvre-page__cadre--video .oeuvre-page__zoom,
.oeuvre-page__cadre--video img {
  width: 100%;
}

.oeuvre-page__cadre--video img {
  max-height: none;
}

/* lecteur dans la lightbox, à la place de l'image : mêmes limites que .lightbox__img, plus large sur petit écran */
.lightbox--video .lightbox__oeuvre {
  display: none;
}

.lightbox__video {
  display: block;
  width: min(calc(100vw - 34rem - 190px), calc((100dvh - 210px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 0;
}

.lightbox__youtube {
  margin: 12px 0 0;
  font-size: .9rem;
}

.oeuvre-page__youtube {
  margin: 14px 0 0;
  font-size: .9rem;
}

.icone-lecture {
  fill: currentColor;
}

.oeuvre__img {
  position: relative;
}

.video-pastille {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: var(--red);
  color: #fff;
  pointer-events: none;
}

.video-pastille svg {
  width: 24px;
  height: 24px;
}

/* écrans tactiles (pas de survol) : petite pastille permanente en haut à droite, sans voile */
@media (hover: none) {
  .oeuvre-page__voir {
    inset: 8px 8px auto auto;
    background: none;
    opacity: 1;
  }

  .oeuvre-page__voir > span {
    padding: 8px 10px;
    font-size: .66rem;
  }

  .oeuvre-page__voir svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oeuvre-page__voir {
    transition: none;
  }
}

/* Salle : « Programme » fixe en haut à droite, juste sous la barre du haut → programme de l'exposition.
   Au-dessus du panneau (z-index) pour le refermer d'un second clic. */
.salle-programme {
  position: fixed;
  z-index: 31;
  top: calc(var(--header-h) + 14px);
  right: clamp(10px, 1.6vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--red);
  background: rgba(12, 12, 13, .88);
  color: #fff;
  font: 600 .74rem/1 var(--f-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: background-color .15s;
}

.salle-programme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.salle-programme:hover,
.salle-programme[aria-expanded="true"] {
  background: var(--red);
}

/* programme : salle en cours */
.sommaire__salles a[aria-current="page"] .t,
.sommaire__salles a[aria-current="page"] .n {
  color: var(--red);
}

/* Le lecteur reprend les limites de .lightbox__img sous la largeur où le cartel passe dessous */
@media (max-width: 999px) {
  .lightbox__video {
    width: min(calc(100vw - 132px), calc((100dvh - 300px) * 16 / 9));
  }
}

@media (max-width: 719px) {
  .lightbox__video {
    width: calc(100vw - 48px);
  }
}

/* Bouton lecture des archives vidéo : toujours visible, au centre (y compris sur écran tactile) */
.oeuvre-page__voir.oeuvre-page__voir--video {
  inset: 0;
  background: none;
  opacity: 1;
}

.oeuvre-page__voir--video .icone-lecture {
  stroke: none;
  fill: currentColor;
}

/* Vidéo : pas de cadre ni de marie-louise, l'image nue façon écran de projection (lueur légère sur le mur) */
.oeuvre-page__cadre--video,
.lightbox--video .lightbox__cadre,
.planche .oeuvre__img--video {
  padding: 0;
  background: #000;
  border: 0;
  box-shadow: 0 0 0 1px #000, 0 0 70px rgba(255, 255, 255, .1);
}

.planche .oeuvre__img--video:hover {
  box-shadow: 0 0 0 1px var(--red), 0 0 70px rgba(255, 255, 255, .14);
}

.video-pastille {
  width: auto;
  height: auto;
  gap: 6px;
  padding: 8px 12px 8px 8px;
  font: 600 .72rem/1 var(--f-title);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.video-pastille svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Livre d'or (app.js ; refonte 10/11/2026 d'après une maquette de l'utilisateur) : page livre-or/ (livreOrHTML :
   messages | formulaire ≥ 1000 px) et bandeau en bas de la page d'une expo (livreOrBrefHTML : titre, boutons,
   3 derniers messages). Messages = cartes sombres .livre-carte (carteLivreHTML), guillemet rouge, pied avec initiale.
   ========================================================================== */
.livre-or,
.livre-bref {
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(72px, 8vw, 120px);
  background: #0c0c0d;
  color: #ecebe7;
  border-top: 1px solid #1d1d20;
}

/* titre : petit trait rouge au-dessus, BBH Bogle, phrase grise dessous */
.livre-or__titre,
.livre-bref__titre {
  margin: 0;
  font: 400 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--f-display);
  text-transform: uppercase;
}

.livre-or__titre::before,
.livre-bref__titre::before {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--red);
}

.livre-or__intro,
.livre-bref__intro {
  margin: 12px 0 0;
  color: #9d9b96;
  font-size: 1rem;
  line-height: 1.5;
}

.livre-or__tete {
  max-width: 46rem;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.livre-bref__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(24px, 2.6vw, 36px);
}

.livre-bref__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.livre-bref__actions .btn-primaire {
  margin-top: 0;
  min-height: 44px;
  font-size: .8rem;
}

.livre-bref__actions .btn-primaire--contour {
  background: transparent;
  box-shadow: inset 0 0 0 1px #4a4a50;
}

.livre-bref__actions .btn-primaire--contour:hover {
  background: #fff;
  color: #0b0b0d;
  box-shadow: inset 0 0 0 1px #fff;
}

.livre-bref__actions .btn-primaire svg {
  width: 16px;
  height: 16px;
}

/* listes de cartes */
.livre-or__liste,
.livre-bref__liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .livre-bref__liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.livre-carte {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 22px 22px 18px;
  background: #151517;
  border: 1px solid #242428;
  border-radius: 3px;
}

.livre-carte[hidden] {
  display: none;
}

.livre-carte__guillemet {
  height: 30px;
  color: var(--red);
  font: 400 3.4rem/.9 var(--f-display);
}

.livre-carte__texte {
  flex: 1;
  margin: 14px 0 22px;
  color: #ecebe7;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.livre-carte__texte p {
  margin: 0;
}

.livre-carte--court .livre-carte__texte { /* message très court : en grand */
  font: 600 clamp(1.6rem, 2.2vw, 2rem)/1.2 var(--f-title);
}

.livre-carte__pied {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #26262a;
}

.livre-carte__initiale {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2a2a2e;
  color: #ecebe7;
  font: 600 .85rem/1 var(--f-title);
}

.livre-carte__qui {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.livre-carte__qui b {
  font: 600 .88rem/1.2 var(--f-title);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.livre-carte__meta {
  color: #8f8d88;
  font-size: .8rem;
  line-height: 1.35;
}

.livre-carte__meta a {
  color: #c9c7c1;
  text-decoration: none;
}

.livre-carte__meta a:hover,
.livre-carte__meta a:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

/* page livre-or/ : messages | formulaire */
.livre-or__corps {
  display: grid;
  gap: clamp(28px, 3vw, 44px);
  align-items: start;
}

@media (min-width: 1000px) {
  .livre-or__corps {
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  }

  .livre-or__form {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.livre-or__plus {
  margin-top: 24px;
}

.livre-or__vide {
  margin: 0;
  padding: 28px 24px;
  border: 1px dashed #3a3a3f;
  border-radius: 3px;
  color: #b9b7b1;
  font-size: 1.05rem;
}

.livre-or__form {
  margin-top: 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.contact-form select { /* comme les champs du formulaire (choix de l’exposition, livre d’or commun) */
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #3a3a40;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--f-text);
  letter-spacing: 0;
  text-transform: none;
}

.contact-form select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
