/* HG Home Slider – isolated styles. */
.hghs-wrapper, .hghs-wrapper * { box-sizing: border-box; }
.hghs-wrapper { width: 100%; max-width: 100%; }
.hghs-slider { position: relative; width: 100%; isolation: isolate; border-radius: 12px; overflow: hidden; background: transparent; color: #fff; }
.hghs-slider--portrait { display: none; }
.hghs-track { width: 100%; position: relative; aspect-ratio: var(--hghs-current-aspect, 16 / 9); }
.hghs-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity var(--hghs-duration, 400ms) ease, visibility var(--hghs-duration, 400ms) ease; pointer-events: none; }
.hghs-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
.hghs-slide-content { position: relative; display: block; height: 100%; width: 100%; text-decoration: none !important; color: inherit !important; }
.hghs-picture { display: block; width: 100%; height: 100%; }
.hghs-image { display: block; width: 100% !important; height: 100% !important; object-fit: contain; object-position: center; background: transparent; }
.hghs-caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: block; padding: 32px 74px 24px; background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,0)); color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(20px, 2.4vw, 36px); line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
/* Titre seulement au survol sur ordinateur et au focus clavier. */
@media (hover: hover) and (pointer: fine) {
  .hghs-slide-content:hover .hghs-caption { opacity: 1; visibility: visible; transform: translateY(0); }
}
.hghs-slide-content:focus-visible .hghs-caption { opacity: 1; visibility: visible; transform: translateY(0); }
.hghs-arrow { appearance: none; position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.6) !important; border-radius: 50%; background: rgba(30,30,30,.55) !important; color: #fff !important; cursor: pointer; transition: background .2s ease; }
.hghs-arrow span { font: 38px/1 Georgia,serif; margin-top: -6px; }
.hghs-arrow:hover { background: rgba(3,105,134,.9) !important; }
.hghs-arrow:disabled { opacity: .35; cursor: default; }
.hghs-prev { left: 18px; }
.hghs-next { right: 18px; }
.hghs-dots { position: absolute; z-index: 5; bottom: 16px; right: 18px; display: flex; gap: 8px; align-items: center; }
.hghs-dot { appearance: none; display: inline-block; min-width: 10px; min-height: 10px; width: 10px; height: 10px; padding: 0 !important; border: 1px solid rgba(255,255,255,.85) !important; border-radius: 99px; background: rgba(255,255,255,.35) !important; cursor: pointer; transition: background .2s ease, width .2s ease; }
.hghs-dot.is-active { background: #fff !important; width: 24px; }
.hghs-slider button:focus-visible, .hghs-slide-content:focus-visible { outline: 3px solid #78c7d7 !important; outline-offset: -4px; }
@media (max-width: 767px) {
  .hghs-slider--paysage { display: none; }
  .hghs-slider--portrait { display: block; }
  .hghs-slider { border-radius: 0; }
  .hghs-caption { padding: 38px 48px 32px 20px; font-size: clamp(19px, 5vw, 28px); }
  .hghs-arrow { width: 36px; height: 36px; }
  .hghs-arrow span { font-size: 30px; }
  .hghs-prev { left: 8px; }
  .hghs-next { right: 8px; }
  .hghs-dots { bottom: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hghs-slide, .hghs-arrow, .hghs-dot, .hghs-caption { transition: none !important; }
}
