/* ============================================================
 *  ecriVOSGES — Compléments pour les expositions 2 à 4
 *  Charge commun/expositions.css avant ce fichier.
 * ============================================================ */

.expo-pottecher {
  --expo-bordeaux: #365b3d;
  --expo-bordeaux-fonce: #233d29;
  --expo-creme: #edf1e5;
  --expo-papier: #fffefa;
  --expo-sable: #bdc6a9;
  --expo-or: #a9854a;
}

.expo-erckmann-chatrian {
  --expo-bordeaux: #2b5662;
  --expo-bordeaux-fonce: #183943;
  --expo-creme: #e7f0ef;
  --expo-papier: #fffefa;
  --expo-sable: #b5c8c7;
  --expo-or: #a87a48;
}

.expo-images-epinal {
  --expo-bordeaux: #315d91;
  --expo-bordeaux-fonce: #1c416e;
  --expo-creme: #edf1f6;
  --expo-papier: #fffefa;
  --expo-sable: #bdc8d7;
  --expo-or: #d18b25;
}

.expo-pottecher .expo-hero {
  background:
    linear-gradient(110deg, rgba(255,254,250,.985), rgba(230,239,222,.95)),
    repeating-linear-gradient(90deg, transparent, transparent 13px, rgba(54,91,61,.025) 14px);
}

.expo-erckmann-chatrian .expo-hero {
  background:
    linear-gradient(110deg, rgba(255,254,250,.985), rgba(224,239,239,.95)),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(43,86,98,.025) 12px);
}

.expo-images-epinal .expo-hero {
  background:
    linear-gradient(110deg, rgba(255,254,250,.985), rgba(231,238,248,.95)),
    repeating-linear-gradient(90deg, transparent, transparent 11px, rgba(49,93,145,.025) 12px);
}

/* Scène typographique de repli pour Pottecher ---------------- */
.expo-hero-scenographie {
  position: relative;
  min-height: 448px;
  overflow: hidden;
  background:
    linear-gradient(to top, #233a27 0 20%, transparent 20%),
    radial-gradient(ellipse at 50% 72%, #7d9c60 0 13%, transparent 14%),
    radial-gradient(ellipse at 30% 70%, #577b4c 0 22%, transparent 23%),
    radial-gradient(ellipse at 75% 68%, #456c42 0 28%, transparent 29%),
    linear-gradient(#c8d6c5 0 43%, #79916f 44% 100%);
}

.expo-hero-scenographie::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255,255,255,.55);
}

.expo-rideau-gauche,
.expo-rideau-droit {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 37%;
  background: repeating-linear-gradient(90deg, #5a1f1d 0 16px, #6c2824 17px 31px);
  box-shadow: 0 0 20px rgba(0,0,0,.4);
}

.expo-rideau-gauche { left: 0; transform: skewX(-3deg) translateX(-42%); transform-origin: top; }
.expo-rideau-droit { right: 0; transform: skewX(3deg) translateX(42%); transform-origin: top; }
.expo-scene-foret > div { position: absolute; z-index: 3; right: 18px; bottom: 21px; left: 18px; padding: 9px; color: #fff; background: rgba(24,32,23,.78); text-align: center; }
.expo-scene-foret b,
.expo-scene-foret i { display: block; font-family: "Cormorant Garamond", Georgia, serif; }
.expo-scene-foret b { font-size: 1.35rem; }
.expo-scene-foret i { color: #d9c18d; font-size: 1rem; font-style: italic; }

.expo-cartouche-scene > strong { font-size: 2rem; }
.expo-citation-devise p { font-size: 1.7rem; text-align: center; }

/* Deux portraits, une signature ------------------------------ */
.expo-trait-union { color: var(--expo-or); }
.expo-hero-duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 0;
  align-items: center;
  min-width: 0;
  min-height: 448px;
  padding: 25px 17px;
  background: #203f47;
}

.expo-hero-duo::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.32); pointer-events: none; }
.expo-hero-duo figure { position: relative; min-width: 0; margin: 0; }
.expo-hero-duo img,
.expo-hero-duo figure > span { display: flex; width: 100%; height: 285px; align-items: center; justify-content: center; object-fit: cover; object-position: center top; background: #d9d0bf; color: #2b5662; font-family: Georgia, serif; font-size: 5rem; filter: sepia(.18) contrast(1.05); }
.expo-hero-duo > b { position: relative; z-index: 2; color: #d5b27e; font-family: Georgia, serif; font-size: 2.2rem; text-align: center; }
.expo-hero-duo figcaption { padding: 10px 5px 0; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.25; text-align: center; }
.expo-hero-duo figcaption small { color: #c5d3d5; font-size: .62rem; font-weight: 400; letter-spacing: .09em; }
.expo-cartouche-nuit { color: #fff; background: #25363a; border-top-color: #7395a0; }
.expo-cartouche-nuit .expo-mini-titre,
.expo-cartouche-nuit > strong { color: #d5b27e; }
.expo-cartouche-nuit p { color: #e5ecec; }

/* Planche typographique des Images d'Épinal ------------------ */
.expo-planche-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr) auto;
  gap: 7px;
  min-width: 0;
  min-height: 448px;
  padding: 19px 17px 15px;
  background: #dfd1af;
  border-left: 7px solid #315d91;
}

.expo-planche-hero > div {
  position: relative;
  display: flex;
  min-height: 102px;
  align-items: flex-end;
  padding: 13px 9px 11px;
  overflow: hidden;
  border: 3px double #294461;
  background:
    radial-gradient(circle at 50% 43%, rgba(255,255,255,.8) 0 11px, transparent 12px),
    radial-gradient(ellipse at 50% 83%, rgba(255,255,255,.63) 0 27px, transparent 28px),
    var(--case-couleur, #cf6450);
  color: #183653;
  text-align: center;
}

.expo-planche-hero > div:nth-child(2) { --case-couleur: #e4b74e; }
.expo-planche-hero > div:nth-child(3) { --case-couleur: #6ca4a0; }
.expo-planche-hero > div:nth-child(4) { --case-couleur: #c5829b; }
.expo-planche-hero > div:nth-child(5) { --case-couleur: #8fa65e; }
.expo-planche-hero > div:nth-child(6) { --case-couleur: #d9894e; }
.expo-planche-hero span { position: absolute; top: 4px; left: 6px; color: rgba(20,48,71,.65); font-family: Georgia, serif; font-size: .7rem; }
.expo-planche-hero b { position: relative; z-index: 2; width: 100%; padding: 3px 2px; background: rgba(255,249,231,.82); font-family: Georgia, serif; font-size: .78rem; }
.expo-planche-hero > p { grid-column: 1 / -1; margin: 0; padding: 3px; color: #315d91; font-family: Georgia, serif; font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-align: center; }
.expo-questions { margin: 9px 0 0; padding: 0; list-style: none; }
.expo-questions li { padding: 8px 0; color: var(--expo-bordeaux); border-bottom: 1px solid #d0d8e2; font-family: Georgia, serif; font-size: 1.08rem; font-weight: 700; }

/* Nouvelle page d'entrée ------------------------------------- */
.expo-accueil-hero-suite { position: relative; overflow: hidden; }
.expo-accueil-hero-suite::after { content: "4"; position: absolute; right: 20px; bottom: -32px; color: rgba(122,21,18,.055); font-family: Georgia, serif; font-size: 10rem; font-weight: 700; line-height: 1; }
.expo-accueil-hero-suite > * { position: relative; z-index: 1; }

.expo-salles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.expo-salle { --salle-accent: #7a1512; display: grid; grid-template-columns: 38% minmax(0, 1fr); min-height: 310px; overflow: hidden; background: #fffdf8; border: 1px solid #cebea0; border-top: 5px solid var(--salle-accent); box-shadow: 0 8px 20px rgba(65,43,25,.09); }
.expo-salle-visuel { position: relative; display: flex; min-height: 305px; align-items: center; justify-content: center; overflow: hidden; background: color-mix(in srgb, var(--salle-accent) 15%, #e9dfcb); text-decoration: none; }
.expo-salle-visuel img { width: 100%; height: 100%; min-height: 305px; object-fit: cover; object-position: center top; filter: sepia(.12) contrast(1.04); transition: transform .4s ease; }
.expo-salle:hover .expo-salle-visuel img { transform: scale(1.025); }
.expo-salle-visuel .expo-salle-lettre { color: var(--salle-accent); font-family: Georgia, serif; font-size: 6rem; font-weight: 700; }
.expo-salle-visuel .expo-salle-duo-mini { display: flex; align-items: center; color: var(--salle-accent); font-family: Georgia, serif; font-size: 2.7rem; font-weight: 700; }
.expo-salle-visuel .expo-salle-duo-mini b { padding: 0 5px; color: #a9854a; }
.expo-salle-duo-images { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; height: 100%; }
.expo-salle-duo-images img { min-width: 0; object-position: center top; }
.expo-salle-planche-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; width: 74%; padding: 8px; background: #ded0aa; border: 2px solid var(--salle-accent); }
.expo-salle-planche-mini i { aspect-ratio: 1.1; background: #d9634e; border: 1px solid #315d91; }
.expo-salle-planche-mini i:nth-child(2) { background: #e5b743; }
.expo-salle-planche-mini i:nth-child(3) { background: #6fa6a2; }
.expo-salle-planche-mini i:nth-child(4) { background: #c6839c; }
.expo-salle-texte { min-width: 0; align-self: center; padding: 26px 25px; }
.expo-salle-numero { margin: 0 0 2px; color: var(--salle-accent); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.expo-salle h2 { margin: 0 0 6px !important; color: var(--salle-accent); font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; line-height: 1.04; }
.expo-salle h2 a { color: inherit; text-decoration: none; }
.expo-salle-sous-titre { margin: 0 0 13px; color: #725b42; font-family: Georgia, serif; font-size: .86rem; font-style: italic; line-height: 1.35; }
.expo-salle-texte > p:not(.expo-salle-numero):not(.expo-salle-sous-titre):not(.expo-salle-action) { margin: 0; color: #59514a; font-size: .75rem; line-height: 1.5; }
.expo-salle-action { margin: 16px 0 0; }
.expo-salle-action a { color: var(--salle-accent); font-size: .74rem; font-weight: 700; }
.expo-salle-pottecher { --salle-accent: #365b3d; }
.expo-salle-erckmann { --salle-accent: #2b5662; }
.expo-salle-images { --salle-accent: #315d91; }
.expo-salle-daubie { --salle-accent: #7a1512; }

.expo-reserve { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 25px; align-items: center; margin: 27px 0 0; padding: 20px 23px; background: #2e2a27; border-left: 5px solid var(--expo-or); color: #fff; }
.expo-reserve .expo-mini-titre { color: #d3b270; }
.expo-reserve p:last-child { margin: 0; color: #eee9e2; font-size: .8rem; line-height: 1.5; }

@media (max-width: 850px) {
  .expo-salles { grid-template-columns: 1fr; }
  .expo-salle { grid-template-columns: 32% minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .expo-hero-duo,
  .expo-planche-hero,
  .expo-hero-scenographie { min-height: 340px; }
  .expo-hero-duo img,
  .expo-hero-duo figure > span { height: 230px; }
  .expo-reserve { grid-template-columns: 1fr; gap: 7px; }
}

@media (max-width: 520px) {
  .expo-salle { grid-template-columns: 1fr; }
  .expo-salle-visuel,
  .expo-salle-visuel img { min-height: 220px; max-height: 260px; }
  .expo-salle-texte { padding: 23px 21px; }
}
