/* assets/exposition.css
 * Styles de la rubrique Expositions : listing (expositions.php, prefixe
 * .expo-list / .expo-card) et fiche detail (exposition.php, prefixe
 * .expo-detail). Les deux pages la chargent dans <head> via $pageStyleHtml
 * -> evite le FOUC.
 * Meme langage visuel que assets/bibliographie.css.
 */

/* =========================================================================
 * Listing
 * ====================================================================== */

.expo-list{ padding: 36px 0 64px; }

.expo-list__head{ margin-bottom: 26px; }
.expo-list__head h1{
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--navy);
}
.expo-list__intro{
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
}

.expo-list__search{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 20px 0 0;
}
.expo-list__search input{
  flex: 1 1 260px;
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
}
.expo-list__reset{
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}

.expo-list__filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.expo-list__chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
}
.expo-list__chip:hover{ text-decoration: none; filter: brightness(.98); }
.expo-list__chip.is-active{ background: var(--navy); border-color: var(--navy); color: #fff; }
.expo-list__chip-count{ font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }

.expo-list__count{
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

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

.expo-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(13,19,31,.06);
  transition: transform .2s, box-shadow .2s;
}
.expo-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.expo-card__link{ display: block; color: inherit; height: 100%; }
.expo-card__link:hover{ text-decoration: none; }

.expo-card__media{
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5efe2, #ece2cb);
  display: flex;
  align-items: center;
  justify-content: center;
}
.expo-card__placeholder{ font-size: 42px; color: rgba(31,47,74,.20); }
.expo-card__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expo-card__body{ padding: 16px 18px 20px; }
.expo-card__kicker{
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.expo-card__title{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.25;
  color: var(--navy);
}
.expo-card__dates{
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #3a3a3a;
}
.expo-card__place{
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.expo-card__excerpt{
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3a3a3a;
}

.expo-list__empty{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.expo-list__empty p{ margin: 0 0 8px; }
.expo-list__empty p:last-child{ margin-bottom: 0; }
.expo-list__empty a{ color: var(--navy); font-weight: 600; }

/* =========================================================================
 * Fiche detail
 * ====================================================================== */

.expo-detail{
  background:
    radial-gradient(circle at top left, rgba(176,138,58,.14), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(31,47,74,.10), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0));
  padding: 30px 0 64px;
}

.expo-detail__breadcrumb{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.expo-detail__breadcrumb a{ color: var(--navy); text-decoration: none; }
.expo-detail__breadcrumb a:hover{ text-decoration: underline; }
.expo-detail__breadcrumb .is-current{ color: var(--muted); }

/* --- Hero ---------------------------------------------------------------- */

.expo-detail__hero{
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 30px rgba(13,19,31,.07);
  margin-bottom: 22px;
}

.expo-detail__visual{
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5efe2, #ece2cb);
  box-shadow: 0 12px 26px rgba(13,19,31,.12);
}
.expo-detail__visual img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.expo-detail__visual-fallback{
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(31,47,74,.22);
}

.expo-detail__eyebrow{
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.expo-detail__title{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--navy);
  line-height: 1.15;
}
.expo-detail__byline{
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #4d4d4d;
  font-size: 15px;
}
.expo-detail__byline > span{ display: inline-flex; }
.expo-detail__byline > span:first-child{ font-weight: 700; color: var(--navy); }
.expo-detail__sep{ color: var(--muted); }

.expo-detail__tags{
  margin: 14px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.expo-detail__tag{
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(31,47,74,.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.expo-detail__tag--soft{
  background: rgba(176,138,58,.18);
  color: #6e5320;
}

.expo-detail__lead{
  margin: 16px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.expo-detail__actions{ margin-top: 18px; }
.expo-detail__btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.expo-detail__btn:hover{ background: var(--navy); color: #fff; text-decoration: none; }

/* --- Blocs --------------------------------------------------------------- */

.expo-detail__facts,
.expo-detail__block{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: 0 10px 22px rgba(13,19,31,.06);
}

.expo-detail__section-title{
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: var(--navy);
}

.expo-detail__factlist{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 26px;
  margin: 0;
}
.expo-detail__factlist > div{ margin: 0; }
.expo-detail__factlist dt{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 2px;
}
.expo-detail__factlist dd{
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}
.expo-detail__factlist dd a{ color: var(--navy); font-weight: 600; }

/* --- Artistes exposes ---------------------------------------------------- */

.expo-detail__people{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.expo-detail__person{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(246,241,231,.5);
  color: inherit;
}
a.expo-detail__person:hover{ text-decoration: none; background: #fff; box-shadow: var(--shadow); }
/* Artiste sans fiche publiee : meme carte, mais pas d'affordance de lien. */
.expo-detail__person.is-static{ background: rgba(246,241,231,.35); }
.expo-detail__person.is-static .expo-detail__person-name{ color: var(--ink); font-weight: 600; }
.expo-detail__person-avatar{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(31,47,74,.09);
}
.expo-detail__person-avatar img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.expo-detail__person-body{ display: flex; flex-direction: column; min-width: 0; }
.expo-detail__person-name{ font-weight: 700; font-size: 14px; color: var(--navy); }
.expo-detail__person-years{ font-size: 12px; color: var(--muted); }

/* --- Listes (oeuvres, expositions liees) --------------------------------- */

.expo-detail__artworks,
.expo-detail__related{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.expo-detail__artworks li,
.expo-detail__related li{ font-size: 15px; line-height: 1.45; }
.expo-detail__artworks a,
.expo-detail__related a{ color: var(--navy); font-weight: 600; text-decoration: none; }
.expo-detail__artworks a:hover,
.expo-detail__related a:hover{ text-decoration: underline; }
.expo-detail__muted{ color: var(--muted); font-size: 13px; margin-left: 8px; }

/* --- Sections redactionnelles -------------------------------------------- */

.expo-detail__sections{
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
.expo-detail__section{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 22px rgba(13,19,31,.06);
}
.expo-detail__section h2{
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: var(--navy);
}

.expo-detail__html{
  color: #2f3742;
  line-height: 1.65;
  font-size: 15px;
}
.expo-detail__html p{ margin: 0 0 10px; }
.expo-detail__html p:last-child{ margin-bottom: 0; }
.expo-detail__html ul,
.expo-detail__html ol{ margin: 4px 0 10px 20px; padding: 0; }
.expo-detail__html a{ color: var(--navy); }
.expo-detail__html img{ max-width: 100%; height: auto; }
.expo-detail__html blockquote{
  margin: 8px 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: #4d4d4d;
}

@media (max-width: 760px){
  .expo-detail__hero{
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .expo-detail__visual{
    max-width: 320px;
    margin: 0 auto;
  }
}
