/* Styles dedies a encyclopedie/lieux.html */

body.lieux-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(177, 210, 225, 0.26), transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(225, 177, 77, 0.2), transparent 30%),
    linear-gradient(165deg, #f5f4f2 0%, #eeece8 56%, #e6e4de 100%);
}

.lieux-page .container {
  max-width: none;
}

.lieux-page .lieux-section {
  position: relative;
  margin-bottom: 1.6rem;
  padding: 0.35rem 0.1rem 0.1rem;
}

.lieux-page .lieux-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
}

.lieux-page .lieux-originaux::before {
  background: linear-gradient(90deg, rgba(57, 95, 123, 0.7), rgba(118, 158, 184, 0.4));
}

.lieux-page .lieux-natifs::before {
  background: linear-gradient(90deg, rgba(120, 85, 153, 0.58), rgba(179, 147, 207, 0.3));
}

.lieux-page h1 {
  text-align: left;
  border-bottom: none;
  margin: 0.4rem 0 0.35rem;
  padding-bottom: 0;
  color: #2e4861;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.lieux-page .page-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.lieux-page .bloc-lieu {
  position: relative;
  --h3-underline-color: rgba(72, 122, 155, 0.52);
  padding: 1rem 1rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(80, 95, 109, 0.24);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 248, 0.9));
  box-shadow: 0 10px 24px rgba(34, 43, 51, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lieux-page .container > .bloc-lieu + .bloc-lieu {
  margin-top: 1.05rem;
}

.lieux-page .bloc-lieu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #487a9b 0%, #6c99b7 50%, #dbc171 100%);
  opacity: 0.75;
}

.lieux-page .bloc-lieu::after {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lieux-page .bloc-lieu:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 76, 101, 0.38);
  box-shadow: 0 14px 28px rgba(28, 39, 49, 0.16);
}

.lieux-page .bloc-lieu h3 {
  margin-top: 0.60rem;
  margin-bottom: 0.60rem;
  padding-bottom: 0.35rem;
  padding-right: 6.1rem;
  line-height: 1.5;
  color: #2f4961;
  font-size: 50px;
  font-style: italic;
  border-bottom: 5px solid var(--h3-underline-color);
}

.lieux-page .bloc-lieu p {
  text-align: justify;
  margin: 2rem 0;
  padding-left: 0.25rem;
  font-size: 23px;
  line-height: 1.5;
  color: #2d3138;
}

.lieux-page .bloc-lieu p strong {
  display: inline-block;
  font-size: 25px;
  margin-right: 0.32rem;
  color: #3d5f80;
}

.lieux-page .bloc-lieu-media {
  margin: 0.9rem auto 0.3rem;
  padding: 0.5rem;
  border: 1px solid rgba(71, 96, 115, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.96), rgba(239, 245, 248, 0.92));
  box-shadow: 0 10px 20px rgba(34, 43, 51, 0.08);
  max-width: 700px;
}

.lieux-page .bloc-lieu-media img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(80, 95, 109, 0.24);
  box-shadow: 0 8px 16px rgba(34, 43, 51, 0.1);
  cursor: zoom-in;
}

.lieux-page .bloc-lieu-media--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 320px;
}

.lieux-page .bloc-lieu-media--inline img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 340px;
}

.lieux-page .bloc-lieu-media figcaption {
  margin-top: 0.5rem;
  color: #456277;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lieux-page .bloc-lieu-layout {
  display: grid;
  gap: 1rem;
}

.lieux-page .bloc-lieu-copy > p:first-child {
  margin-top: 0;
}

.lieux-page .bloc-lieu-media--layout {
  max-width: none;
  margin: 0;
}

@media (min-width: 900px) {
  .lieux-page .bloc-lieu--layout-right .bloc-lieu-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.15rem;
  }

  .lieux-page .bloc-lieu--layout-right .bloc-lieu-media--layout {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .lieux-page .bloc-lieu--layout-right .bloc-lieu-media--layout img {
    max-height: none;
  }
}

@media (min-width: 900px) {
  .lieux-page .bloc-lieu--media-right,
  .lieux-page .bloc-lieu--media-left {
    display: flow-root;
  }

  .lieux-page .bloc-lieu-media--aside {
    width: min(38%, 360px);
    margin-top: 0.15rem;
    margin-bottom: 0.45rem;
  }

  .lieux-page .bloc-lieu--media-right .bloc-lieu-media--aside {
    float: right;
    margin-left: 1rem;
  }

  .lieux-page .bloc-lieu--media-left .bloc-lieu-media--aside,
  .lieux-page .bloc-lieu-media--aside-left {
    float: left;
    margin-right: 1rem;
  }
}

.lieux-page .bloc-dangers p,
.lieux-page .bloc-dangers li {
  font-size: 23px;
}

.lieux-page .bloc-dangers h4 {
  margin: 1rem 0 0.35rem;
  color: #2d5776;
  font-size: 36px;
  line-height: 1.3;
}

.lieux-page .bloc-dangers h4:first-of-type {
  margin-top: 0.35rem;
}

.lieux-page .bloc-dangers blockquote {
  margin: 0.5rem 0 0.6rem;
  padding: 0.55rem 0.75rem;
  border-left: 4px solid rgba(47, 96, 127, 0.55);
  border-radius: 0 10px 10px 0;
  background: rgba(214, 234, 246, 0.4);
}

.lieux-page .bloc-dangers blockquote p {
  margin: 0;
  color: #2d4f67;
  font-weight: 600;
}

.lieux-page .bloc-dangers ul {
  margin: 0.38rem 0 0.5rem 1.2rem;
  padding-left: 0.45rem;
}

.lieux-page .bloc-dangers li {
  margin: 0.2rem 0;
  line-height: 1.45;
  color: #2f3740;
}

.lieux-page .bloc-dangers .cristallisation-list {
  display: grid;
  gap: 0.85rem;
  margin: 0.65rem 0 1rem;
}

.lieux-page .bloc-dangers .cristallisation-card {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(57, 88, 117, 0.34);
  border-left: 8px solid rgba(58, 108, 150, 0.78);
  border-radius: 13px;
  background: linear-gradient(170deg, rgba(246, 252, 255, 0.96), rgba(235, 246, 255, 0.9));
  box-shadow: 0 10px 20px rgba(25, 37, 47, 0.08);
}

.lieux-page .bloc-dangers .cristallisation-card h4 {
  margin-top: 0;
}

.lieux-page .bloc-dangers .cristallisation-label {
  display: inline-flex;
  align-items: center;
  margin-right: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(45, 101, 138, 0.14);
  border: 1px solid rgba(45, 101, 138, 0.28);
  color: #1f5879;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.lieux-page .bloc-dangers .cristallisation-picto {
  display: inline-block;
  width: 0.86rem;
  height: 0.86rem;
  margin-right: 0.34rem;
  flex: 0 0 auto;
}

.lieux-page .bloc-dangers .cristallisation-picto--base {
  background: linear-gradient(135deg, rgba(66, 133, 178, 0.95), rgba(102, 184, 212, 0.95));
  clip-path: polygon(50% 0, 86% 25%, 86% 75%, 50% 100%, 14% 75%, 14% 25%);
}

.lieux-page .bloc-dangers .cristallisation-picto--multiversel {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9) 0 25%, rgba(255, 255, 255, 0) 26%), rgba(56, 122, 167, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85) inset;
}

.lieux-page .bloc-dangers .cristallisation-picto--noir {
  background: linear-gradient(150deg, rgba(29, 34, 45, 0.98), rgba(84, 42, 96, 0.9));
  transform: rotate(45deg);
  border-radius: 2px;
}

.lieux-page .bloc-dangers .cristallisation-card[data-cristal="multiversel"] {
  border-left-color: rgba(48, 132, 161, 0.84);
}

.lieux-page .bloc-dangers .cristallisation-card[data-cristal="noir"] {
  border-left-color: rgba(84, 42, 96, 0.86);
  background: linear-gradient(170deg, rgba(244, 245, 252, 0.96), rgba(236, 233, 246, 0.9));
}

.lieux-page .bloc-dangers .dangers-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.65rem;
}

.lieux-page .bloc-dangers .danger-card {
  display: grid;
  grid-template-columns: minmax(460px, 1.5fr) minmax(300px, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 0.85rem;
  border: 1px solid rgba(56, 86, 109, 0.32);
  border-left: 8px solid rgba(46, 111, 148, 0.72);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(248, 252, 255, 0.95), rgba(238, 247, 252, 0.88));
  box-shadow: 0 12px 22px rgba(24, 36, 47, 0.08);
}

.lieux-page .bloc-dangers .danger-card + .danger-card {
  margin-top: 0.15rem;
}

.lieux-page .bloc-dangers .danger-card--right .bloc-dangers-media {
  order: 2;
}

.lieux-page .bloc-dangers .danger-card--right .danger-card-content {
  order: 1;
}

.lieux-page .bloc-dangers .danger-card-content {
  min-width: 0;
}

.lieux-page .bloc-dangers .danger-card h4 {
  margin-top: 0;
}

.lieux-page .bloc-dangers .danger-label {
  display: inline-flex;
  align-items: center;
  margin-right: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(42, 104, 139, 0.14);
  border: 1px solid rgba(42, 104, 139, 0.28);
  color: #1f5879;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.lieux-page .bloc-dangers .danger-picto {
  display: inline-block;
  width: 0.86rem;
  height: 0.86rem;
  margin-right: 0.34rem;
  flex: 0 0 auto;
}

.lieux-page .bloc-dangers .danger-picto--vide {
  border-radius: 50%;
  border: 2px solid rgba(58, 108, 150, 0.95);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.lieux-page .bloc-dangers .danger-picto--tempete {
  background: linear-gradient(135deg, rgba(89, 74, 140, 0.95) 0 52%, transparent 52% 100%);
  clip-path: polygon(0 55%, 45% 55%, 32% 100%, 100% 42%, 56% 42%, 69% 0);
}

.lieux-page .bloc-dangers .danger-picto--fragments {
  background:
    linear-gradient(rgba(141, 103, 58, 0.95), rgba(141, 103, 58, 0.95)) left top / 42% 42% no-repeat,
    linear-gradient(rgba(171, 128, 74, 0.95), rgba(171, 128, 74, 0.95)) right top / 42% 42% no-repeat,
    linear-gradient(rgba(119, 83, 45, 0.95), rgba(119, 83, 45, 0.95)) center bottom / 54% 40% no-repeat;
}

.lieux-page .bloc-dangers .danger-picto--ombrage {
  border-radius: 50%;
  background: radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.95) 0 35%, rgba(255, 255, 255, 0) 36%), rgba(60, 89, 121, 0.92);
}

.lieux-page .bloc-dangers .danger-picto--hautconseil {
  background: rgba(136, 45, 73, 0.94);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.lieux-page .bloc-dangers .bloc-dangers-media {
  margin: 0;
  max-width: none;
  align-self: stretch;
}

.lieux-page .bloc-dangers .bloc-dangers-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-height: clamp(230px, 32vw, 420px);
  max-height: 440px;
}

.lieux-page .bloc-dangers .danger-card--text-only {
  grid-template-columns: 1fr;
}

.lieux-page .bloc-dangers .danger-card[data-danger="vide"] {
  border-left-color: rgba(58, 108, 150, 0.8);
}

.lieux-page .bloc-dangers .danger-card[data-danger="tempete"] {
  border-left-color: rgba(89, 74, 140, 0.8);
}

.lieux-page .bloc-dangers .danger-card[data-danger="fragments"] {
  border-left-color: rgba(141, 103, 58, 0.84);
}

.lieux-page .bloc-dangers .danger-card[data-danger="ombrage"] {
  border-left-color: rgba(60, 89, 121, 0.82);
}

.lieux-page .bloc-dangers .danger-card[data-danger="hautconseil"] {
  border-left-color: rgba(136, 45, 73, 0.8);
}

@media (max-width: 980px) {
  .lieux-page .bloc-dangers .danger-card {
    grid-template-columns: 1fr;
  }

  .lieux-page .bloc-dangers .danger-card--right .bloc-dangers-media,
  .lieux-page .bloc-dangers .danger-card--right .danger-card-content {
    order: initial;
  }

  .lieux-page .bloc-dangers .bloc-dangers-media img {
    min-height: clamp(220px, 58vw, 360px);
  }
}

.lieux-page .galerie-intro {
  margin-top: 0.45rem;
  color: #435f75;
}

.lieux-page .galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
  margin: 0.6rem 0 0.8rem;
}

.lieux-page .galerie-item {
  position: relative;
  margin: 0;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(71, 96, 115, 0.22);
  background: rgba(247, 250, 252, 0.88);
  box-shadow: 0 9px 18px rgba(34, 43, 51, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lieux-page .galerie-item:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 117, 156, 0.34);
  box-shadow: 0 14px 24px rgba(34, 43, 51, 0.14);
}

.lieux-page .galerie-item[data-gallery-category="carte"] {
  border-color: rgba(47, 117, 156, 0.38);
}

.lieux-page .galerie-item[data-gallery-category="scene"] {
  border-color: rgba(106, 61, 138, 0.3);
}

.lieux-page .galerie-item[data-gallery-category="navigation"] {
  border-color: rgba(52, 124, 98, 0.34);
}

.lieux-page .galerie-item[data-gallery-category="archive"] {
  border-color: rgba(120, 120, 120, 0.26);
}

.lieux-page .galerie-badge {
  position: absolute;
  left: 0.92rem;
  top: 0.9rem;
  z-index: 1;
  padding: 0.15rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5fbff;
  background: rgba(20, 55, 76, 0.74);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.lieux-page .galerie-item[data-gallery-category="carte"] .galerie-badge {
  background: rgba(35, 99, 133, 0.82);
}

.lieux-page .galerie-item[data-gallery-category="scene"] .galerie-badge {
  background: rgba(97, 54, 127, 0.82);
}

.lieux-page .galerie-item[data-gallery-category="navigation"] .galerie-badge {
  background: rgba(36, 109, 83, 0.82);
}

.lieux-page .galerie-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(80, 95, 109, 0.28);
  box-shadow: 0 7px 16px rgba(34, 43, 51, 0.11);
  background: rgba(255, 255, 255, 0.75);
  cursor: zoom-in;
}

.lieux-page .galerie-item img:focus-visible {
  outline: 2px solid rgba(49, 117, 156, 0.6);
  outline-offset: 3px;
}

.lieux-page .galerie-item figcaption {
  margin-top: 0.48rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #3f5a6f;
}

.lieux-page .galerie-item-carte {
  border-color: rgba(49, 117, 156, 0.38);
  background: linear-gradient(160deg, rgba(231, 243, 250, 0.8), rgba(245, 249, 252, 0.8));
}

.lieux-page .bloc-timeline {
  overflow: hidden;
}

.lieux-page .timeline-mini {
  list-style: none;
  margin: 0.55rem 0 0.15rem;
  padding: 0.25rem 0 0.2rem;
  position: relative;
}

.lieux-page .timeline-mini::before {
  content: "";
  position: absolute;
  left: 0.78rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(47, 96, 127, 0.52), rgba(106, 61, 138, 0.36));
}

.lieux-page .timeline-mini li {
  position: relative;
  margin: 0 0 0.7rem;
  padding: 0 0 0 2.15rem;
}

.lieux-page .timeline-mini li:last-child {
  margin-bottom: 0;
}

.lieux-page .timeline-mini li::before {
  content: "";
  position: absolute;
  left: 0.57rem;
  top: 0.32rem;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  border: 2px solid rgba(47, 96, 127, 0.65);
  background: #f6fbff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.lieux-page .timeline-label {
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0.1rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 96, 127, 0.24);
  background: rgba(193, 224, 242, 0.35);
  color: #2f607f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lieux-page .timeline-mini p {
  margin: 0;
}

.lieux-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(67, 95, 117, 0.18), rgba(12, 17, 22, 0.9) 60%),
    rgba(12, 17, 22, 0.88);
  padding: 1rem;
  opacity: 0;
  transition: opacity 220ms ease;
}

.lieux-lightbox[hidden] {
  display: none;
}

.lieux-lightbox.is-open {
  opacity: 1;
}

.lieux-lightbox.is-closing {
  opacity: 0;
}

.lieux-lightbox__panel {
  position: relative;
  width: min(96vw, 1020px);
  max-height: 92vh;
  padding: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(210, 227, 238, 0.28);
  background: rgba(16, 24, 32, 0.78);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 260ms ease, opacity 220ms ease;
}

.lieux-lightbox.is-open .lieux-lightbox__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lieux-lightbox.is-closing .lieux-lightbox__panel {
  transform: translateY(10px) scale(0.985);
  opacity: 0;
}

.lieux-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(92vh - 5.6rem);
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.lieux-lightbox__caption {
  margin: 0;
  color: #e6f2fa;
  line-height: 1.4;
  font-size: 0.95rem;
}

.lieux-lightbox__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.55rem 0.35rem 0.2rem;
}

.lieux-lightbox__counter {
  margin: 0;
  color: rgba(225, 240, 249, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lieux-lightbox__close,
.lieux-lightbox__nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  color: #f4fbff;
  background: rgba(29, 54, 72, 0.7);
  cursor: pointer;
}

.lieux-lightbox__close {
  top: 0.35rem;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
}

.lieux-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.25rem;
}

.lieux-lightbox__nav--prev {
  left: 0.35rem;
}

.lieux-lightbox__nav--next {
  right: 0.35rem;
}

.lieux-lightbox__close:hover,
.lieux-lightbox__nav:hover {
  background: rgba(56, 97, 127, 0.82);
}

.lieux-lightbox__close:focus-visible,
.lieux-lightbox__nav:focus-visible {
  outline: 2px solid rgba(141, 201, 235, 0.75);
  outline-offset: 2px;
}

.lieux-page .bloc-lieu[data-type="zone"] {
  --h3-underline-color: rgba(47, 96, 127, 0.62);
  border-color: rgba(66, 122, 157, 0.34);
}

.lieux-page .bloc-lieu[data-type="zone"]::after {
  content: "Zone";
  color: #2f607f;
  border: 1px solid rgba(47, 96, 127, 0.25);
  background: rgba(193, 224, 242, 0.34);
}

.lieux-page .bloc-lieu[data-type="ville"] {
  --h3-underline-color: rgba(47, 114, 81, 0.62);
  border-color: rgba(74, 138, 104, 0.34);
}

.lieux-page .bloc-lieu[data-type="ville"]::after {
  content: "Ville";
  color: #2f7251;
  border: 1px solid rgba(47, 114, 81, 0.24);
  background: rgba(199, 235, 213, 0.38);
}

.lieux-page .bloc-lieu[data-type="monde"] {
  --h3-underline-color: rgba(106, 61, 138, 0.62);
  border-color: rgba(126, 90, 152, 0.34);
}

.lieux-page .bloc-lieu[data-type="monde"]::after {
  content: "Monde";
  color: #6a3d8a;
  border: 1px solid rgba(106, 61, 138, 0.24);
  background: rgba(224, 206, 239, 0.44);
}

.lieux-page .bloc-lieu[data-type="batiment"] {
  --h3-underline-color: rgba(106, 61, 138, 0.62);
  border-color: rgba(126, 90, 152, 0.34);
}

.lieux-page .bloc-lieu[data-type="batiment"]::after {
  content: "Bâtiment";
  color: #6a3d8a;
  border: 1px solid rgba(106, 61, 138, 0.24);
  background: rgba(224, 206, 239, 0.44);
}

@media (max-width: 700px) {
  .lieux-page .container {
    padding: 0.75rem;
  }

  .lieux-page h1 {
    font-size: 1.45rem;
  }

  .lieux-page .page-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .lieux-page .bloc-lieu h3 {
    padding-bottom: 0.25rem;
    padding-right: 5.4rem;
    border-bottom-width: 2px;
  }

  .lieux-page .container > .bloc-lieu + .bloc-lieu {
    margin-top: 0.85rem;
  }

  .lieux-page .bloc-lieu {
    padding: 0.85rem 0.85rem 0.8rem;
  }

  .lieux-page .bloc-lieu p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .lieux-page .bloc-lieu-media {
    max-width: 100%;
  }

  .lieux-page .bloc-lieu-layout {
    grid-template-columns: 1fr;
  }

  .lieux-page .bloc-lieu-media--aside,
  .lieux-page .bloc-lieu-media--aside-left {
    float: none;
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .lieux-page .bloc-lieu-media--wide img,
  .lieux-page .bloc-lieu-media--inline img {
    max-height: none;
  }

  .lieux-page .timeline-mini {
    margin-top: 0.45rem;
  }

  .lieux-page .timeline-mini li {
    padding-left: 1.9rem;
  }

  .lieux-lightbox {
    padding: 0.65rem;
  }

  .lieux-lightbox__panel {
    width: 100%;
    padding: 0.5rem;
  }

  .lieux-lightbox__image {
    max-height: calc(90vh - 5.2rem);
  }

  .lieux-lightbox__close,
  .lieux-lightbox__nav {
    width: 2rem;
    height: 2rem;
  }

  .lieux-lightbox__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lieux-page .galerie-item,
  .lieux-lightbox,
  .lieux-lightbox__panel {
    transition: none;
  }
}
