/* V41 — galerie complète en deux carrousels accessibles. */
body.page-realisation .work-gallery-section {
  padding-block: clamp(26px, 4vw, 48px);
}

body.page-realisation .work-gallery-section > .section-heading {
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

body.page-realisation .work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

body.page-realisation .work-carousel {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 36px rgb(47 44 38 / 7%);
}

body.page-realisation .work-carousel__frame {
  position: relative;
  display: grid;
  aspect-ratio: 1.35;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  background: #e8e4dc;
}

body.page-realisation .work-carousel__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.page-realisation .work-carousel__label {
  position: absolute;
  inset: auto auto 14px 14px;
  padding: 8px 12px;
  background: rgb(39 42 39 / 82%);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.page-realisation .work-carousel__body {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: clamp(16px, 2vw, 24px);
}

body.page-realisation .work-carousel__body h3,
body.page-realisation .work-carousel__body p {
  margin-top: 0;
}

body.page-realisation .work-carousel__body h3 {
  margin-bottom: 7px;
  font-size: clamp(21px, 2vw, 28px);
}

body.page-realisation .work-carousel__body [data-work-caption] {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

body.page-realisation .work-carousel__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

body.page-realisation .work-carousel__controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #cbd0cd;
  border-radius: 50%;
  background: #e5e7e5;
  color: #303531;
  font: 400 22px/1 var(--sans);
  cursor: pointer;
}

body.page-realisation .work-carousel__controls button:hover {
  background: #d8dcda;
}

body.page-realisation .work-carousel__controls button:focus-visible {
  outline: 3px solid #1a5268;
  outline-offset: 3px;
}

body.page-realisation .work-carousel__controls button:disabled {
  cursor: default;
  opacity: .55;
}

@media (max-width: 880px) {
  body.page-realisation .work-gallery-grid {
    grid-template-columns: 1fr;
  }

  body.page-realisation .work-carousel__frame {
    aspect-ratio: 1.55;
  }
}

@media (max-width: 560px) {
  body.page-realisation .work-carousel__frame {
    aspect-ratio: 1.15;
    min-height: 190px;
  }

  body.page-realisation .work-carousel__body {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  body.page-realisation .work-carousel__controls button {
    width: 38px;
    height: 38px;
  }
}
