@font-face {
  font-family: "MilitaryScribe";
  src: url("../fonts/MilitaryScribe/MilitaryScribe.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Review";
  src: url("../fonts/CTReview/Review-Regular.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Review";
  src: url("../fonts/CTReview/Review-Bold.otf");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Review";
  src: url("../fonts/CTReview/Review-RegularItalic.otf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Review";
  src: url("../fonts/CTReview/Review-BoldItalic.otf");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "ReviewWide";
  src: url("../fonts/CTReview/ReviewWide-Regular.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ReviewWide";
  src: url("../fonts/CTReview/ReviewWide-Bold.otf");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "ReviewWide";
  src: url("../fonts/CTReview/ReviewWide-RegularItalic.otf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "ReviewWide";
  src: url("../fonts/CTReview/ReviewWide-BoldItalic.otf");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "CaslonIonic";
  src: url("../fonts/CTCaslonIonic/CaslonIonic-Regular.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "CaslonIonic";
  src: url("../fonts/CTCaslonIonic/CaslonIonic-Bold.otf");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "CaslonIonic";
  src: url("../fonts/CTCaslonIonic/CaslonIonic-RegularItalic.otf");
  font-weight: normal;
  font-style: Italic;
}

@font-face {
  font-family: "CaslonIonic";
  src: url("../fonts/CTCaslonIonic/CaslonIonic-BoldItalic.otf");
  font-weight: bold;
  font-style: Italic;
}

@font-face {
  font-family: "Produkt";
  src: url("../fonts/CTProdukt/Produkt-Regular.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Produkt";
  src: url("../fonts/CTProdukt/Produkt-Semibold.otf");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Produkt";
  src: url("../fonts/CTProdukt/Produkt-RegularItalic.otf");
  font-weight: normal;
  font-style: Italic;
}

@font-face {
  font-family: "Produkt";
  src: url("../fonts/CTProdukt/Produkt-SemiboldItalic.otf");
  font-weight: bold;
  font-style: Italic;
}

:root {
  --gutter-width: 1em;
  --margin-width: 2em;
  --dark-color: #222222;
  --light-color: white;
  --inactive-color: #bbb8b8;
  --hightlight-color: red;
  --text-size: 1.2rem;
}

html {
  padding: env(safe-area-inset);
  scroll-padding-top: 3.8rem;
}

html,
body {
  -webkit-scroll-behavior: smooth;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  background-color: var(--light-color);
  font-size: 15px;
  line-height: 1.8rem;
  font-family: "Review", sans-serif;
  overflow-x: clip;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  color: var(--dark-color);
  margin: 0;
  padding: 0;
}

ul,
li {
  text-decoration: none;
  list-style: none;
  font-size: 1rem;
}

a,
a:visited,
a:active {
  text-decoration: none;
  color: currentColor;
}

h1 {
  font-family: "Review";
  font-size: 1.5rem;
  font-weight: bold;
}

h2,
h3,
p {
  font-size: 1rem;
}

h2,
h3 {
  font-family: "Review";
  font-weight: bold;
}

h4 {
  font-size: 1rem;
}

main p,
main h3,
main h2,
main li {
  font-size: var(--text-size);
}
h3.inactive {
  color: var(--inactive-color);
}
p > a {
  text-decoration: underline;
}

.font-le-plateau {
  font-family: "CaslonIonic", serif;
}

.font-les-reserves {
  font-family: "Produkt", serif;
}

.font-project-room {
  font-family: "MilitaryScribe", serif;
  font-size: clamp(2rem, -1.75rem + 12vw, 7rem) !important;
}

span.tag {
  /* font-weight: bold; */
  /* color: var(--inactive-color); */
  font-size: var(--text-size);
  /* color: var(--season-color); */
  /* font-family: "ReviewWide"; */
}

span {
  /* color: var(--inactive-color); */
}

/* HEADER */

header {
  background-color: var(--light-color);
  position: sticky;
  display: flex;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.5rem var(--margin-width);
  z-index: 999;
  justify-content: space-between;
  border-bottom: 1px solid var(--dark-color);
  z-index: 5;
  column-gap: var(--gutter-width);
}

header #logo {
  min-width: 140px;
}
header #logo h3 {
  word-break: keep-all;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

header nav ul label h3 {
  cursor: pointer;
  transition: color 0.1s ease-in-out;
}

header nav {
  display: flex;
  column-gap: var(--gutter-width);
}

.nav-toggler {
  display: none;
}
nav:has(ul input:checked) ul:has(> input:not(:checked)) h3,
nav:has(ul input:checked) a h3 {
  color: var(--inactive-color);
}

.nav-toggler:checked ~ .sub-menu {
  animation: roll-down 300ms ease-in-out both;
}

@keyframes roll-down {
  from {
    max-height: 0;
    padding: 0;
    z-index: 0;
  }
  to {
    max-height: 600px;
    padding: 0 0 calc(calc(var(--gutter-width) / 2) + 1px) 0;
    z-index: 9999;
    border-bottom: 1px solid var(--dark-color);
  }
}

header .sub-menu {
  position: absolute;
  width: 100vw;
  left: 0;
  display: flex;
  justify-content: center;
  column-gap: var(--gutter-width);
  background-color: var(--light-color);
  overflow: hidden;
  max-height: 0;
  margin-top: 0.5rem;
}

#menu-right {
  display: flex;
  column-gap: var(--gutter-width);
}

#menu-button-mobile {
  display: none;
}

#languages {
  display: flex;
}
#languages a {
  display: flex;
}
#languages a h3 {
  text-transform: capitalize;
}

#languages a:not(:first-child):before {
  content: "/";
}

#menu div:last-child a {
  display: inline-flex;
  text-transform: capitalize;
}

#menu div:last-child > a:not(:first-child):before {
  content: "/";
}

/*------------------------ HEADER MOBILE -----------------------*/
#mobile-nav-header {
  position: fixed;
  z-index: 5;
  right: 0;
  left: 0;
  top: 2.85rem;
  background: var(--light-color);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
  padding: 0 var(--margin-width);
}

#mobile-nav-header * {
  font-size: 1.2rem;
  line-height: 2rem;
}

#mobile-nav-header nav {
  display: flex;
  flex-wrap: nowrap;
  column-gap: var(--gutter-width);
  flex-direction: column;
  overflow: hidden;
}

#mobile-nav-header .sub-menu {
  flex-direction: column;
  width: auto;
  position: relative;
  border: 0;
  margin-top: 0;
  border-bottom: 0px !important;
}

#mobile-nav-toggle:checked ~ #mobile-nav-header {
  border-bottom: 1px solid var(--dark-color);
  padding: 0 var(--margin-width) var(--gutter-width) var(--gutter-width);
  grid-template-rows: 1fr;
}

/* FOOTER */

footer {
  grid-column: span 12;
  background-color: var(--light-color);
  padding: var(--gutter-width) var(--margin-width) var(--gutter-width)
    var(--margin-width);
  margin-top: var(--margin-width);
  border-top: 1px solid var(--dark-color);
  display: flex;
  flex-wrap: wrap;
}

#footer-logo {
  width: 15%;
}

#footer-logo img {
  width: 100%;
}

#footer-pages {
  width: 85%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: var(--gutter-width);
}

#footer-pages > * {
  width: 100%;
}

#footer-pages div h3 {
  margin-bottom: 1rem;
}

.social-media-icon {
  height: 1.5rem;
  width: 1.5rem;
  margin-right: 0.5rem;
}

.social-media-icon img {
  height: 100%;
  width: 100%;
}

.gallery-partenaires {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-partenaires p {
  font-size: 0.8rem;
  line-height: normal;
  text-align: center;
}
.gallery-partenaires img {
  width: auto;
  height: auto;
  max-height: 100px;
  max-width: 190px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Pictogramme */

.pictogramme {
  height: 7.5rem;
}

.pictogramme img {
  height: 100%;
}

/* LAZYLOADING IMAGES */
.lazyload,
.lazyloading {
  opacity: 0;
}

.lazyloaded {
  opacity: 1;
  transition: opacity 300ms;
}

picture {
  display: block;
  position: relative;
}

picture.blured:after {
  content: "\A";
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: calc(100% + 2rem);
  height: calc(100% + 2rem);
  border: var(--light-color) 2rem solid;
  filter: blur(6px);
  box-sizing: border-box;
  display: block;
}

/* EXPOSITION ITEMS */

.exposition-item {
  grid-column: span 4;
  margin-bottom: 3rem;
}

.exposition-item h1.font-le-plateau {
  font-family: "CaslonIonic";
  /* font-weight: normal; */
  /* font-style: italic; */
}

.exposition-item h1.font-les-reserves {
  font-family: "Produkt";
  /* font-weight: normal; */
  /* font-style: italic; */
}

.exposition-item h1.exposition-artists {
  /* font-style: normal; */
}

.exposition-item picture {
  position: relative;
  display: block;
  height: auto;
}

.exposition-item picture::after {
  content: "\A";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: var(--light-color) 25px solid;
  filter: blur(6px);
  box-sizing: border-box;
  display: block;
}

.exposition-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  border: var(--light-color) 15px solid;
  object-fit: cover;
  display: block;
}

.exposition-item-resume {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--light-color);
  padding: 25px;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.exposition-item:hover .exposition-item-resume {
  opacity: 1;
}

.exposition-item-infos {
  padding: 0 24px;
}

/* ------------------------------page header------------------------------ */

#page-header {
  text-align: center;
  margin: var(--gutter-width) 0 3rem 0;
}

h1.page-title {
  font-family: "ReviewWide";
  font-size: 4rem;
  line-height: normal;
}

#grid {
  grid-column: 4 / span 8;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: var(--gutter-width);
  padding: 0;
}

main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: var(--gutter-width);
  padding: 0 var(--margin-width);
  min-height: calc(100dvh - 36rem);
}

aside {
  grid-column: 1 / span 3;
}

aside ul {
  position: sticky;
  top: 3.8rem;
}

aside ul li {
  /* list-style: disc inside; */
  font-weight: bold;
  line-height: 1.4rem;
  font-size: 1rem;
}

aside ul li a:before {
  content: "\2022";
  display: inline-block;
  margin-right: 0.5rem;
}

aside a {
  display: flex;
  align-items: center;
}

aside .pictogram {
  height: 3rem;
}

#filter-nav {
  display: flex;
  justify-content: center;
  column-gap: 4rem;
  padding: 0.25rem var(--margin-width);
  border-bottom: 1px solid var(--dark-color);
  background-color: var(--light-color);
  position: sticky;
  width: 100%;
  z-index: 4;
  top: 2.85rem;
}

#filter-nav > label {
  display: none;
}

.filter-category > label > h3::after,
#nav-filter-activation:checked ~ label > h3::after {
  content: " ⏷";
}

.filter-category > input:checked ~ label > h3::after,
#nav-filter-activation ~ label > h3::after {
  content: " ⏶";
}

.filter-category > input:checked ~ .filter-container {
  grid-template-rows: 1fr;
  padding: 1rem;
  border-bottom: 1px solid var(--dark-color);
}

.filter-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: all 0.3s ease-in-out;
  position: absolute;
  background: var(--light-color);
  padding: 0 1rem;
}

.filter-container ul {
  overflow: hidden;
}

#filter-nav ul {
  display: flex;
  column-gap: var(--gutter-width);
  flex-direction: column;
}

#filter-nav .filtering-label {
  display: flex;
}

#filter-nav .filtering-label > h3 {
  margin-left: 3px;
}

#filter-nav .filtering-label::before {
  content: "✖";
  display: inline-block;
  transition: all 300ms ease-in-out;
  transform-origin: 50% 50%;
  font-size: 1rem;
  transform: rotate(45deg);
  color: var(--inactive-color);
}

#filter-nav input:checked ~ .filtering-label::before {
  transform: rotate(0deg);
  color: var(--dark-color);
}

#filter-nav .filtering-label h3 {
  transition: all 300ms ease-in-out;
  color: var(--inactive-color);
}

#filter-nav input:checked ~ .filtering-label h3 {
  color: var(--dark-color);
}

.filter-category > label h3 {
  padding: 0 1rem;
}

/* ------------------------------styling main blocks---------------------- */

.block {
  grid-column: 1 / span 8;
}

.block-text a,
.block-list a {
  text-decoration: underline;
}

.block-heading {
  text-indent: 2rem;
}

.block-heading img {
  width: 30%;
  margin: auto;
  display: block;
}

.block-text p {
  margin-bottom: 1rem;
}

.block-image.auto,
.block-gallery {
  grid-column: 2 / span 6;
  margin: 1rem 0;
}

.block-image.small {
  grid-column: 4 / span 2;
  margin: 1rem 0;
}

.block-image.medium {
  grid-column: 3 / span 4;
  margin: 1rem 0;
}

.block-image.large {
  grid-column: 2 / span 6;
  margin: 1rem 0;
}

.block-image.full {
  grid-column: 1 / span 8;
  margin: 1rem 0;
}

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

.block-gallery .swiper-slide {
  background-color: var(--light-color);
}

.block-gallery .swiper-slide picture,
.block-gallery .swiper-slide picture img {
  display: block;
  height: auto;
  width: 100%;
  object-fit: contain;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

figcaption {
  color: var(--inactive-color);
  font-size: 0.8rem;
  width: 70%;
  text-align: center;
  margin: auto;
  font-family: "review", sans-serif;
  line-height: 1.2rem;
  margin-top: 1rem;
}

.block-video {
  grid-column: 1 / span 7;
}

.block-video iframe,
.block-video video {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.block-list ul li {
  list-style: square inside;
  margin-bottom: 1rem;
}

.block-list ul li:last-child {
  margin-bottom: 0;
}

.block-line hr {
  border: none;
  border-bottom: 1px solid var(--dark-color);
}

.block-embed iframe {
  width: 100% !important;
}

#collection-en-ligne {
  width: 100% !important;
  height: auto !important;
}

.block-embed #acces-collections {
  width: 100% !important;
  aspect-ratio: 3/2;
  height: auto !important;
  border: none;
}

.block-big-title {
  grid-column: 2 / span 10;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.block-accordeon {
  border-bottom: 1px solid var(--dark-color);
  padding: 1rem 0 1rem 0;
}

.block-accordeon input {
  display: none;
}

.block-accordeon label h1 {
  cursor: pointer;
  margin-bottom: 1rem;
}

.block-accordeon label h1::before {
  content: "✖";
  display: inline-block;
  transition: all 300ms ease-in-out;
  transform-origin: 50% 50%;
  font-size: 1.5rem;
  transform: rotate(45deg);
  color: var(--dark-color);
  margin-right: 2rem;
}

.block-accordeon .accordeon-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
}

.block-accordeon .accordeon-container .accordeon-content {
  transition: max-height 30s ease-in;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: var(--gutter-width);
  overflow: hidden;
}

.block-accordeon input:checked ~ .accordeon-container {
  grid-template-rows: 1fr;
}

.block-accordeon input:checked ~ label h1::before {
  transform: rotate(0);
}

.tab {
  overflow: hidden;
  display: flex;
  justify-content: center;
  gap: var(--gutter-width);
  margin-bottom: 1rem;
}

.tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
}

.tab button h1 {
  color: var(--inactive-color);
}

.tab button.active h1 {
  color: var(--dark-color);
}

.tabcontent {
  display: none;
}

.tabcontent {
  animation: fadeEffect 1s;
  grid-template-columns: repeat(8, 1fr);
  display: grid;
  grid-gap: var(--gutter-width);
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* -----------------------BigSlider-------------------- */
.slider.large {
  margin: 3rem 0;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.swiper-wrapper {
  width: auto;
  height: auto;
}

.slider.large .swiper-slide picture,
.slider.large .swiper-slide picture img {
  display: block;
  height: 70vh;
  width: 100%;
  object-fit: contain;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.swiper-slide {
  width: auto;
}

#prev,
#next {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.swiper-controls {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--margin-width);
}

.swiper-button-next,
.swiper-button-prev {
  position: relative;
  width: 10%;
  /* background: red; */
  height: 100%;
  top: 0;
  margin: 0;
  color: var(--dark-color);
  font-weight: bold;
}
.swiper-button-prev {
  left: 0;
  justify-content: left;
}

.swiper-button-next {
  justify-content: right;
  right: 0;
}
.swiper-button-prev *,
.swiper-button-next * {
  fill: var(--dark-color);
}
.swiper-button-prev svg {
  transform: scaleX(-100%);
}
.swiper-button-next:after,
.swiper-button-prev:after {
  content: " ";
}

.swiper-button-next svg,
.swiper-button-prev svg {
  height: 1.5rem;
}

.swiper-pagination {
  position: relative;
  text-align: center;
  transition: 0.3s opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
  align-content: center;
}

.swiper-pagination-bullet {
  border-radius: 0;
  background: var(--inactive-color);
  width: 0.8rem;
  height: 0.8rem;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  opacity: var(--swiper-pagination-bullet-opacity, 1);
  background: var(--dark-color);
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 0;
  left: 0;
  width: 100%;
}

#prev p,
#next p {
  font-size: 30px;
}

#next {
  right: 0;
  justify-content: right;
}

.exposition-item h1 {
  /* font-weight: 400; */
  /* font-style: italic; */
}

/* --------------RDV ITEMS------------ */

.rdv-item {
  grid-column: 2 / span 10;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--dark-color);
  display: flex;
  flex-wrap: wrap;
}

.rdv-item.tocome:hover * {
  color: var(--season-color);
  cursor: pointer;
}

.rdv-item.tocome:hover {
  border-color: var(--season-color);
}

.rdv-item.tocome * {
  transition: all 0.3s ease-in-out;
}
.rdv-item .rdv-date {
  width: 20%;
  text-transform: capitalize;
}

.rdv-item .rdv-content {
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--gutter-width);
}

.rdv-item .rdv-content h1 {
  width: 100%;
  margin-bottom: 0.5rem;
}

.rdv-item .rdv-tags {
  width: 100%;
  text-align: right;
}

.rdv-item.ended,
.rdv-item.ended * {
  color: var(--inactive-color);
  border-color: var(--inactive-color);
}

.rdv-item.ended img {
  opacity: 0.3;
}

aside .rdv-date {
  text-transform: capitalize;
}

/* ---------------------Rendez-vous slider------------------- */

.swiper-pagination-bullet:only-child {
  display: block !important;
}
.block-rdvs .swiper-pagination {
  position: relative;
  top: 0;
  display: flex;
  justify-content: left;
  column-gap: calc(var(--gutter-width) / 2);
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-transform: capitalize;
}

.block-rdvs .swiper-pagination-bullet {
  width: auto;
  height: auto;
  border-radius: 0px;
  background: none;
  color: var(--inactive-color);
}

.block-rdvs .swiper-pagination-bullet-active {
  color: var(--dark-color);
}

.block-rdvs .swiper-pagination {
  border-bottom: 1px solid var(--dark-color);
}

.block-rdvs .swiper-slide picture,
.block-rdvs .swiper-slide picture img {
  height: auto;
}

.block-rdvs .swiper-slide {
  background-color: var(--light-color);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: var(--gutter-width);
  padding: 0;
  text-align: left;
}

.block-rdvs .rdv-item {
  grid-column: 1 / span 8;
}

@media screen and (max-width: 1000px) {
  html,
  body {
    font-size: 12px;
    line-height: 1.8rem;
  }
  :root {
    --gutter-width: 1em;
    --margin-width: 1.5em;
    --dark-color: #222222;
    --light-color: white;
    --inactive-color: #bbb8b8;
    --hightlight-color: red;
    --text-size: 1.2rem;
  }
  header * {
    font-size: 1.2rem;
    line-height: 2rem;
  }
  aside,
  #grid {
    grid-column: 1 / span 12;
  }

  .rdv-date,
  .rdv-content {
    width: 100%;
  }

  .expositions-container {
    position: relative;
  }

  #footer-logo {
    width: 180px;
    margin-bottom: 2rem;
  }
  #footer-pages {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: var(--gutter-width);
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
  }

  #footer-pages * {
    font-size: 1.2rem;
  }
  #footer-pages > * {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--dark-color);
    padding-bottom: 1rem;
    font-size: 2rem;
  }

  .gallery-partenaires img {
    max-height: 60px;
    max-width: 100px;
  }

  .gallery-partenaires {
    justify-content: left;
  }

  .footer-partenaires p {
    text-align: left;
  }

  .rdv-item .rdv-date {
    width: 100%;
    margin-bottom: 1rem;
  }

  .rdv-item .rdv-content {
    width: 100%;
  }

  #filter-nav * {
    font-size: 1.2rem;
    line-height: 2rem;
  }
}

@media screen and (max-width: 980px) {
  #menu-button-mobile {
    display: block;
  }

  header > nav {
    display: none;
  }

  h1.page-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 500px) {
  .block-image.auto,
  .block-image.small,
  .block-image.medium,
  .block-image.large,
  .block-image.full,
  .block-gallery {
    grid-column: 1 / span 8;
  }

  #filter-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    flex-direction: column;
    flex-wrap: wrap;
    column-gap: 1rem;
    padding: 0;
    transform: translateY(calc(100% - 3rem));
    transition: transform 0.5s ease-in-out;
    border-top: 1px solid var(--dark-color);
  }

  #filtering-nav-title {
    display: none;
  }

  #filter-nav > label {
    display: block;
  }

  #filter-nav > label {
    text-align: center;
    padding: 0.5rem 0;
  }

  #filter-nav:has(#nav-filter-activation:checked) {
    transform: translateY(0);
  }

  .filter-category {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--dark-color);
    padding: 0.5rem 0;
  }

  .filter-container {
    width: 100%;
    position: relative;
  }

  .filter-category > input:checked ~ .filter-container {
    border-bottom: 0;
  }
}
