/* XPA — expo.css */

@import url('base.css');

:root {
    --padding-top-shell-page: 50px;
    --padding-right-shell-page: 80px;
    --padding-bottom-shell-page: 40px;
    --padding-left-shell-page: 80px;
}

html,
body {
  background: var(--xpa-mutted-parchment);
  
  scrollbar-width: none;
}

body {
  color: #232323;
  overflow-x: hidden;
    scrollbar-width: none;
  background-image: url(../img/COMPO_EXPO.png);
  background-size: contain;
  background-repeat: repeat;
}


.xpa-expo {
  position: relative;
  height: 100vh;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

/* Colonne de contenu : elle défile avec la page, sous la bannière. */
.xpa-expo-inner {
  position: relative;
  z-index: 1;
  width: 70%;
  height: auto;
  min-width: 0;
  margin-left: 30%;
  overflow: visible;
  /*background-color: var(--xpa-dark);*/
  margin-top: 50px;
  color: #fff;
}

/* Bannière d'entrée : elle prend la colonne de contenu (70 % sur desktop). */
.xpa-expo-banner-enter {
  position: relative;
  /* Le carrousel de bannière passe au-dessus de l'aside fixe (z-index 20). */
  z-index: 21;
  height: 100vh;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  background: var(--xpa-dark);
}

/* IMP: Même correctif que la home pour l'iPhone 6.
   100dvh et window.innerHeight sous-estiment la hauteur réelle, donc le
   conteneur s'arrête avant le bas de l'écran et laisse une bande claire.
   On cale la hauteur sur le grand viewport, puis on étend le fond de la
   page du même débord que la home (--xpa-bg-bleed) pour couvrir la zone
   que Safari laisse sous la barre flottante. */
@supports (height: 100lvh) {
  /* NOTE: performa.css importe ce fichier. On cible le template expo pour
     ne pas figer le body ni couper le scroll des autres pages. */
  body[data-template^="xpa-expo"] {
    height: 100lvh;
    min-height: calc(100lvh + var(--xpa-bg-bleed, 0px));
    overflow: hidden;
  }

  html:has(body[data-template^="xpa-expo"]) {
    height: 100lvh;
    min-height: calc(100lvh + var(--xpa-bg-bleed, 0px));
    overflow: hidden;
  }

  .xpa-expo,
  .xpa-expo-banner-enter {
    height: 100lvh;
  }
}

.xpa-expo-banner-video,
.xpa-expo-banner-slides,
.xpa-expo-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.xpa-expo-banner-video,
.xpa-expo-banner-img {
  object-fit: cover;
}

.xpa-expo-banner-img {
  display: block;
  width: 100%;
  height: 100%;
}

.xpa-expo-banner-slide {
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.xpa-expo-banner-slide.is-active {
  opacity: 1;
}

.xpa-expo-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.xpa-expo-banner-content .xpa-expo-title {
  font-size: 5rem;
  max-width: 100%;
  margin: 0;
}

.xpa-expo-banner-content .xpa-expo-dates {
  margin-left: 0;
  margin-bottom: 14px;
}

.xpa-expo-banner-content .xpa-expo-tarifs {
  align-self: center;
  margin-top: 14px;
}

/* Textes libres posés sur la bannière. */
.xpa-expo-banner-topright {
  position: absolute;
  z-index: 3;
  top: 14vh;
  right: 4vw;
  max-width: min(34ch, 80%);
  margin: 0;
  padding: 6px 10px;
  background: var(--xpa-green);
  color: var(--xpa-dark);
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: right;
}

.xpa-expo-banner-bottom {
  position: absolute;
  z-index: 3;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(70ch, calc(100% - 120px));
  margin: 0;
  padding: 6px 10px;
  background: var(--xpa-green);
  color: var(--xpa-dark);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.xpa-expo-banner-copyright {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 3px 7px;
  background: rgba(35, 35, 35, 0.72);
  color: var(--xpa-mutted-parchment);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.xpa-expo-content {
  padding: 0 var(--padding-right-shell-page) var(--padding-bottom-shell-page) var(--padding-left-shell-page);
}

/* Contenu sous le titre : les blocs crème se détachent sur l'image. */
.xpa-expo-body {
  background: transparent;
  color: var(--xpa-dark);
}

.xpa-expo-section {
  background: var(--xpa-mutted-parchment);
  margin-bottom: 36px;
}



.xpa-expo-body .xpa-expo-intro p,
.xpa-expo-body .xpa-expo-text p {
  color: var(--xpa-dark);
  background-color: var(--xpa-mutted-parchment);
  padding: 20px 36px;
}

.xpa-expo-body .xpa-expo-row {
  color: var(--xpa-dark);
  border-bottom-color: rgba(35, 35, 35, 0.3);
}

.xpa-expo-body .xpa-expo-tag {
  border-color: rgba(35, 35, 35, 0.5);
}

/* Colonne de droite : panneau du lieu en haut, filtres en bas. */
.xpa-expo-side {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  width:30%;
  overflow: hidden;
  height: 100vh ;
  /* Laisse passer le logo fixe en haut et la bascule de langue en bas. */
  padding: 115px 32px 70px;

  /* L'aside n'apparaît qu'après la bannière (classe posée par expo.js). */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  /*padding: 24px;

  backdrop-filter: blur(2px); */
  /*background: var(--xpa-dark);*/
  color: #fff;
  /*background-image: url('../img/Experimenta_charbon.png');
  background-size: cover;*/
     /* background-image: linear-gradient(rgba(206, 225, 84, 0.541), rgba(206, 225, 84, 0.541)), url(image.jpg); */
}

.xpa-expo-side.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: var(--xpa-mutted-parchment);
}

/*

.xpa-expo-side::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  background-image: url(../img/Experimenta_sol.png);
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  pointer-events: none;
}
  */

.xpa-expo-side .xpa-expo-venue-content {

  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--xpa-mutted-parchment) transparent;

}

.xpa-expo-side .xpa-expo-venue-content::-webkit-scrollbar {
  width: 4px;
}

.xpa-expo-side .xpa-expo-venue-content::-webkit-scrollbar-track {
  background: transparent;
}

.xpa-expo-side .xpa-expo-venue-content::-webkit-scrollbar-thumb {
  background: var(--xpa-mutted-parchment);
  border-radius: 999px;
}

.xpa-expo-side .xpa-expo-venue-content::-webkit-scrollbar-thumb:hover {
  background: var(--xpa-mutted-parchment);
}


.xpa-b-logo-img {
  display: block;
  position: absolute;
  right: 20px;
  top: 20px;
  filter: brightness(0) invert(1) !important;
  mix-blend-mode: difference;
  height: 46px;
  width: auto;
  z-index: 40;
  
}

.xpa-expo-bg-img {
  display: block;
  max-width: 150px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  background-color: var(--xpa-mutted-parchment);
  padding: 6px;
}
.xpa-expo-bg-img.is-active {
  background-color: var(--xpa-green);
}

/* Titre + dates */
.xpa-expo-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 50px 0 70px;
  width: 100%;
}

.xpa-expo-head-venues {
  display: flex;
  flex-wrap: wrap;
  margin-left: 30px;
}
.xpa-expo-head-venues li {
  max-width: 260px;
  padding: 5px 10px;
  list-style: none;
  background-color: var(--xpa-green);
}
.xpa-expo-head-venue-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.xpa-expo-head-venue-addr {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.65;
}

.xpa-expo-dates {
  width: fit-content;
  max-width: calc(100% - 60px);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background-color: var(--xpa-green);
  color: var(--xpa-dark);
  padding: 4px 8px;
  margin-left: 60px;
}

.xpa-expo-tarifs {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background-color: var(--xpa-green);
  color: var(--xpa-dark);
  padding: 4px 8px;
   align-self: flex-end;
}

.xpa-expo-title {
  min-width: 0;
  max-width: 100%;
  font-size: 6rem;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 14px 18px;
  background-color: var(--xpa-green);
  color: var(--xpa-dark);
}

.xpa-expo-list-title {  
  font-size: 3.5rem;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  padding: 14px 18px;
  background-color: var(--xpa-green);
  color: var(--xpa-dark);
  width: fit-content;
  margin-top: 15vh;
  z-index: 50;
}

.xpa-expo-white-separator {
  width: 100vw;
  height: 8vh;
  background-color: var(--xpa-mutted-parchment);
}


/* Chapeau global p */
.xpa-expo-intro p {
  max-width: 68ch;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--xpa-dark);
}

.xpa-expo-intro h1,
.xpa-expo-works-title {
  margin: 0;
  padding: 4px 10px;
  background-color: var(--xpa-green);
  width: fit-content;
  font-size: 0.85rem;
  margin-left: -30px;
  line-height: 1.5;
  text-transform: uppercase;
}


/* Texte dynamique du lieu */
.xpa-expo-text p {
  margin: 0;
 /* column-count: 2;*/
  column-gap: 32px;
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--xpa-dark);
}


.xpa-expo-intro .grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}
.xpa-expo-intro .grid + .grid {
  margin-top: 28px;
}
.xpa-expo-intro .column {
  grid-column: span var(--span, 12);
  min-width: 0;
}
.xpa-expo-intro .column .blocks > * + * {
  margin-top: 0.6em;
}

@media (max-width: 800px) {
  .xpa-expo-intro .column {
    grid-column: span 12;
  }
}

.xpa-expo-texts {
  min-width: 0;
}
.xpa-expo-text { display: none; }
.xpa-expo-text.is-active { display: block; }

.xpa-expo-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0;
}

.xpa-expo-side .xpa-expo-filter {
  width: 100%;
  flex-direction: row;
  align-items: flex-start;
  color: var(--xpa-mutted-parchment);
}


/*
.xpa-expo-side .xpa-expo-filter:nth-child(2) {
    align-items: flex-end;
}
*/
.xpa-expo-side .xpa-expo-filter > span {
    background-color: var(--xpa-mutted-parchment);
    color: var(--xpa-dark);
    text-align: left;
    width: max-content;
font-size: 0.95rem;
    line-height: 1.2;

}

.xpa-expo-side .xpa-expo-bg-img {
  max-width: 100%;
}

.xpa-expo-filter {
  display: inline-flex;
  align-items: self-start;
  /* padding: 12px 20px; */
  border: 1px solid #232323;
   padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  color: #232323;
  /* font-size: 1.2rem; */
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease, margin-left 0.25s ease-in-out;
}

.xpa-expo-filter>span {
  background-color: var(--xpa-mutted-parchment);
}

.xpa-expo-filter:hover {
  filter: brightness(1.2);
}

.xpa-expo-filter.is-active > span {
  background: var(--xpa-green);
  color: #232323;
}

.xpa-expo-filter >span {
  padding: 2px 6px;
}

.xpa-expo-filter.is-active {
  background: none;
  padding: 0px;
  margin-left: 20px;
}

/* FILTRES + CARTON D'INFOS PAR LIEU */
.xpa-expo-venue {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: auto;
  padding: 26px;
  margin-bottom: 45px;
  overflow: visible;
  scrollbar-width: none;
  background: var(--xpa-green);

}

.xpa-expo-venue-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
  scrollbar-width: none;
  margin-top: 20px;
}

/* Tous les panneaux partagent la même cellule : la hauteur ne bouge plus
   quand on change de filtre. */
.xpa-expo-venue-panel {
  grid-area: 1 / 1;
  display: flex;
  align-self: start;
  visibility: hidden;
  pointer-events: none;
  padding: 10px 15px;
}

.xpa-expo-venue-panel.is-active {
  visibility: visible;
  pointer-events: auto;
  background: var(--xpa-mutted-parchment);
}

.xpa-expo-venue-infos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  /*border: 1px solid #232323;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.35);*/
  align-items: start;
}

.xpa-expo-venue-dl {
  position: relative;  
  z-index: 1;
  margin: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  border-top: 1px solid rgba(35, 35, 35, 0.18);
}
.xpa-expo-venue-dl dt {
  margin: 0;
  padding: 8px 0 6px;
  font-size: 0.9rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--xpa-dark);
  border-bottom: 1px solid rgba(35, 35, 35, 0.18);
}

.xpa-expo-venue-dl dd {
  margin: 0;
  padding: 10px 0 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--xpa-dark);
  border-bottom: 1px solid rgba(35, 35, 35, 0.18);
}

.xpa-expo-venue-dl dd:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.xpa-expo-venue-dl a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.xpa-expo-side .xpa-expo-venue-infos,
.xpa-expo-side .xpa-expo-venue-dl {
    color: var(--xpa-dark);
}

.xpa-expo-side .xpa-expo-venue-dl a,
.xpa-expo-side .xpa-expo-venue-all-item {
    color: var(--xpa-dark);
}

.xpa-expo-venue-dl > :first-child {
  margin-top: 0;
}

.xpa-expo-venue-all {
  margin: 0;
}

.xpa-expo-venue-all-item {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(35, 35, 35, 0.18);
  background: transparent;
  color: var(--xpa-dark);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.xpa-expo-venue-all-item:first-child {
  border-top: 1px solid rgba(35, 35, 35, 0.18);
}

.xpa-expo-venue-all-item > span {
  display: block;
  width: auto;
  padding: 0;
  background: none;
}

.xpa-expo-venue-all-name {
  font-size: 0.9rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--xpa-dark);
}

.xpa-expo-venue-all-addr {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.65;
}

.xpa-expo-venue-all-item:hover .xpa-expo-venue-all-name,
.xpa-expo-venue-all-item:focus-visible .xpa-expo-venue-all-name {
  text-decoration: underline;
}

.xpa-expo-venue-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.xpa-expo-venue-hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.xpa-expo-venue-hours li + li {
  margin-top: 2px;
}
.xpa-expo-venue-hours li:last-child {
  border-bottom: none;
}
.xpa-expo-hour-day {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}
.xpa-expo-hour-val {
  text-align: right;
}

.xpa-expo-hour-extra-txt {
  font-size: 0.76rem;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .xpa-expo-venue {
    padding: 20px;
  }

  .xpa-expo-venue-panel {
    justify-content: center;
  }

  .xpa-expo-intro p {
    font-size: 1rem;
    padding: 16px 18px !important;
  }
}

/* LISTE DES EXPO  */
.xpa-expo-list-wrap {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: var(--xpa-mutted-parchment);
  padding: 36px;
}

/* Nah
.xpa-expo-row:first-child {
  padding-top: 0;
}
*/

.xpa-expo-list-head {
  padding-bottom: 12px;
  margin-top: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.xpa-expo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xpa-expo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title tags"
    "venue tags";
  column-gap: 30px;
  row-gap: 4px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(35, 35, 35, 0.18);
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--xpa-dark);
}

.xpa-expo-row:last-child {
  border-bottom: 0;
}



.xpa-expo-row-main {
  display: contents;
}

.xpa-expo-row-image {
  display: none;
}

.xpa-expo-row::before {
  content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 110vw;
    transform: translateX(-50%);
    background: transparent;
    transition: background-color 0.2s ease;
    z-index: -1;
    pointer-events: none;
}

.xpa-expo-row[data-fiche-open]:hover::before {
    background-color: rgba(206, 225, 84, 0.7);
}

/*
.xpa-expo-row[data-fiche-open]:hover {
  color: var(--xpa-dark);
} */

.xpa-expo-row[data-fiche-open] {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/*
.xpa-expo-row[data-fiche-open]:hover {
  background: rgba(35, 35, 35, 0.04);
}
  */
.xpa-expo-hover-image {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 320px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  transition: opacity 0.25s ease;
  background: #e4dfe8;
  will-change: transform, opacity;
}
.xpa-expo-hover-image.is-visible {
  opacity: 1;
}
.xpa-expo-hover-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 320px;
}

@media (max-width: 900px) {
  .xpa-expo-hover-image {
    display: none;
  }
}

.xpa-expo-col-venue {
  grid-area: venue;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  align-self: start;
  font-family: var(--fontBrownL);
}
.xpa-expo-col-title { 
  grid-area: title;  
  font-size: 1.2rem;
  line-height: 1.15;
  align-self: start;
}
.xpa-expo-col-lieu  { grid-area: lieu; }

/* Noms (artistes / chercheurs) affichés en petit sous le titre (page Expo) */
.xpa-expo-title-cast {
  display: flex;
  flex-direction: row;
}
.xpa-expo-person-name {
  opacity: 1;
}
.xpa-expo-person-role {
  opacity: 0.7;
}
.xpa-expo-col-dates { grid-area: dates; }
.xpa-expo-col-tags  { grid-area: tags; 
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  align-self: start;
}
.xpa-expo-col-open  { grid-area: open; justify-self: end; }

.xpa-expo-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(35, 35, 35, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--fontBrownL);
}

.xpa-expo-row .xpa-expo-col-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #232323;
  color: #232323;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.xpa-expo-row .xpa-expo-col-open:hover {
  background: #232323;
  color: #f3eff5;
}
.xpa-expo-row .xpa-expo-col-open svg { display: block; }

.xpa-expo-list-empty {
  padding: 30px 0;
  font-size: 1rem;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .xpa-expo-list-head { display: none; }
}



/* Pas de footer sur la page Expo (pour l'instant) ???*/
.xpa-footer {
  display: none;
}

/*  Pas de .xpa-spectacles */
.xpa-expo:not(.xpa-spectacles) .xpa-expo-col-title {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  white-space: normal;
}

.xpa-expo-title-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.xpa-expo-title-text {
  flex: 0 1 auto;
  min-width: 0;
}

.xpa-expo-title-badge {
  flex: 0 0 auto;
  display: inline-block;
  padding: 2px 8px;
  background: var(--xpa-green);
  color: var(--xpa-dark);
  font-size: 0.75rem;
  align-self: center;
  white-space: nowrap;
}

.xpa-expo-title-artists {
  flex: 0 0 auto;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.7;
}

.xpa-expo:not(.xpa-spectacles) .xpa-expo-col-tags {
  justify-content: flex-end;
  align-self: start;
}



@media (max-width: 900px) {
  .xpa-expo:not(.xpa-spectacles) .xpa-expo-col-title {
    flex-wrap: wrap;
  }
}

/* VERSION MOBILE */
@media (max-width: 768px) {

  :root {
    --title-margin-top-mobile: calc(70px + 2 * 10px + 2 * 15px);
  }

  .xpa-expo-inner {}
  .xpa-expo-head {
    margin-top: var(--title-margin-top-mobile);
  }
  .xpa-expo-dates {}
  .xpa-expo-title {
    font-size: 3.2rem !important;
  }

  .xpa-expo-filters {
    min-height: 0;
  }
  .xpa-expo-filter.is-active > span {
    text-align: left;
    width: min-content;
    min-width: 100px;
  }
  .xpa-expo-bg-img {}

  .xpa-expo-text p {
    column-count: 1;
    padding: 16px 18px !important;
  }
  .xpa-expo-venue-content {}
  .xpa-expo-venue-infos {}
  .xpa-expo-venue-all {}
  .xpa-expo-venue-hours {}

  .xpa-expo-list-title {
    font-size: 2.12rem;
    margin-top: 50px;
    padding: 8px;
  }
  .xpa-expo-list-wrap {
    padding: 16px 18px !important;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-row-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .xpa-expo-tag {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  /* Image du spectacle */
  .xpa-expo:not(.xpa-spectacles) .xpa-expo-row-image {
    display: block;
    flex: 0 0 auto;
    align-self: stretch;
    width: min(34%, 140px);
    overflow: hidden;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-row-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-col-venue {
    align-self: flex-start;
    width: auto;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-col-title {
    align-items: flex-start;
    width: 100%;
    white-space: normal;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-title-line {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-title-text {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-title-badge {
    align-self: center;
    font-size: 0.6rem;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-title-artists {
    font-size: 0.7rem;
  }

  .xpa-expo:not(.xpa-spectacles) .xpa-expo-col-tags {
    justify-content: flex-start;
    margin-top: 4px;
  }

  /*  Tags de la liste  */
  .xpa-expo:not(.xpa-spectacles) .xpa-expo-col-tags {
    font-size: 0.58rem;
  }  
}

/* Colonne de droite : passe dans le flux, filtres au-dessus des infos. */
@media (max-width: 1024px) {
  /* La bannière prend toute la hauteur de l'écran : on ajoute le débord
     mesuré (--xpa-bg-bleed) pour ne pas laisser de bande sous le carrousel. */
  .xpa-expo,
  .xpa-expo-banner-enter {
    height: calc(var(--app-height, 100dvh) + var(--xpa-bg-bleed, 0px));
  }

  .xpa-expo-inner {
    width: 100%;
    margin-left: 0;
    padding: 0;
  }

  .xpa-expo-content {
    padding: 0 var(--margin) 48px;
  }

  /* Infos + filtres reviennent dans le flux. On remonte l'aside au-dessus
     du texte pour que les filtres ne bougent pas quand le contenu change. */
  .xpa-expo-body {
    display: flex;
    flex-direction: column;
  }

  .xpa-expo-side {
    order: -1;
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    margin: 24px 0 0;
    padding: 0;
    background: transparent;
    color: var(--xpa-dark);
    backdrop-filter: none;
    overflow: visible;
    /* NOTE: column-reverse place les filtres avant les infos du lieu. */
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Le fond de l'aside ne sert qu'au desktop : en mobile il masquerait
     le motif de la page. */
  .xpa-expo-side.is-visible {
    background: transparent;
  }

  .xpa-expo-side .xpa-expo-venue-content {
    min-height: 0;
    overflow: visible;
    margin-bottom: 50px;
    padding: 0;
  }

  .xpa-expo-side .xpa-expo-venue-infos,
  .xpa-expo-side .xpa-expo-venue-dl {
    color: var(--xpa-dark);
    width: 100%;
  }

  .xpa-expo-side .xpa-expo-venue-dl a,
  .xpa-expo-side .xpa-expo-venue-all-item {
    color: var(--xpa-dark);
  }

  .xpa-expo-filters {
    position: static;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    padding: 0;
    background: transparent;
  }

  .xpa-expo-side .xpa-expo-filter {
    width: 100%;
    flex-direction: row;
    max-width: 100%;
    padding: 2px;
    background-color: var(--xpa-mutted-parchment);
    border: 1px solid rgba(12, 18, 12, 0.35);
    width: fit-content;
    height: min-content;
  }

  .xpa-expo-side .xpa-expo-filter.is-active {
    background-color: var(--xpa-green);
    border-color: var(--xpa-green);
    width: fit-content;
  }

  .xpa-expo-side .xpa-expo-filter > span {
    background-color: transparent;
    border: 0;
    padding: 4px 8px;
    width: fit-content;
  }

  .xpa-expo-side .xpa-expo-bg-img {
    display: none;
  }
}
