/* Hortense Godfroy — œuvre : tableau, prix, bouton, formulaire CF7. */
.hg-oeuvre-fiche { width: 100%; }
.hg-oeuvre-details { width: 100%; border-collapse: collapse; border-spacing: 0; background: transparent; border: 0; }
.hg-oeuvre-details th, .hg-oeuvre-details td { width: 50%; text-align: left; vertical-align: top; padding: 17px 6px; color: #010101; font-size: clamp(14px, 1.25vw, 16px); line-height: 1.5; border: 0; border-bottom: 1px solid #d5dade; background: transparent; }
.hg-oeuvre-details th { font-weight: 700; }
.hg-oeuvre-details td { font-weight: 400; }
.hg-oeuvre-achat-ligne { display: flex; align-items: center; justify-content: flex-end; gap: clamp(24px, 4vw, 60px); margin-top: 44px; flex-wrap: wrap; }
.hg-oeuvre-prix { color: #036986;  font-size: clamp(36px, 5vw, 46px); font-weight: 700; white-space: nowrap; line-height: 1.1; }
.hg-oeuvre-acheter { display: inline-flex; justify-content: center; align-items: center; text-align: center; padding: 10px 40px; min-height: 44px; border-radius: 999px; color: #fff !important; background: #036986; font-size: clamp(14px, 1.5vw, 18px);  font-weight: 600; text-decoration: none !important; border: 1px solid #036986; transition: background-color .2s ease, box-shadow .2s ease; }
.hg-oeuvre-acheter:hover, .hg-oeuvre-acheter:focus-visible { background: #02536b; color: #fff !important; box-shadow: 0 6px 20px rgba(3,105,134,.16); }
.hg-oeuvres-cf7-wrap { margin: 18px 0; }
.hg-oeuvres-cf7-wrap label { display: block; margin-bottom: 7px; font-weight: 600; }
/* Champ multisélection natif : reste fonctionnel lorsque JS est désactivé. */
select.hg-oeuvres-select { display: block; width: 100%; min-height: 160px; padding: 8px; border: 1px solid #cbd7dd; border-radius: 8px; color: #010101; background: #fff; }
select.hg-oeuvres-select option { padding: 9px 10px; }
.hg-oeuvres-aide { font-size: 12px; color: #58656a; margin: 7px 0 0; }
/* Enhancement : le select CF7 est conservé pour la soumission/validation. */
select.hg-oeuvres-select.hg-enhanced-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; opacity: 0 !important; }
.hg-oeuvres-picker { background: #fff; border: 1px solid #cbd7dd; border-radius: 10px; padding: 14px; color: #010101; }
.hg-oeuvres-picker input.hg-oeuvres-search { display: block; width: 100%; padding: 11px 12px; border: 1px solid #d6dde1; border-radius: 7px; margin-bottom: 10px; background: #fff; color: #010101; }
.hg-oeuvres-counter { display: block; color: #036986; font-weight: 700; font-size: 12px; margin: 0 0 10px; }
.hg-oeuvres-picker-list { max-height: 250px; overflow-y: auto; overscroll-behavior: contain; }
.hg-oeuvres-picker-item { display: flex !important; gap: 10px; align-items: start; font-size: 14px; font-weight: 400 !important; padding: 10px 7px; margin: 0 !important; border-bottom: 1px solid #edf1f3; cursor: pointer; }
.hg-oeuvres-picker-item:last-child { border: 0; }
.hg-oeuvres-picker-item[hidden] { display: none !important; }
.hg-oeuvres-picker-item:hover { background: #f2f8fa; }
.hg-oeuvres-picker-item input { margin-top: 3px; accent-color: #036986; }
.hg-oeuvres-no-result { font-size: 13px; color: #667176; padding: 12px; }
@media (max-width: 767px) {
  .hg-oeuvre-details th, .hg-oeuvre-details td { padding: 12px 6px; font-size: 14px; }
  .hg-oeuvre-details th { width: 55%; }
  .hg-oeuvre-details td { width: 45%; }
  .hg-oeuvre-achat-ligne { margin-top: 28px; gap: 20px; justify-content: center; }
  .hg-oeuvre-acheter { flex: 1 1 100%; }
}

/* HG 1.4.0 : une seule œuvre, en lecture seule dans le formulaire CF7. */
.hg-oeuvre-demande-selection {
  display: block;
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid #036986;
  background: #f3f8fa;
  color: #1e1e1e;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
}
.hg-oeuvre-demande-selection strong { color: #036986; font-weight: 700; }
.hg-oeuvre-demande-error { color: #a32d2d; margin: 0 0 16px; }
