/** Hortense Godfroy — Catalogue des œuvres. Couleurs : #035670 / #010101. */
.hg-catalogue, .hg-catalogue * { box-sizing: border-box; }
.hg-catalogue { width: 100%; color: 1E1E1E; }
.hg-catalogue-desktop { display: grid; grid-template-columns: minmax(210px, 334px) minmax(0, 1fr); gap: 30px; align-items: start; }
.hg-catalogue-sidebar { background: #323232; color: #fff; padding: 28px 21px 31px; border-radius: 9px; min-width: 0; }
.hg-sidebar-title { color: #fff !important; font-size: 24px; font-weight: 700; margin: 0 !important; padding: 0 !important; line-height: 1.4; }
.hg-sidebar-rule { height: 3px; width: 40px; background: #035670; margin: 10px 0 20px; }
.hg-sidebar-nav { display: flex; flex-direction: column; align-items: stretch; gap: 1px; }
.hg-catalogue .hg-filter-button { appearance: none; border: 0; background: transparent; color: #fff; padding: 10px 0; margin: 0; width: 100%; display: block; text-align: left; font: inherit; font-size: 16px; line-height: 1.25; font-weight: 400; cursor: pointer; transition: color .15s ease; }
.hg-catalogue .hg-filter-button:hover, .hg-catalogue .hg-filter-button:focus-visible { color: #78cbdf; }
.hg-catalogue .hg-filter-button.is-active { color: #035670; font-weight: 700; }
.hg-filter-count { font-size: .9em; opacity: .82; white-space: nowrap; }
.hg-catalogue-main { min-width: 0; }
.hg-catalogue-header { margin: 4px 0 24px; }
.hg-catalogue-title { margin: 0 0 20px !important; padding: 0 !important; color: #035670 !important; font-size: clamp(30px, 3vw, 42px); font-weight: 800; line-height: 1.2; font-family: Inter, Arial, sans-serif; }
.hg-catalogue-description { font-size: 16px; line-height: 1.5; color: 1E1E1E; white-space: pre-line; }
.hg-catalogue-description:empty { display: none; }
.hg-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 17px; min-width: 0; }
.hg-gallery-card { margin: 0; min-width: 0; text-align: center; }
.hg-gallery-card-link { display: flex; flex-direction: column; align-items: stretch; color: #035670 !important; text-decoration: none !important; }
.hg-gallery-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; background: #f6f4f1; border: 1px solid #c6c6c6; border-radius: 9px; overflow: hidden; }
.hg-gallery-card-image { display: block; width: 100% !important; height: 100% !important; object-fit: contain; object-position: center; background: #f7f5f1; transition: transform .25s ease; }
.hg-gallery-card-link:hover .hg-gallery-card-image, .hg-gallery-card-link:focus-visible .hg-gallery-card-image { transform: scale(1.025); }
.hg-gallery-no-image { color: #6c6c6c; font-family: Georgia, serif; font-size: 42px; letter-spacing: -.08em; opacity: .35; }
.hg-gallery-card-title { display: block; padding: 11px 2px 0; color: #035670; font-size: clamp(14px, 1.25vw, 16px); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.hg-gallery-card-link:hover .hg-gallery-card-title, .hg-gallery-card-link:focus-visible .hg-gallery-card-title {}
.hg-gallery-status { min-height: 0; margin: 12px 0 0; color: #415359; font-size: 13px; line-height: 1.5; }
.hg-gallery-status:empty { display: none; }
.hg-gallery-more-wrap { display: flex; justify-content: center; padding-top: 22px; }
.hg-catalogue button.hg-gallery-more { appearance: none; display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; color: #fff; background: #035670; border: 1px solid #035670; border-radius: 99px; font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s ease; }
.hg-catalogue button.hg-gallery-more:hover { background: #02536a; }
.hg-catalogue button.hg-gallery-more[hidden] { display: none; }
.hg-catalogue button:focus-visible, .hg-gallery-card-link:focus-visible { outline: 3px solid #65c7dc; outline-offset: 3px; }
.hg-catalogue-mobile { display: none; }
.hg-gallery-error { color: #a32d2d; }
@media (min-width: 768px) and (max-width: 1050px) {
  .hg-catalogue-desktop { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
  .hg-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hg-catalogue-desktop { display: none; }
  .hg-catalogue-mobile { display: block; }
  .hg-catalogue-mobile-title { text-align: center; font-family: Inter, Arial, sans-serif; font-weight: 800; color: #035670 !important; font-size: clamp(28px, 7vw, 38px); margin: 0 0 24px !important; padding: 0 !important; }
  .hg-mobile-accordion { display: flex; flex-direction: column; gap: 12px; }
  .hg-accordion-item { min-width: 0; }
  .hg-accordion-heading { padding: 0 !important; margin: 0 !important; }
  .hg-catalogue button.hg-accordion-toggle { appearance: none; width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; border: 0; border-radius: 10px; background: #323232; color: #fff; cursor: pointer; text-align: left; font-size: clamp(14px, 4.6vw, 18px); font-weight: 600; line-height: 1.35; }
  .hg-catalogue button.hg-accordion-toggle[aria-expanded="true"] { background: #035670; }
  .hg-accordion-arrow { width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s ease; flex: 0 0 auto; margin-right: 3px; }
  .hg-accordion-toggle[aria-expanded="true"] .hg-accordion-arrow { transform: rotate(225deg) translate(-2px, -2px); }
  .hg-accordion-panel { padding: 16px 0 10px; }
  .hg-accordion-panel[hidden] { display: none !important; }
  .hg-accordion-description { font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
  .hg-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hg-gallery-media { aspect-ratio: 1 / 1; border-radius: 10px; }
  .hg-gallery-card-title { font-size: clamp(18px, 4.6vw, 22px); padding-top: 16px; }
  .hg-gallery-more-wrap { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-gallery-card-image, .hg-accordion-arrow { transition: none; }
}

/* HG 1.4.0 : flèches avec tige (fermée → / ouverte ↓), comme la référence. */
@media (max-width: 767px) {
  .hg-accordion-arrow {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-right: 0;
    border: 0;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform .18s ease;
  }
  .hg-accordion-arrow::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 9px;
    width: 17px;
    height: 2px;
    border: 0;
    border-radius: 1px;
    background: currentColor;
  }
  .hg-accordion-arrow::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 1px;
    width: 9px;
    height: 9px;
    box-sizing: border-box;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .hg-accordion-toggle[aria-expanded="true"] .hg-accordion-arrow {
    transform: rotate(90deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hg-accordion-arrow { transition: none; }
}
