/* UDV Events 0.2.0 — fiche événement autonome */
html {
  background: #fff;
  color: #171717;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.udv-event-standalone {
  margin: 0;
  background: #fff;
  color: #171717;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.6;
}

body.udv-event-standalone :where(h1, h2, h3, h4, h5, h6, strong, b, label, button, input, select, textarea) {
  font-family: inherit;
  font-weight: 400;
}

body.udv-event-standalone a {
  color: #171717;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.udv-event-standalone a:hover,
body.udv-event-standalone a:focus-visible {
  text-decoration-thickness: 2px;
}

.udv-event-brand {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 16px 6px;
  text-align: center;
}

.udv-event-brand__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.udv-event-brand__link {
  display: inline-block;
  text-decoration: none;
}

.udv-event-brand__name {
  display: block;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.udv-event-brand__tagline {
  color: #444;
  font-size: clamp(0.85rem, 2.7vw, 1.2rem);
  line-height: 1.2;
}

.udv-event-main {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 4px 16px 36px;
}

.udv-event-main .tribe-events-single,
.udv-event-main article {
  width: 100%;
  max-width: 696px;
  margin-inline: auto;
}

.udv-event-main header {
  margin: 0;
}

.udv-event-main h1 {
  margin: 6px 0 18px;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

.udv-event-main h2 {
  margin: 1.8em 0 0.7em;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.25;
}

.udv-event-main h3 {
  margin: 1.5em 0 0.6em;
  font-size: 1.2rem;
  line-height: 1.3;
}

.udv-event-main :where(img, picture, figure, video, iframe, svg) {
  max-width: 100%;
}

.udv-event-main img,
.udv-event-featured-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}

.udv-event-main figure {
  margin: 1.25rem 0;
}

.udv-event-main figcaption {
  margin-top: 0.45rem;
  color: #666;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.event-chapo {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.event-meta {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.event-meta p {
  margin: 0.28rem 0;
}

.event-meta strong {
  color: #555;
}

.event-body {
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.event-body p,
.event-body ul,
.event-body ol,
.event-body blockquote,
.event-body table {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.event-body ul,
.event-body ol {
  padding-left: 1.4rem;
}

.event-body blockquote {
  margin-left: 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid #bdbdbd;
  color: #444;
}

.event-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.event-body th,
.event-body td {
  padding: 0.55rem 0.7rem;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.event-body iframe {
  display: block;
  width: 100%;
  border: 0;
}

.event-links {
  width: 100%;
  max-width: 696px;
  margin: 2rem auto 0;
}

.event-links__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-links__link {
  display: block;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #f7f7f7;
  line-height: 1.35;
  text-decoration: none;
}

.event-links__link:hover,
.event-links__link:focus-visible {
  background: #efefef;
  border-color: #a9a9a9;
}

.udv-same-city-events {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #d9d9d9;
}

.udv-same-city-events__list {
  margin: 0;
  padding-left: 1.15rem;
}

.udv-same-city-events__item {
  margin: 0.5rem 0;
}

.udv-same-city-events__date {
  color: #666;
  font-size: 0.9rem;
}

.udv-event-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  border-top: 1px solid #e1e1e1;
  color: #666;
  font-size: 0.86rem;
  text-align: center;
}

.udv-event-footer a {
  color: inherit;
}

@media (max-width: 680px) {
  .event-links__list {
    grid-template-columns: 1fr;
  }

  .udv-event-main {
    padding-inline: 16px;
  }
}
