@font-face {
  font-family: "Montserrat";
  src: url("/shared/fonts/Montserrat-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
body[data-commune-lang] {
  background-image: url("/img/guides-villes/fond-1920.webp");
}
@media (max-width: 768px) {
  body[data-commune-lang] {
    background-image: url("/img/guides-villes/fond-1260.webp");
  }
}

.commune-photo {
  margin: 0;
}

.seo-hero-copy .commune-photo {
  margin-top: 20px;
}

.commune-photo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.commune-photo figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
}

.commune-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.commune-credit-group {
  margin-top: 24px;
  scroll-margin-top: 100px;
}

.commune-credit-list ol {
  padding-inline-start: 1.5rem;
}

.commune-credit-list li {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  scroll-margin-top: 100px;
}

.commune-credit-list a {
  color: #fff;
  text-decoration: underline;
}

.commune-credit-list a:hover,
.commune-credit-list a:focus-visible {
  color: #ffb1b8;
}

.commune-languages button {
  display: block;
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.commune-languages .dropdown-content {
  min-width: max-content;
  max-height: 65vh;
  overflow-y: auto;
}

.commune-languages .dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  color: #fff;
}

.commune-languages .dropdown-content a img {
  width: 24px;
  height: auto;
}

.commune-languages a[aria-current="page"] {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .commune-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

.commune-content .seo-section[id] { scroll-margin-top: 6rem; }
.commune-content .seo-section, .commune-content .seo-card,
.commune-content .seo-hero-copy, .commune-content .seo-estimator { min-width: 0; }
.commune-content .seo-zone-cloud, .commune-routes { margin-block-start: 1rem; }
.commune-content #autour a[href] {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 40px;
  max-width: 100%;
  padding: .45rem .8rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.commune-content #autour a[href]:hover,
.commune-content #autour a[href]:focus-visible {
  border-color: #ed3444;
  background: rgba(225, 0, 15, .2);
  color: #fff;
  text-decoration: none;
}
.commune-gallery figure { overflow: hidden; border-radius: 14px; background: rgba(127,127,127,.10); }
.commune-gallery img { width: 100%; height: auto; border-radius: 0; }
.commune-gallery figcaption { padding: .25rem 1rem .9rem; line-height: 1.45; }
.commune-original { margin: .8rem 0; }
.commune-original summary { cursor: pointer; padding: .65rem 0; text-decoration: underline; }
.commune-original > div { margin-block: 1rem; }
.commune-content :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media (max-width: 640px) {
    .commune-content .seo-local-nav { flex-wrap: wrap; }
    .commune-content .seo-card { overflow-wrap: anywhere; }
}

.commune-content .commune-without-estimator { grid-template-columns: minmax(0, 1fr); }

.commune-lang-code { display: inline-block; color: white; padding: .45rem; font-size: .9rem; font-weight: 700; }
