/* INDEX */
.index-image {
  position: relative;
  min-height: 75vh;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

.index-image .background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.5) !important;
}

@media (max-width: 750px) {
  .index-image {
    min-height: 50vh;
  }

}

.index-image .hero-content {
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  color: white;
  max-width: 1000px;
  width: 100%;
}

.index-image .hero-content h1 {
  font-size: clamp(5rem, 20vw, 13rem);
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
  font-family: 'Woodstamp';
  color: var(--secondary-color);
  text-shadow: 0px 5px 40px rgba(0, 0, 0, 0.1);
}

.index-image .hero-content .subtitle1 {
  font-size: clamp(1rem, 2.5vw, 3rem);
  letter-spacing: 10px;
  text-transform: uppercase;
}

.index-image .hero-content .subtitle2 {
  font-size: clamp(1.6rem, 3vw, 3rem);
  margin: 0;
  text-shadow: 0px 5px 30px rgba(0, 0, 0, 0.1);
}

.index-image .hero-content .subtitle2 span {
  display: inline;
}

@media (max-width: 750px) {
  .index-image .hero-content .subtitle2 span {
    display: block;
  }
}

.index-image .hero-buttons {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.index-image .hero-buttons .btn {
  margin: 1rem auto;
}

.concept {
  text-align: center;
  padding: 40px;
  
}

/* horizontal slider */
.horizontal-gallery {
  height: auto;
  width: 100%;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.horizontal-gallery * {
  box-sizing: border-box;
}

.horizontal-gallery figure {
  padding: 0;
  margin: 0;
}

.horizontal-gallery .scroll {
  cursor: grab;
  height: 100%;
  width: 100%;
  position: relative;
  user-select: none;
  overflow-x: hidden;
  overflow-y: hidden;
  margin-bottom: 20px;
}

.horizontal-gallery .scroll-content {
  display: flex;
  position: relative;
  align-items: flex-start;
  height: auto;
  margin-left: 0;
  margin-right: 0;
  gap: 4vw;
  scroll-behavior: smooth;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-top: 0;
  padding-bottom: 20px;
}

.horizontal-gallery .scroll-content::-webkit-scrollbar {
  display: none;
}

.horizontal-gallery .slide {
  width: 40vw;
  height: 65vh;
  flex-shrink: 0;
  position: relative;
  margin-top: 0;
}

.horizontal-gallery .slide__inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.horizontal-gallery .slide__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.horizontal-gallery .slide__img figure {
  width: 100%;
  height: 100%;
}

.horizontal-gallery .slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.horizontal-gallery .slide__text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 4vw;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  z-index: 1;
}

.horizontal-gallery .slide__sub-title {
  margin-bottom: 1vw;
  color: var(--primary-color);
  text-align: center;
  letter-spacing: 8px;
  text-transform: uppercase;
}

 .horizontal-gallery .slide__sub-title a {
     color: var(--secondary-color);
     text-decoration: none;
 }

 .horizontal-gallery .slide__sub-title a:hover {
     text-decoration: underline;
 }

.horizontal-gallery .slide__title {
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
  z-index: 2;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1vw;
}

.horizontal-gallery .slide__description {
  max-width: 100%;
  white-space: normal;
  z-index: 2;
  margin-top: 0;
  text-align: center;
}

.slider-navigation {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav-button {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.nav-button:hover:not(:disabled) {
     color: color-mix(in srgb, var(--secondary-color) 80%, black);
}

.nav-button:disabled {
     opacity: 0.5;
     cursor: not-allowed;
}

@media (max-width: 1000px) {
    .horizontal-gallery {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .horizontal-gallery .scroll-content {
      padding-left: 10vw;
      padding-right: 10vw;
      gap: 20px;
      height: auto;
      align-items: flex-start;
      padding-top: 20px;
      padding-bottom: 20px;
    }

    .horizontal-gallery .slide {
      width: 80vw;
      height: 500px;
      flex-shrink: 0;
      position: relative;
      margin-top: 0;
      display: block;
    }

    .horizontal-gallery .slide__inner {
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .horizontal-gallery .slide__img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

     .horizontal-gallery .slide__img figure {
         width: 100%;
         height: 100%;
     }

    .horizontal-gallery .slide__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .horizontal-gallery .slide__text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
        z-index: 1;
    }

    .horizontal-gallery .slide__sub-title {
         margin-bottom: 10px;
         letter-spacing: 8px;
         font-size: 10px;
         text-align: center;
         text-transform: uppercase;
    }

      .horizontal-gallery .slide__sub-title a {
           color: var(--primary-color);
           text-decoration: none;
       }

       .horizontal-gallery .slide__sub-title a:hover {
           text-decoration: underline;
       }


     .horizontal-gallery .slide__title {
         white-space: normal;
         overflow-wrap: break-word;
         text-align: center;
         z-index: 2;
         font-weight: bold;
         margin-top: 0;
         margin-bottom: 10px;
     }

     .horizontal-gallery .slide__description {
          max-width: 100%;
          white-space: normal;
          z-index: 2;
          margin-top: 0;
          text-align: center;
          font-size: 1em;
     }


    .slider-navigation {
        position: static;
         bottom: auto;
         left: auto;
         transform: none;
         z-index: 10;
         display: flex;
         gap: 15px;
         justify-content: center;
    }

    .nav-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}


.competition-container {
  text-align: center;
  align-items: center;
}

.competition-container .btn {
  margin-top: 4rem;
}

.musique-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.bands-cards {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.band-card {
  flex: 1 1 calc(33.333% - 1.5rem); 
  margin-bottom: 2rem;
  text-align: center;
  max-width: 33.333%;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .band-card {
    flex: 1 1 calc(50% - 1.5rem); 
    max-width: calc(50% - 1.5rem);
  }

}

@media (max-width: 750px) {
  .band-card {
    flex: 1 1 100%; 
    max-width: 100%;
    margin-bottom: 0;
  }
}

.band-card .image-container {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: 260px;
  margin: 0 auto 20px;
}

.band-card .circle-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: var(--main-gradient);
  bottom: -5%;
  left: -8%;
  z-index: 0;
}

.band-card .image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.band-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-card .image-wrap:hover {
  transform: scale(1.02);
}


.PES-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.PES-image {
  flex: 1;
}

.PES-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.PES-texts {
  flex: 1;
  text-align: left;
}

.PES-texts h2 {
margin-top: 0;
}

.PES-texts .btn {
  margin-top: 3rem;
  }

@media (max-width: 1000px) {
  .PES-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .PES-texts {
    text-align: center;
  }
}


.partenaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 3rem;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 3rem;
  align-items: center;
  justify-items: center;
}

.partenaires-grid img {
  width: 100%;
  max-width: 140px;
  max-height: 100px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .partenaires-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* PROGRAMMATION */
.programme-2025 h1 {
  margin-bottom: 4rem;
}

.programme-links {
  align-items: center;
  margin-top: 4rem;
  margin-bottom: 8rem;
}

@media (max-width: 750px) {
  .programme-list {
    gap: 0.2rem;
  }
  .programme-list div {
    gap: 2px;
    font-size: 18px;
  }
}

.programme-links .icon {
  filter: brightness(0) invert(1);
}

/* TIMELINE STYLING */
.programme-days {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  justify-content: center;
}

.day {
  background-color: rgba(255, 255, 255, 0.0);
}

.day-date {
  text-align: center;
  font-size: 3em;
  line-height: 2.5;
  text-transform: uppercase;
  background: var(--main-gradient);
}

.programme-list {
  margin: 2rem 0;
  padding: 0;
}

.programme-list div {
  font-size: 1.3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 1rem;
  padding: 20px;
  border-bottom: 1px solid white;
}

.programme-list div:last-child {
  border-bottom: none;
}

dt {
  font-weight: bold;
  margin: 0;
  color: var(--primary-color);
}

dd {
  margin: 0;
}

@media (max-width: 860px) {
  .programme-days {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3rem;
  }

  .day-date {
    font-size: 2em;
  }

  .day {
    width: 100%;
  }
}

/* CONTEST */
.contest {
  position: relative;
  height: 70vh; 
  background: var(--main-gradient);
  margin-top: 6rem;
}

.scrolling-wrapper {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%; 
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
}

.marquee {
  display: flex;
  animation: marquee 20s linear infinite;
  min-width: 200%;
}

.marquee p {
  display: inline-block;
  white-space: nowrap;
  font-size: 75vh;
  line-height: 1;
  font-weight: bold;
  color: var(--background-color);
  text-transform: uppercase;
  font-family: 'Woodstamp';
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.contest img {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 115%;
  width: auto;
  z-index: 1;
  
}

@media (max-width: 860px) {
  .contest {
    height: 50vh;
  }
  .contest img {
    height: auto;
    width: 90%;
  }
  .marquee p {
    font-size: 55vh;
  }
}

.contest-date {
  background-image: var(--main-gradient);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.75rem;
  padding: 1rem 2rem;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  max-width: 500px;
  transform: rotate(-2deg);
  user-select: none;
  touch-action: manipulation;
  width: auto; 
  margin: 0 auto; 
}

.partenariat {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 4rem;
}

.contest-text-wrapper {
  text-align: center;
}

.inscription {
  text-align: center;
}

.borderline {
  border: 1px solid white;
  padding: 2rem;
}

.inscription h2 {
  margin-top: 1rem;
}

.logo-skatopia {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 4rem auto;
}

.logo-skatopia img {
  height: 200px;
  width: auto;
}

.contest-image-wrapper {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-height: 500px; 
}

.contest-image {
  overflow: hidden;
}

.contest-image:nth-child(1) {
  flex: 2;
}

.contest-image:nth-child(2) {
  flex: 1;
}

.contest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 750px) {
  .contest-date {
    margin-top: 4rem;
    font-size: 1.5rem;
  }

  .contest-text-wrapper {
    margin-bottom: 3rem;
  }

  .borderline {
    padding: 2rem;
  }
}


/* ESPACES ACTIVITES */
.espace-activites .title-wrap p {
  text-align: center;
  margin-bottom: 4rem;
}

.activities-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly; 
  gap: 1.5rem;
  width: 100%;
}

.activity-card {
  flex: 0 1 auto; 
  margin-bottom: 0.5rem;
  text-align: center;
  max-width: 200px; 
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

.activity-card .image-container {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.activity-card .circle-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: var(--main-gradient);
  bottom: -5%;
  left: -8%;
  z-index: 0;
}

.activity-card .image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.activity-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card .image-wrap:hover {
  transform: scale(1.02);
}

@media screen and (max-width: 767px) {
  .activities-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;
  }

  .activity-card {
    max-width: 140px; /* slightly smaller for mobile */
  }

  .activity-card .image-container {
    height: 140px;
  }
}


.festival-sections > div {
  margin-bottom: 2.5rem; 
}


/* ACCESSIBILITE */
.access-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.access-location .icon {
  filter: brightness(0) invert(1);
}

.adresse {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: center;
}

.accessibilite-text {
  padding: 3rem;
  text-align: center;
  max-width: 1000px;
  margin: auto;
}

.access-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  margin: auto;
}

#accessibilite span {
  color: #959595;
}

.access-wrapper > div {
  flex: 1;
  padding: 1rem;
}

@media (max-width: 750px) {
  .accessibilite-text {
    padding: 0;
  }

  .access-wrapper {
    gap: 0rem;
  }

  .access-wrapper h2 {
    margin-top: 0;
  }
}

@media (min-width: 751px) {
  .access-wrapper {
    flex-direction: row;
    gap: 4rem;
    position: relative;
  }

  .access-wrapper > div {
    position: relative;
  }
  .access-wrapper > div:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -2rem;
    width: 1px;
    height: 100%;
    background-color: #ccc;
  }
}


/* CONTACT */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
  margin-inline: auto;
}

.contact-image {
  flex: 1 1 300px;
  max-width: 500px;
}

.contact-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contact-info {
  flex: 1 1 400px;
  text-align: left;
}

.contact-info h1 {
  margin-bottom: 4rem;
}

.contact-info p {
  margin-bottom: 3rem;
  font-size: 1.5rem;
  text-align: center;
}

.contact-item {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

@media (max-width: 961px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .contact-image {
    order: 2;
    margin-top: 0.5rem;
  }

  .contact-info {
    order: 1;
    text-align: center;
  }
}
