.notice .page-heading {
  padding-block: clamp(1.5rem, 3.5vw, 2.6rem);
}

.notice-hero__summary {
  gap: 0.25rem 0.45rem;
  font-size: var(--art-font-size-small);
}

.notice-hero__summary span + span::before,
.notice-gallery__caption span + span::before {
  content: " \00B7 ";
}

.notice__main {
  width: min(100%, calc(68rem + (2 * var(--art-container-gutter))));
  padding-inline: var(--art-container-gutter);
  margin-inline: auto;
}

.notice-gallery__stage {
  width: 100%;
}

.notice-gallery__viewport {
  min-height: clamp(18rem, 47vw, 36rem);
  background: var(--color-light-grey);
}

.notice-gallery__image,
.notice-gallery__image picture {
  display: block;
  height: 100%;
}

.notice-gallery__image img {
  width: 100%;
  height: clamp(18rem, 47vw, 36rem);
  object-fit: cover;
  background: var(--color-light-grey);
}

.notice-gallery__slide[hidden] {
  display: none;
}

.notice-gallery__placeholder {
  color: var(--color-text-standard);
  background: var(--color-sky-blue);
}

.notice-gallery__placeholder-icon {
  width: clamp(5rem, 13vw, 9rem);
}

.notice-gallery__control {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: var(--art-touch-target);
  height: var(--art-touch-target);
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--color-text-standard);
  background: var(--color-background);
  border: 0;
  transform: translateY(-50%);
  box-shadow: var(--art-shadow-sm);
}

.notice-gallery__control--previous {
  left: clamp(0.7rem, 2vw, 1.25rem);
}

.notice-gallery__control--next {
  right: clamp(0.7rem, 2vw, 1.25rem);
}

.notice-gallery__counter {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  margin: 0;
  padding: 0.2rem 0.4rem;
  color: var(--color-text-white);
  font-size: 0.75rem;
  background: rgb(0 0 0 / 70%);
}

.notice-gallery__thumbnails {
  gap: 0.55rem !important;
}

.notice-gallery__thumbnail {
  width: clamp(4rem, 8vw, 5.5rem);
  height: clamp(3rem, 6vw, 4rem);
  opacity: 0.72;
  background: var(--color-background);
}

.notice-gallery__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-gallery__thumbnail.is-active,
.notice-gallery__thumbnail[aria-pressed="true"] {
  opacity: 1;
  outline: 0.18rem solid var(--color-navy-blue);
  outline-offset: 0.12rem;
}

.notice-identification {
  margin-bottom: clamp(2rem, 4vw, 3.5rem) !important;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  color: var(--color-text-black) !important;
  background: var(--color-sky-blue) !important;
  border-radius: var(--art-radius-4);
}

.notice-identification h2,
.notice-identification dt,
.notice-identification dd,
.notice-identification .notice-facts__value {
  color: var(--color-text-black) !important;
}

.notice-facts,
.notice-facts__item,
.notice-facts__item dd {
  min-width: 0;
}

.notice-facts__item dt {
  margin-bottom: 0.2rem;
  color: var(--color-text-dark-grey);
  font-size: 0.75rem;
  font-weight: 700;
}

.notice-facts__item dd {
  margin: 0;
  color: var(--color-text-standard);
}

.notice-facts--identification {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.15rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3.5rem);
}

.notice-facts--identification .notice-facts__item dt {
  color: var(--color-text-black);
  font-size: 0.72rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.notice-facts--identification .notice-facts__item--field-nom-bapteme { order: 1; }
.notice-facts--identification .notice-facts__item--field-objet { order: 2; }
.notice-facts--identification .notice-facts__item--field-type-artillerie { order: 3; }
.notice-facts--identification .notice-facts__item--field-num-inv-local { order: 4; }
.notice-facts--identification .notice-facts__item--field-autre-num-inv { order: 5; }
.notice-facts--identification .notice-facts__item--field-detenteur { order: 6; }

.notice-location {
  margin-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}

.notice-location .row {
  --bs-gutter-x: clamp(1rem, 3vw, 2rem);
}

.notice-location__map {
  border-color: var(--color-grey) !important;
}

.notice-location__map .leaflet-container {
  min-height: clamp(14rem, 28vw, 20rem);
}

.notice-facts--location,
.notice-facts--rows {
  display: grid;
  row-gap: 0.55rem;
}

.notice-facts--location .notice-facts__item,
.notice-facts--rows .notice-facts__item {
  display: grid;
  grid-template-columns: minmax(7.5rem, 30%) minmax(0, 1fr);
  align-items: baseline;
  column-gap: clamp(0.8rem, 2vw, 1.5rem);
}

.notice-panel {
  overflow: hidden;
  background: var(--color-background);
  border-color: var(--color-grey) !important;
  border-radius: var(--art-radius-4);
}

.notice-panel__title {
  color: var(--color-text-black);
  background: var(--color-light-blue);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
}

.notice-sections {
  gap: clamp(1rem, 2.5vw, 1.5rem) !important;
}

.notice-dimensions {
  width: 100%;
  margin: 0;
  color: var(--color-text-standard);
  background: var(--color-background);
  border: 1px solid var(--color-grey);
  border-collapse: collapse;
}

.notice-dimensions > :not(caption) > * > * {
  padding: clamp(0.55rem, 1.2vw, 0.8rem) clamp(0.65rem, 1.6vw, 1rem);
  border-color: var(--color-grey);
}

.notice-dimensions > thead > tr > th {
  color: var(--color-text-standard);
  background: var(--color-light-grey);
  font-weight: 700;
}

.notice-dimensions > tbody > tr > th,
.notice-dimensions > tbody > tr > td {
  color: var(--color-text-standard);
  background: var(--color-background);
}

.notice-dimensions > tbody th {
  width: 70%;
  font-weight: 500;
}

.notice-contribution {
  margin-top: clamp(1.5rem, 4vw, 3rem) !important;
  padding: clamp(1.25rem, 3vw, 2.25rem) !important;
  color: var(--color-text-standard);
  background: var(--color-light-grey);
  border: 1px solid var(--color-grey);
}

.notice-contribution__note {
  border-top: 1px solid var(--color-grey);
}

.notice-sharing {
  margin-block: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.notice-sharing__link {
  min-height: 0 !important;
  color: var(--color-text-standard) !important;
  font-weight: 400 !important;
  text-decoration: underline;
}

.notice-related {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) !important;
  color: var(--color-text-white);
  background: var(--color-header-cta) !important;
}

.notice-related__block + .notice-related__block {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.notice-related__placeholder {
  min-height: 4rem;
}

.notice-teaser-card {
  position: relative;
  min-height: clamp(12rem, 20vw, 17rem);
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-text-white);
  background: var(--color-header-cta) center / cover no-repeat;
  /* border-radius: var(--art-radius-4); */
}

.notice-teaser-card--with-image {
  background-image: var(--notice-teaser-background);
}

.notice-teaser-card--with-image::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(to top, rgb(24 40 61 / 95%) 0%, rgb(24 40 61 / 12%) 70%);
  pointer-events: none;
}

.notice-teaser-card__link {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  color: inherit;
  text-decoration: none;
}

.notice-teaser-card__content {
  width: 100%;
  padding: clamp(0.75rem, 1.7vw, 1rem);
}

.art-notice-cards--discover .notice-teaser-card__content,
.view-id-artillerie_notices_blocs.view-display-id-block_a_decouvrir .notice-teaser-card__content {
  padding-inline: calc(clamp(1.4rem, 2.5vw, 2.75rem) + 1px) !important;
}

.notice-teaser-card__title {
  color: inherit;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
}

.notice-teaser-card__meta {
  color: var(--color-text-white);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  line-height: 1.35;
}

.notice-teaser-card:hover .notice-teaser-card__title,
.notice-teaser-card:focus-within .notice-teaser-card__title {
  text-decoration: underline;
}

.notice-teaser-card__link:focus-visible {
  outline: 0.18rem solid var(--color-focus);
  outline-offset: -0.28rem;
}

.notice-videos iframe,
.notice-videos video {
  max-width: 100%;
}

/* Teaser sans photographie */
.notice-teaser-card--fallback {
  --notice-teaser-background: none;
  background-color: #172638;
  position: relative;
}

.notice-teaser-card--fallback .notice-teaser-card__link {
  position: relative;
}

/* Placeholder canon */
.notice-teaser-card__fallback-icon {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 29%;
  max-width: 110px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Maintien du texte au premier plan */
.notice-teaser-card--fallback .notice-teaser-card__content {
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .notice__main {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }

  .notice-gallery__viewport,
  .notice-gallery__image img {
    height: clamp(16rem, 83vw, 26rem);
    min-height: 0;
  }

  .notice-gallery__image img {
    object-fit: cover;
  }

  .notice-facts--identification {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0.8rem;
  }

  .notice-facts--location .notice-facts__item,
  .notice-facts--rows .notice-facts__item {
    grid-template-columns: minmax(7rem, 42%) minmax(0, 1fr);
  }

  .notice-related .art-notice-cards {
    --bs-gutter-x: 1rem;
  }
}

@media (max-width: 575.98px) {
  .notice-facts--identification {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 0.78rem;
  }

  .notice-facts--identification .notice-facts__item dt {
    font-size: 0.62rem;
  }

  .notice-facts--location .notice-facts__item,
  .notice-facts--rows .notice-facts__item {
    grid-template-columns: minmax(6.5rem, 40%) minmax(0, 1fr);
    column-gap: 0.65rem;
  }

  .notice-panel .p-3,
  .notice-panel .p-lg-4 {
    padding: 0.85rem !important;
  }

  .notice-gallery__control {
    width: 2.5rem;
    height: 2.5rem;
  }

  .notice-related .art-notice-cards > .col {
    flex: 0 0 82%;
    width: 82%;
  }

  .notice-related .art-notice-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
  }

  .notice-related .art-notice-cards > .col {
    scroll-snap-align: start;
  }
}

@media print {
  .notice-gallery__control,
  .notice-gallery__thumbnails,
  .notice-contribution,
  .notice-sharing,
  .notice-related {
    display: none !important;
  }

  .notice-gallery__viewport,
  .notice-gallery__image img {
    min-height: 0;
    height: auto;
    max-height: 32rem;
  }
}

.notice-facts__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.notice-facts__link:hover,
.notice-facts__link:focus-visible {
  color: var(--color-navy-blue);
  text-decoration-thickness: 0.12em;
}

.notice-gallery__zoom {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.notice-gallery__zoom:focus-visible {
  position: relative;
  z-index: 1;
  outline-offset: -0.35rem;
}

.has-notice-viewer {
  overflow: hidden;
}

.notice-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  color: var(--color-text-white);
  background: #05070a;
  border: 0;
}

.notice-viewer::backdrop {
  background: #05070a;
}

.notice-viewer__inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.notice-viewer__toolbar {
  min-height: clamp(3.2rem, 7vw, 4.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem clamp(0.65rem, 2vw, 1.25rem);
  background: rgb(0 0 0 / 88%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.notice-viewer__counter {
  min-width: 3rem;
  color: rgb(255 255 255 / 75%);
  font-size: var(--art-font-size-small);
}

.notice-viewer__tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.notice-viewer__tool,
.notice-viewer__nav {
  min-width: var(--art-touch-target);
  min-height: var(--art-touch-target);
  display: inline-grid;
  place-items: center;
  padding: 0.35rem 0.65rem;
  color: var(--color-text-white);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: var(--art-radius-4);
}

.notice-viewer__tool:hover,
.notice-viewer__tool:focus-visible,
.notice-viewer__nav:hover,
.notice-viewer__nav:focus-visible {
  color: var(--color-text-black);
  background: var(--color-focus);
  border-color: var(--color-focus);
}

.notice-viewer__tool--reset {
  min-width: 4.3rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.notice-viewer__tool--close {
  font-size: 1.65rem;
  line-height: 1;
}

.notice-viewer__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.notice-viewer__slide {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.notice-viewer__slide[hidden] {
  display: none;
}

.notice-viewer__canvas {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
}

.notice-viewer__canvas img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 7.5rem);
  object-fit: contain;
  transform-origin: center center;
  transition: transform var(--art-transition-fast);
  user-select: none;
}

.notice-viewer__caption {
  max-width: min(70rem, 88vw);
  margin-inline: auto;
  padding: 0.45rem 1rem 0.7rem;
  color: rgb(255 255 255 / 78%);
  font-size: var(--art-font-size-small);
  text-align: center;
}

.notice-viewer__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: clamp(2.8rem, 5vw, 3.5rem);
  height: clamp(2.8rem, 5vw, 3.5rem);
  padding: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  background: rgb(0 0 0 / 58%);
  border-radius: 50%;
  transform: translateY(-50%);
}

.notice-viewer__nav--previous {
  left: clamp(0.6rem, 2vw, 1.4rem);
}

.notice-viewer__nav--next {
  right: clamp(0.6rem, 2vw, 1.4rem);
}

@media (max-width: 575.98px) {
  .notice-viewer__toolbar {
    gap: 0.4rem;
  }

  .notice-viewer__tool--reset {
    display: none;
  }

  .notice-viewer__canvas img {
    max-height: calc(100vh - 6rem);
  }
}

.notice-teaser-card,
.notice-gallery__thumbnail,
.notice-gallery__control {
  transition: transform var(--art-transition-fast), box-shadow var(--art-transition-fast), opacity var(--art-transition-fast);
}

.notice-teaser-card:hover,
.notice-teaser-card:focus-within {
  box-shadow: var(--art-shadow-lg);
}

@media (prefers-reduced-motion: no-preference) {
  .notice-teaser-card:hover,
  .notice-teaser-card:focus-within {
    transform: translateY(-0.2rem);
  }

  .notice-gallery__thumbnail:hover,
  .notice-gallery__thumbnail:focus-visible {
    transform: translateY(-0.08rem);
  }

  .notice-gallery__slide.is-entering,
  .notice-viewer__slide.is-entering {
    animation: art-gallery-fade 220ms ease-out both;
  }
}

.notice-facts__empty {
  color: var(--color-text-dark-grey);
  font-weight: 400;
}

.notice-gallery__control:hover,
.notice-gallery__control:focus-visible {
  transform: translateY(-50%);
}

.notice-gallery__control:hover,
.notice-gallery__control:focus-visible {
  color: var(--color-text-white);
  background: var(--color-navy-blue);
}

.notice-teaser-card {
  cursor: pointer;
}

.notice-teaser-card:focus-within {
  outline: 0.18rem solid var(--color-focus);
  outline-offset: 0.18rem;
}

@keyframes art-gallery-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .notice-gallery__slide.is-entering,
  .notice-viewer__slide.is-entering {
    animation: none;
  }

  .notice-viewer__canvas img {
    transition: none;
  }
}

.notice-gallery__control:active,
.notice-viewer__nav:active {
  transform: translateY(-50%);
}
