:root {
  --uh-blue: #284b64;
  --uh-green: #285a50;
  --uh-orange: #be644b;
  --uh-yellow: #dcb43c;
  --uh-theme-color: var(--uh-blue);

  /* fonts */
  --uh-font-sans: "Sora", sans-serif;
  --uh-font-serif: "Roboto Serif", serif;

  /* font sizes */
  --uh-fs-2xs: 0.8125rem;  /* 13px */
  --uh-fs-xs: 0.875rem;    /* 14px */
  --uh-fs-sm: 1.0156rem;   /* 16.25px */
  --uh-fs-md: 1.1719rem;   /* 18.75px */
  --uh-fs-lg: 1.25rem;     /* 20px */
  --uh-fs-xl: 1.3281rem;   /* 21.25px */
  --uh-fs-2xl: 1.5625rem;  /* 25px */
  --uh-fs-3xl: 2.0313rem;  /* 32.5px */
  --uh-fs-4xl: 2.5rem;     /* 40px */

  /* line heights */
  --uh-lh-tight: 1.1;
  --uh-lh-snug: 1.2;
  --uh-lh-normal: 1.35;
  --uh-lh-relaxed: 1.4;
  --uh-lh-loose: 1.5;
  --uh-lh-rich: 1.6;
  --uh-lh-footer: 1.45;

  /* font weights */
  --uh-fw-light: 300;
  --uh-fw-normal: 400;
  --uh-fw-semibold: 600;

  /* shared layout */
  --uh-card-grid-gap-x: 2rem;
  --uh-card-grid-gap-y: 2.5rem;
  --uh-card-grid-gap-x-tablet: 1.5rem;
  --uh-card-grid-gap-y-tablet: 2rem;
  --uh-card-grid-gap-mobile: 2rem;
  --uh-card-image-margin: 1.5rem;
  --uh-card-image-margin-mobile: 1rem;
  --uh-detail-media-size: 420px;
  --uh-detail-media-size-mobile: 80px;
}

/* Theme */

.uh-theme-bleu {
  --uh-theme-color: var(--uh-blue);
}

.uh-theme-vert {
  --uh-theme-color: var(--uh-green);
}

.uh-theme-color-background {
  background: var(--uh-theme-color);
}

/* Base */

body {
  font-family: var(--uh-font-sans);
  font-weight: var(--uh-fw-light);
  color: var(--uh-blue);
}

body a {
  color: var(--uh-blue);
}

body a:hover {
  color: var(--uh-blue);
  text-decoration: underline;
}

.uh-header,
.uh-hero,
.uh-footer {
  flex: 0 0 auto;
}

/* Shared typography */

.uh-email,
.uh-lang-switch,
.uh-richtext,
.uh-image-card-caption,
.uh-footer-address p,
.uh-footer-contact p,
.uh-footer-contact a,
.uh-evenement-detail-place p,
.uh-evenement-detail-address,
.uh-evenement-detail-seance-time,
.uh-evenement-detail-meta-value,
.uh-evenement-card-text,
.uh-actualite-content,
.uh-actualite-card-text {
  font-family: var(--uh-font-sans);
  font-weight: var(--uh-fw-light);
  font-size: var(--uh-fs-sm);
}

.uh-meta-dates-text,
.uh-richtext h3,
.uh-h3,
.uh-footer-partners-title,
.uh-evenement-detail-seance-date,
.uh-evenement-detail-meta-title,
.uh-evenement-card-title h3,
.uh-actualite-date,
.uh-actualite-card-date,
.uh-actualite-card-title {
  font-family: var(--uh-font-sans);
  font-weight: var(--uh-fw-semibold);
  font-size: var(--uh-fs-xl);
}

.uh-page-title,
.uh-section-title,
.uh-evenement-detail-header h1,
.uh-actualite-title {
  font-family: var(--uh-font-serif);
  font-weight: var(--uh-fw-semibold);
}

.uh-evenement-card-link a,
.uh-actualite-card-link a,
.uh-actualite-content a {
  font-family: var(--uh-font-serif);
  font-style: italic;
  font-weight: var(--uh-fw-normal);
  font-size: var(--uh-fs-sm);
  text-decoration: none;
  color: var(--uh-orange);
}

.uh-evenement-card-link a:hover,
.uh-evenement-card-link a:focus,
.uh-actualite-card-link a:hover,
.uh-actualite-card-link a:focus,
.uh-actualite-content a:hover,
.uh-actualite-content a:focus {
  text-decoration: underline;
  color: var(--uh-orange);
}

/* Header */

.uh-header {
  padding: 0.5rem 1rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
}

.uh-header-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  column-gap: 1.5rem;
}

.uh-header-content {
  min-width: 0;
}

.uh-email {
  line-height: var(--uh-lh-relaxed);
  font-size: var(--uh-fs-xs);
}

.uh-email:hover,
.uh-email:focus {
  text-decoration: underline;
}

.uh-lang-switch {
  line-height: var(--uh-lh-relaxed);
  color: var(--uh-blue);
  font-size: var(--uh-fs-xs);
}

.uh-lang-separator {
  user-select: none;
}

.uh-lang-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.uh-lang-link:hover,
.uh-lang-link:focus,
.uh-lang-link.is-active {
  text-decoration: underline;
}

.uh-menu-toggle {
  cursor: pointer;
}

.uh-menu-toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 4px 0;
  background: var(--uh-blue);
}

.uh-nav-link {
  font-family: var(--uh-font-sans);
  font-weight: var(--uh-fw-light);
  font-size: var(--uh-fs-sm);
  line-height: var(--uh-lh-relaxed);
  text-decoration: none;
  white-space: nowrap;
}

.uh-nav-link:hover,
.uh-nav-link.is-active {
  text-decoration: underline;
}

/* Tablet / mobile */
@media (max-width: 1191.98px) {
  .uh-header {
    padding: 0.75rem 1rem;
  }

  .uh-header-layout {
    grid-template-columns: 140px 1fr;
    column-gap: 1rem;
    align-items: start;
  }

  .uh-logo img {
    width: 140px;
  }

  .uh-header-content {
    justify-content: flex-start;
    align-items: flex-end;
    height: auto;
  }

  .uh-header-top {
    gap: 0.75rem;
    padding-top: 0.25rem;
  }

  .uh-nav {
    justify-content: flex-start;
    align-items: flex-end;
  }

  .uh-nav.collapse:not(.show) {
    display: none;
  }

  .uh-nav.collapse.show {
    display: flex;
    flex-direction: column;
  }

  .uh-nav-link {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
    text-align: right;
    white-space: normal;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .uh-header-layout {
    grid-template-columns: 110px 1fr;
  }

  .uh-header-top {
    gap: 0.6rem;
  }
}

/* Main */

.uh-main {
  flex: 1 0 auto;
  color: var(--uh-theme-color);
}

.uh-main a {
  color: var(--uh-theme-color);
}

/* Hero */

.uh-hero-image {
  height: min(38vw, 420px);
  object-fit: cover;
}

/* Left column */

.uh-page-meta-image img {
  max-width: 220px;
}

.uh-meta-dates-text {
  line-height: var(--uh-lh-normal);
}

/* Titres */

.uh-page-title {
  margin: 0 0 2rem;
  font-size: var(--uh-fs-4xl);
  line-height: var(--uh-lh-tight);
}

.uh-section-title {
  margin: 0 0 1rem;
  font-size: var(--uh-fs-2xl);
  line-height: var(--uh-lh-snug);
}

.uh-richtext h3,
.uh-h3 {
  margin: 0 0 0.75rem;
  line-height: var(--uh-lh-normal);
}

/* Blocks */

.uh-page-block {
  margin-bottom: 3rem;
}

.uh-page-block:last-child {
  margin-bottom: 0;
}

/* Rich text */

.uh-richtext {
  line-height: var(--uh-lh-rich);
}

.uh-richtext strong {
  font-weight: var(--uh-fw-semibold);
}

.uh-richtext p,
.uh-richtext ul,
.uh-richtext ol,
.uh-richtext blockquote {
  margin: 0 0 1rem;
}

.uh-richtext ul,
.uh-richtext ol {
  padding-left: 1.25rem;
}

.uh-richtext li {
  margin-bottom: 0.25rem;
}

.uh-richtext a {
  font-family: var(--uh-font-serif);
  color: var(--uh-orange);
  font-style: normal;
  font-size: var(--uh-fs-sm);
  text-decoration: none;
}

.uh-richtext a:hover,
.uh-richtext a:focus {
  color: var(--uh-orange);
  text-decoration: underline;
}

/* Images */

.uh-image-card-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.uh-image-card-caption {
  margin-top: 0.75rem;
  line-height: var(--uh-lh-relaxed);
}

/* Footer */

.uh-footer {
  margin-top: 4rem;
}

.uh-footer-main {
  padding: 2.5rem 0 2.75rem;
  font-size: var(--uh-fs-2xs);
}

.uh-footer-main a,
.uh-footer-main p {
  font-size: inherit;
}

.uh-footer-partners {
  background: var(--uh-theme-color);
  color: #fff;
  padding: 1.5rem 0 2rem;
}

.uh-footer-partners-title {
  display: block;
  margin: 0 0 2rem;
  line-height: var(--uh-lh-normal);
  color: #fff;
}

.uh-footer-partners-logos img {
  display: block;
  height: 35px;
  max-width: 120px
}

.uh-footer-branding-logo {
  display: block;
  height: 80px;
}

.uh-footer-address {
  padding-left: 0;
}

.uh-footer-main p {
  margin: 0;
}

.uh-footer-contact a {
  text-decoration: none;
}

.uh-footer-contact {
  margin-left: auto;
  width: fit-content;
  text-align: left;
}

.uh-footer-address p,
.uh-footer-contact p,
.uh-footer-contact a {
  line-height: var(--uh-lh-footer);
}

@media (max-width: 991.98px) {
  .uh-footer {
    margin-top: 3.5rem;
  }

  .uh-footer-partners-title {
    margin-bottom: 1.25rem;
  }

  .uh-footer-partners-logos {
    justify-content: flex-start;
    gap: 1.5rem 2rem;
  }

  .uh-footer-main {
    padding: 2rem 0 2.25rem;
  }

  .uh-footer-main-row {
    --bs-gutter-x: 2rem;
  }

  .uh-footer-branding {
    gap: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .uh-footer-branding-logo {
    height: 70px;
  }

  .uh-footer-address {
    margin-bottom: 1rem;
  }

  .uh-footer-contact {
    margin-left: 0;
    width: auto;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .uh-footer {
    margin-top: 3rem;
  }

  .uh-footer-main {
    padding: 1.75rem 0 2rem;
  }

  .uh-footer-main-row {
    --bs-gutter-x: 1.5rem;
  }

  .uh-footer-branding {
    gap: 1rem;
  }

  .uh-footer-branding-logo {
    height: 60px;
  }

  .uh-footer-address {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .uh-footer-partners-logos {
    gap: 1rem 1.25rem;
  }

  .uh-footer-branding {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

/* Modal */

#contentModal .modal-dialog {
  max-width: 768px;
  position: relative;
}

#contentModal .modal-content {
  position: relative;
  z-index: 1;
}

#contentModal .uh-modal-close {
  position: absolute;
  pointer-events: auto;
  top: 1rem;
  right: 1rem;
  z-index: 1056;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  cursor: pointer;
}

.uh-modal-close img {
  display: block;
  width: 38px;
  height: 38px;
}

.uh-modal-close-spacer {
  height: 40px;
}

/* Vue événement & actualité */

.uh-evenement-intro,
.uh-actualite-intro {
  background: var(--uh-theme-color);
  height: var(--uh-detail-media-size);
}

.uh-evenement-intro img,
.uh-actualite-intro img {
  display: block;
  width: 100%;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
}

.uh-evenement-detail,
.uh-actualite-detail {
  color: var(--uh-theme-color);
}

.uh-evenement-content,
.uh-actualite-content {
  max-width: var(--uh-detail-media-size);
}

/* === Détails événement === */

.uh-evenement-image {
  width: var(--uh-detail-media-size);
  height: var(--uh-detail-media-size);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.uh-evenement-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.uh-evenement-detail {
  max-width: 768px;
}

.uh-evenement-detail-header {
  margin-bottom: 2rem;
}

.uh-evenement-detail-title {
  font-size: var(--uh-fs-2xl);
  line-height: var(--uh-lh-snug);
}

.uh-evenement-detail-title-duration {
  margin-left: 0.25rem;
  font-family: var(--uh-font-sans);
  font-weight: var(--uh-fw-semibold);
  font-size: var(--uh-fs-lg);
}

.uh-evenement-detail-description {
  margin-bottom: 2rem;
}

.uh-evenement-detail-description p:last-child {
  margin-bottom: 0;
}

.uh-evenement-detail-place,
.uh-evenement-detail-address {
  margin-bottom: 1rem;
}

.uh-evenement-detail-place p,
.uh-evenement-detail-address,
.uh-evenement-detail-seance-time,
.uh-evenement-detail-meta-value {
  margin: 0 0 0.25rem;
  line-height: var(--uh-lh-loose);
}

.uh-evenement-detail-seances {
  margin: 2rem 0 2.5rem;
}

.uh-evenement-detail-seances p {
  margin: 0;
}

.uh-evenement-detail-seance-group + .uh-evenement-detail-seance-group {
  margin-top: 1rem;
}

.uh-evenement-detail-seance-place-group {
  margin-bottom: 0.5rem;
}

.uh-evenement-detail-seance-place-city {
  font-weight: var(--uh-fw-semibold);
}

.uh-evenement-detail-seance-date,
.uh-evenement-detail-meta-title {
  margin: 0 0 0.5rem;
  line-height: var(--uh-lh-normal);
}

.uh-evenement-detail-meta {
  margin-top: 2rem;
}

.uh-evenement-detail-meta-value {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .uh-evenement-intro,
  .uh-actualite-intro {
    height: var(--uh-detail-media-size-mobile);
    display: flex;
    align-items: center;
  }

  .uh-evenement-intro img,
  .uh-actualite-intro img {
    width: auto;
    height: 80%;
    margin: 0 15px;
  }

  .uh-evenement-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1rem;
  }

  .uh-evenement-image img {
    max-width: 400px;
  }

  .uh-evenement-content,
  .uh-actualite-content {
    max-width: none;
  }
}

.uh-btn-reserver,
.uh-btn-document {
  font-family: var(--uh-font-sans);
  font-weight: var(--uh-fw-light);
  font-size: var(--uh-fs-sm);

  color: #fff;
  background-color: var(--uh-theme-color);
  border: 1px solid var(--uh-theme-color);

  text-decoration: none;
  transition: all 0.2s ease;
}
a.uh-btn-reserver,
a.uh-btn-document {
  color: #fff;
}

.uh-btn-reserver:hover,
.uh-btn-reserver:focus,
.uh-btn-reserver:active,
.uh-btn-document:hover,
.uh-btn-document:focus,
.uh-btn-document:active {
  color: var(--uh-theme-color);
  background-color: #fff;
  border-color: var(--uh-theme-color);
  text-decoration: none;
}

.uh-btn-reserver:focus-visible,
.uh-btn-document:focus-visible {
  outline: 2px solid var(--uh-theme-color);
  outline-offset: 2px;
}

.uh-pass-reservation-badge {
  height: 2.8em;
  width: auto;
}

/* Shared cards lists */

.uh-evenements-list,
.uh-actualites-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--uh-card-grid-gap-y) var(--uh-card-grid-gap-x);
}

.uh-evenement-card,
.uh-actualite-card {
  display: flex;
  flex-direction: column;
}

.uh-evenement-card-image,
.uh-actualite-card-image {
  margin-bottom: var(--uh-card-image-margin);
}

.uh-evenement-card-image img,
.uh-actualite-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.uh-evenement-card-text,
.uh-actualite-card-text {
  margin-bottom: 0.75rem;
  line-height: var(--uh-lh-loose);
  color: var(--uh-theme-color);
}

.uh-evenement-card-text p:last-child,
.uh-actualite-card-text p:last-child {
  margin-bottom: 0;
}

.uh-evenement-card-link,
.uh-actualite-card-link {
  margin: 0;
}

.uh-evenement-card-link a,
.uh-actualite-card-link a {
  color: var(--uh-orange);
}

/* === Liste d'événements === */

.uh-evenement-card-title {
  margin: 0 0 1.5rem;
  line-height: 1.25;
  color: var(--uh-theme-color);
}

.uh-evenement-card-duration {
  white-space: nowrap;
}

.uh-evenement-card-reservation {
  margin-left: 0.25rem;
  font-family: var(--uh-font-serif);
  font-style: italic;
  font-weight: var(--uh-fw-normal);
  color: var(--uh-orange);
  white-space: nowrap;
  text-decoration: none;
}
a.uh-evenement-card-reservation {
  color: var(--uh-orange);
}
a.uh-evenement-card-reservation:hover {
  color: var(--uh-orange);
  text-decoration: underline;
}

/* === Détails actualité === */

.uh-actualite-detail-top {
  align-items: stretch;
}

.uh-actualite-date {
  margin: 0 0 1rem;
  line-height: var(--uh-lh-normal);
}

.uh-actualite-title {
  margin: 0 0 1.5rem;
  font-size: var(--uh-fs-3xl);
  line-height: var(--uh-lh-snug);
  color: var(--uh-theme-color);
}

.uh-actualite-content {
  line-height: var(--uh-lh-rich);
  color: var(--uh-theme-color);
}

.uh-actualite-content p:last-child {
  margin-bottom: 0;
}

.uh-actualite-content strong {
  font-weight: var(--uh-fw-semibold);
}

/* === Liste d'actualités === */

.uh-actualite-card-date {
  margin: 0 0 0.75rem;
  line-height: var(--uh-lh-normal);
  color: var(--uh-theme-color);
}

.uh-actualite-card-title {
  margin: 0 0 1.5rem;
  line-height: 1.25;
  color: var(--uh-theme-color);
}

/* Shared cards responsive */

@media (max-width: 991.98px) {
  .uh-evenements-list,
  .uh-actualites-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--uh-card-grid-gap-y-tablet) var(--uh-card-grid-gap-x-tablet);
  }
}

@media (max-width: 767.98px) {
  .uh-evenements-list,
  .uh-actualites-list {
    grid-template-columns: 1fr;
    gap: var(--uh-card-grid-gap-mobile);
  }

  .uh-evenement-card-image,
  .uh-actualite-card-image {
    margin-bottom: var(--uh-card-image-margin-mobile);
  }
}

.uh-share-link {
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.uh-share-link:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* PAGES D'ERREURS */

.uh-error-page {
  max-width: 36rem;
}

.uh-error-code {
  font-family: "Sora", sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--uh-theme-color);
}

.uh-error-page h1 {
  font-family: "Roboto Serif", serif;
  font-weight: 600;
}

.uh-error-page p {
  font-family: "Sora", sans-serif;
}
