body.no-scroll {
  overflow: hidden;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  opacity: 1;
  transition: opacity 2s ease;
}

.intro-overlay.intro-hide {
  opacity: 0;
  pointer-events: none;
}

html.intro-already-seen .intro-overlay {
  display: none !important;
}

#intro-lottie svg {
  max-height: 70vh;
  max-width: 90vw;
  width: auto !important;
  height: auto !important;
}
.carousel-wrapper,
.carousel-track {
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: auto;
  overflow: hidden;
}

.carousel-slide img {
  height: 100vh;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.carousel-caption {
  z-index: 1;
  position: absolute;
  bottom: 128px;
  margin: 0 80px;
  text-align: left;
  color: var(--color-orange);
  cursor: pointer;
}
.carousel-caption,
.filtre {
  touch-action: pan-y;
}
.carousel-text {
  display: flex;
  flex-direction: column;
  gap: 0px;
  transition: color 0.2s ease, fill 0.2s ease;
}
.carousel-text svg {
  z-index: 2;
  width: 100%;
  height: var(--height-texture);
  opacity: 0;
  transition: opacity .3s ease;
}
.carousel-text path {
  fill: var(--color-darkorange);
}
@media (hover: hover) and (pointer: fine) {
  .carousel-text:hover svg {
    opacity: 1;
  }
  .carousel-text:hover {
    color: var(--color-darkorange);
  }
}

.caption-title,
.caption-subheadline {
  display: block;
  transition: opacity 0.4s ease;
}

.filtre {
  z-index: -1;
  position: absolute;
  background: #000000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  height: 500px;
  left: -80px;
  bottom: -128px;
  width: 100vw;
}

/* Flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 0 32px;
  cursor: pointer;
  z-index: 10;
  transition: fill 0.2s ease;
}
.carousel-btn:hover path {
  fill: var(--color-darkorange);
}
.carousel-btn:disabled {
  cursor: not-allowed;
}
.carousel-btn:disabled:hover .out{
  fill: var(--color-orange);
}
.carousel-btn:disabled .in {
  fill: rgba(0, 0, 0, 0);
}

.prev { left: 8px; }
.next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.carousel-dots span {
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-orange);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dots span.active {
  border: 1px solid var(--color-orange) !important;
  background: var(--color-orange);
  transition: border 0.2s ease;
}

.carousel-dots span:hover {
  border: 1px solid var(--color-darkorange);
}

.home-agenda {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows:  auto;
  grid-template-areas:
    ". . ."
    "table table table";
  gap: 16px 32px;
  align-items: center;
  align-content: center;
  padding: var(--padding);
}
.home-agenda-table {
  grid-area: table;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  overflow: hidden;
}
.agenda-link :hover{
  color: var(--color-darkorange);
}
.agenda-link :hover .ligne-lien path {
  fill: var(--color-darkorange) !important;
}
.agenda-link .ligne-lien {
}
.agenda-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.agenda-label-row {
  font-family: var(--font-family-soustitre);
  font-size: 1.33rem;
  text-transform: lowercase;
}
.agenda-events-row {
  display: flex;
  gap: 1.8vw;
}
.agenda-event-item {
  display: flex;
  flex-direction: column;
  height: fit-content;
}
.agenda-event-date, .agenda-event-lieu {
  font-size: 0.89rem;
  font-family: var(--font-family-sans);
}
.agenda-event-lieu {
  margin-top: 1px;
}
.agenda-event-titre {
  font-size: 1.33rem;
}
.agenda-event-sous-titre {
  font-size: 0.89rem;
  text-transform: uppercase;
}

.agenda-vertical {
  height: 100%;
}
.bigvertical {
  height: 100%;
}
.agenda-vertical svg {
  height: 100%;
  width: 2px;
}
.agenda-vertical svg path {
  fill: var(--color-black);
}
.home-top {
  display: flex;
  width: 100%;
  margin-top: 12px;
  justify-content: space-between;
  align-items: center;
}

#creations {
  scroll-margin-top: 200px;
}

.composition-section {
  display: flex;
}
.composition-section-content {
  width: 100%;
  padding-right: var(--padding-right);
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-items: center;
  gap: 16px 0;
}
.template-crea {
  grid-template-areas:
  "ligne ligne "
  "titre bouton"
  "filtre filtre"
  "content content";
}
.template-publi {
  grid-template-areas:
  "ligne ligne "
  "titre bouton"
  "content content";
}
.template-manifest {
  grid-template-areas:
  "ligne ligne "
  "titre bouton"
  "content content";
}

.home-h3 {
  grid-area: titre;
}
.home-bouton {
  grid-area: bouton;
  justify-self: right;
}
.home-content {
  grid-area: content;
}

.grid-filters {
  margin: 0px 0 32px;
  height: fit-content;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  grid-area: filtre;
}
.filter-btn {
  height: fit-content;
  font-size: 1.33rem;
  transition: color 0.2s ease;
}
.filter-btn.is-active {
  color: var(--color-darkorange);
}
.filter-btn.is-active .ligne-lien path {
  fill: var(--color-darkorange) !important;
}
.filter-btn:hover .ligne-lien path {
  fill: var(--color-darkorange) !important;
}
.filter-btn:hover {
  color: var(--color-darkorange);
}

/* Switch de vue : simple bouton à deux états */
.view-toggle[aria-pressed="true"] {
  background: var(--color-darkorange);
  color: var(--color-light);
}

/* Home : conteneur des deux vues */
.home-grid-container {
  position: relative;
  min-height: 480px;
}

/* Home : grille simple */
.home-grid {
  display: grid;
  list-style: none;
  grid-gap: 24px 12px;
  grid-template-columns: repeat(3, 1fr);
}
.home-sections .home-grid {
  grid-template-columns: repeat(4, 1fr);
}
.home-grid li {
  position: relative;
}
.home-grid a {
  display: block;
}
.home-grid li:hover figcaption {
  color: var(--color-darkorange);
}
.home-grid img {
  aspect-ratio: 16/10;
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}
.home-grid figcaption {
  display: flex;
  flex-direction: column;
  font-size: 1.33rem;
}
.album-titre {
  font-weight: normal;
  text-transform: uppercase;
}

.home-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.theme-section {
}
.theme-section-title {
  margin-bottom: 16px;
  color: var(--color-black);
  text-transform: uppercase;
  font-family: var(--font-family-serif);
}
.theme-section .home-grid {
  margin-bottom: 0;
}

.home-manifeste {
  padding: var(--padding);
}
.home-manifeste-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  margin: 64px 0;
}
.home-manifeste-logo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 1.33rem;
  color: var(--color-darkorange);
}
.home-manifeste-logo svg {
  height: 716px;
  width: auto;
}
.home-manifeste-logo path {
  fill: var(--color-darkorange);
}
.home-manifeste-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  white-space: pre-wrap;
  font-size: 1.78rem;
}

@media screen and (max-width: 1600px) {
  .carousel-caption {
    max-width: 74%;
    bottom: 88px;
  }

  .grid-filters {
    gap: 32px;
  }

  .home-manifeste-content {
    margin: 40px 0;
  }
  .home-manifeste-text {
    font-size: 1.33rem;
  }
  .home-manifeste-logo {
    font-size: 1rem;
  }
  .home-manifeste-logo svg {
    height: 583px;
  }
}

@media screen and (max-width: 1020px) {
  .carousel-wrapper {
    height: 100svh;
  }
  .carousel-caption {
    max-width: unset;
    bottom: 72px;
    margin: 0 24px;
  }
  .carousel-text {
    gap: 4px;
  }
  .carousel-text svg {
    opacity: 0;
    height: var(--height-texture-s);
    transition: opacity 0.3s ease;
  }
  .carousel-text.is-ready svg {
    opacity: 1;
  }
  .carousel-text path {
    fill: var(--color-orange);
  }
  .carousel-text:hover {
    color: unset;
  }
  .filtre {
    left: -24px;
  }
  .carousel-btn {
    display: none;
  }
  .carousel-dots {
    bottom: 32px;
    gap: 16px;
  }
  .carousel-dots span {
    width: 8px;
    height: 8px;
  }

  #creations {
  scroll-margin-top: 100px;
  }

  .home-agenda {
    padding: var(--padding-s);
    grid-template-columns: auto 1fr;
    grid-template-areas:
    ".     .    "
    "table table"
    ".     .    ";
    justify-content: center;
    gap: 16px 16px;
  }

  .home-agenda-table {
    margin-bottom: 16px;
  }
  .agenda-label-row {
    display: none;
    font-size: 1.56rem;
  }
  .agenda-event-sous-titre {
    font-size: 1.33rem;
  }
  .agenda-event-titre {
    font-size: 2.22rem;
  }
  .agenda-event-date, .agenda-event-lieu {
    font-size: 1rem;
  }

  .home-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .home-sections .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
  }
  .filter-btn {
    font-size: 1.33rem;
    justify-self: left;
  }
  .composition-section-content {
    gap: 8px;
    padding-right: 17px;
  }
  .composition-section-content h3 {
    margin-bottom: 12px;
  }
  .composition-section-content > *:nth-child(n+3) {
    margin-bottom: 32px;
  }
  .home-grid {
    gap: 16px 4px;
  }
  .home-grid figcaption .album-soustitre {
    font-size: 1.11rem;
  }
  .home-sections .home-grid figcaption {
    font-size: 1rem;
  }
  .home-sections .home-grid figcaption .album-soustitre {
    font-size: 0.89rem;
  }

  .template-crea {
    grid-template-areas:
    "ligne ligne "
    "titre titre"
    "filtre filtre"
    "bouton bouton"
    "content content";
  }
  .template-publi {
    grid-template-areas:
    "ligne ligne "
    "titre titre"
    "content content"
    "bouton bouton";
    }
  .template-manifest {
    padding-right: 0;
    grid-template-areas:
    "ligne ligne "
    "titre titre"
    "content content"
    "bouton bouton";
    }
  .home-bouton {
    justify-self: center;
  }

  .home-publications-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
  .template-publi .bouton {
    margin-bottom: 0;
  }
  .home-manifeste {
    padding: var(--padding-s);
  }
  .home-manifeste-content {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .home-manifeste-logo {
    font-size: 0.78rem;
  }
  .home-manifeste-logo svg {
    height: 300px;
  }
  .home-manifeste-text {
    gap: 24px;
    font-size: 1.11rem;
    line-height: 1.4;
  }
}
