@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/* ---- Mise en page ---- */

html.lenis,
html.lenis body {
  height: auto;
}

p {
  margin: 0;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: #141414;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Logo */
.loader-inner img {
  width: 120px;
  opacity: 0;
  animation: logoFade 1.2s ease forwards;
}

/* Animations */
@keyframes logoFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Fix for composer page layout collapse with Lenis */
html.lenis body.composer-page {
  height: 100vh;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  margin: 0;
  padding: 0;
  background: #111;
  font-family: "Space Grotesk", sans-serif;
}



/* ---- Footer ---- */

.footer {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background-color: transparent;
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9em;
  z-index: 10;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #aaa;
}

.footer-home {
  padding-bottom: 2rem;
}


/* ---- Background Elements ---- */

.fade-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.fade-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 12s infinite;
}

.fade-container img:first-child {
  animation-delay: 0s;
}

.fade-container img:last-child {
  animation-delay: 6s;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://static.tildacdn.com/tild3265-3261-4333-a361-353739633737/noise.gif");
  background-size: 70px;
  opacity: 0.13;
  z-index: 1000;
  pointer-events: none;
}

/* Reduced noise for specific content pages */
.qui-sommes-page .noise-overlay,
.directeurs-artistiques-page .noise-overlay,
.programmes .noise-overlay,
.realisations .noise-overlay,
.composer-page .noise-overlay,
.contact-page .noise-overlay {
  opacity: 0.10;
}

/* ---- Animation du fondu ---- */
@keyframes fade {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* ---- Homepage Layout ---- */

.home-page .page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

.home-page .content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-page .menu-container {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.menu {
  display: flex;
  flex-direction: column;
  padding: 9rem 9rem;
  gap: 24px;
  z-index: 10;
}

.logo {
  width: 240px;
  max-width: 100%;
  margin-bottom: 2%;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.menu-links a {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1.3cm;
  color: white;
  text-decoration: none;
  padding: 0 5px;
  transition: color 0.3s ease;
}

.menu-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: white;
  z-index: -1;
  transition: width 0.3s ease;
}

.menu-links a:hover {
  color: black;
  /* Invert text color for visibility */
}

.menu-links a:hover::before {
  width: 100%;
}


/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 50px;
  padding-bottom: 22px;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-content-wrapper {
  display: flex;
  align-items: center;
  width: 94%;
}

.header-logo {
  height: 80px;
}

.header-page-title-white {
  color: #ffffff;
  margin-left: 30px;
  text-transform: uppercase;
}

.header-page-title-black {
  color: #111;
  margin-left: 30px;
  text-transform: uppercase;
}

.header-contact-btn {
  margin-left: auto;
  color: white;
  border: 1px solid white;
  padding: 6px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-contact-btn:hover {
  background-color: rgb(255, 255, 255);
  color: black;
}

.header-hidden {
  transform: translateY(-100%);
}

.mobile-only {
  display: none !important;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.header-logo-mobile {
  display: none;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #111;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 19px;
}

body.menu-open {
  overflow: hidden;
}

.bg-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.scroll-spacer {
  height: 5vh;
  pointer-events: none;
}

.scroll-spacer-wide {
  height: 80vh;
  pointer-events: none;
}

/* qui-sommes-nous */


.page-qui-sommes-nous {
  height: 200vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  background-image: url("images/fond1.gif");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2rem;
  max-width: 45vw;
  margin: 0 auto;
}

.container-a {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 50px 0;
  z-index: 10;
}

.container-b {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 50px 0;
  z-index: 10;
}

.title {
  font-family: "Space Grotesk", sans-serif;
  color: white;
  font-size: 4em;
  font-weight: 600;
  text-transform: uppercase;
  margin-block: 20px;
}

.text {
  font-family: "Space Grotesk", sans-serif;
  color: white;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.6em;
}

.exergue {
  font-family: "Space Mono", monospace;
  color: white;
  font-size: 2em;
  font-weight: 400;
  line-height: 1.6em;
  margin: 9rem 0;
}

.separator-line {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 40px 0;
  width: 100%;
}

.team-section {
  display: flex;
  gap: 40px;
}

.team-member {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-member img {
  width: 100%;
  height: auto;
  display: block;
}

.member-name {
  font-family: "Space Grotesk", sans-serif;
  color: #77bee8;
  font-size: 1.7em;
  font-weight: 400;
  padding-top: 7px;
  margin: 0;
}

.member-bio {
  font-family: "Space Grotesk", sans-serif;
  color: white;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.6em;
  margin: 0;
}

.logo-section {
  display: flex;
  gap: 15rem;
  margin-top: 55px;
}

.logo-member {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.logo-member img {
  width: 100%;
  height: auto;
  display: block;
}

/* directeurs artistiques */
.da-portrait-mobile {
  display: none;
}



.da-section {
  display: grid;
  gap: 40px;
  margin-bottom: 80px;
  z-index: 10;
}

.da-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.da-bg-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.da-bg-item.active {
  opacity: 1;
}

.da-member {
  max-width: 1200px;
  margin: 9vw auto;
  display: flex;
  gap: 80px;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.da-member-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.da-member-name {
  font-family: "Space Grotesk", sans-serif;
  color: white;
  font-size: 3.2em;
  font-weight: 400;
  padding-bottom: 8px;
  margin: 0;
}

.da-member-role {
  font-family: "Space Grotesk", sans-serif;
  color: #77bee8;
  font-size: 1.7em;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: -8px;
  line-height: 1em;
}

.da-content {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  padding: 5rem 10rem;
}

.button-da {
  display: flex;
  justify-content: right;
  margin-top: 20px;
}

.button-da a {
  font-family: "Space Mono", monospace;
  display: inline-block;
  margin-top: 10px;
  padding: 4px 36px;
  border: 1px solid #77bee8;
  color: #77bee8;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.2em;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.button-da a:hover {
  background: #77bee8;
  color: #ffffff;
}


/* ---------PROGRAMMES--------- */

.mobile-header-image {
  display: none;
}


body.programmes {
  margin: 0;
  background: #ffffff;
  color: rgb(11, 11, 11);
}


/* Wrapper principal */
.slides-container {
  display: grid;
  grid-template-areas: "slide";
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Slide de base (caché) */
.program-slide {
  grid-area: slide;
  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: space-between;

  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;

  /* État inactif */
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  visibility: hidden;

  transition: opacity 0.75s ease, transform 0.75s ease, visibility 0.75s ease;
}


/* Slide actif (visible) */
.program-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
  visibility: visible;
  position: relative;
}

/* Images de fond spécifiques - Desktop Only */
@media screen and (min-width: 481px) {
  .program-slide:nth-child(1) {
    background-image: url("images/boheme3.gif");
    background-color: white;
  }

  .program-slide:nth-child(2) {
    background-image: url("images/capriccio.gif");
    background-color: white;
  }

  .program-slide:nth-child(3) {
    background-image: url("images/contrebasse.gif");
    background-color: rgb(255, 255, 255);
  }

  .program-slide:nth-child(4) {
    background-image: url("images/vin.gif");
    background-color: white;
  }
}


.program-image {
  height: 45vh;
  overflow: hidden;
}

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

.program-content {
  position: relative;
  margin-top: auto;
  padding: 4rem 13rem;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}


.program-content h1 {
  font-weight: 450;
  font-size: 3.5rem;
  margin: 0;
}

.intro {
  font-size: 1.3em;
  font-weight: 200;
  margin: 0;
}

.infos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 1.8em 0;
}

.infos h4 {
  margin: 0;
  font-weight: 500;
  font-size: 1em;
  border: 1px solid var(--accent);
  padding: 20px;
}

.program-slide .btn {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
  width: 300px;
  padding: 7px 0;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.buttons-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}


.program-slide .btn {
  margin-top: 0;
}

.btn.btn-contact {
  margin-left: auto;
  color: white;
  background: var(--accent);
}

.btn.btn-next {
  color: white;
  background: var(--accent);
}

.program-slide .btn:hover {
  background-color: var(--accent);
  color: white;
}

.program-content-wrapper {
  position: relative;
}


/* --------- NOS RÉALISATIONS --------- */

body.realisations {
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
  background-color: #0b0b0b;
}

.bg-overlay {
  position: fixed;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url("images/alto-rose-trans.gif");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  /* Dark overlay effect */
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.75);
}

.projects-container {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 15vh 0 10vh 0;
  gap: 20px;
}

.project-row {
  display: flex;
  flex-direction: row;
  height: 50vh;
  width: 70%;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.project-info {
  width: 30%;
  min-width: 300px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  z-index: 2;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info h2 {
  font-family: "Space Grotesk", sans-serif;
  color: white;
  font-size: 2.5rem;
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.1em;
}

.project-link {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.project-link:hover {
  text-decoration-thickness: 2px;
}

.project-info h3 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent, #77bee8);
  /* Use a default accent color */
  font-size: 1.2rem;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-info p {
  font-family: "Space Grotesk", sans-serif;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.6em;
  margin: 0;
  max-width: 400px;
}

.project-carousel {
  flex: 1;
  width: 70%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Removed drag cursor styles */

.carousel-track {
  display: flex;
  height: 100%;
  width: max-content;
  user-select: none;
  will-change: transform;
}

.carousel-item {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  padding-right: 4px;
  position: relative;
  overflow: hidden;
}

.carousel-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  pointer-events: none;
  /* Prevents default image drag behavior */
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  font-weight: 100;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1em;
}

.close-lightbox:hover {
  transform: rotate(90deg);
  color: #77bee8;
}

/* --------- COMPOSEZ VOTRE CONCERT --------- */

.composer-page {
  position: absolute;
  background-image: url("images/chef-bleu-b.gif");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.composer-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.central-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 45vh;
  height: 45vh;
  z-index: 1;
  pointer-events: auto;
  /* Enable clicks */
  cursor: pointer;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  padding: 48px;
  transition: all 0.3s ease;
}

.central-logo:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.central-logo svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Floating Dynamic Text on Central Logo */
.logo-floating-text {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-floating-text.top-left {
  top: 0;
  left: 0;
  transform: translate(0, -150%);
}

.logo-floating-text.bottom-left {
  bottom: 0;
  left: 0;
  transform: translate(0, 150%);
}

/* Ensure SVG content is visible against dark bg */
.cls-1 {
  fill: #333;
  /* Dark grey by default, lighter than bg */
  transition: fill 0.3s ease;
}


.config-column {
  position: absolute;
  top: 50%;
  transform: translateY(-45%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.left-column {
  left: 10%;
}

.right-column {
  right: 10%;
}

.config-block {
  /* Removed absolute positioning */
  width: 350px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  /* Ensure relative for z-index context if needed */
}

.config-block:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.block-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  color: white;
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}

.block-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4em;
}

/* Mobile Selector Styles (Carousel) */
.mobile-selector-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.selector-arrow {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 10px;
  z-index: 5;
  transition: opacity 0.3s;
}

.selector-arrow:hover {
  opacity: 0.7;
}

.selector-arrow.prev::before {
  content: "‹";
}

.selector-arrow.next::before {
  content: "›";
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.config-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 3px 25px;
  text-align: left;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.config-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}

.config-btn.active {
  background: white;
  color: black;
  border-color: white;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-input,
.form-textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-textarea {
  resize: none;
  height: 80px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent, #77bee8);
  background: rgba(0, 0, 0, 0.5);
}

.submit-btn {
  background: var(--accent, #77bee8);
  color: white;
  border: none;
  padding: 10px;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: white;
  color: black;
}

/* --------- CONTACT --------- */

.page-contact {
  height: 110vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  background-image: url("images/fond1.gif");
  background-size: cover;
  background-position: bottom;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.contact-container {
  position: relative;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 4rem;
  max-width: 800px;
  margin: 10vh auto 5vh;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.contact-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-align: center;
}

.contact-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6em;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 700px;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.form-group label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px;
  color: white;
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent, #77bee8);
}

.submit-btn-contact {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: 1rem;
  letter-spacing: 1px;
}

.submit-btn-contact:hover {
  background-color: white;
  color: black;
}

.contact-direct {
  display: flex;
  flex-direction: row;
  gap: 3rem;
}

/* --------- RESPONSIVE 1600PX --------- */
@media screen and (max-width: 1600px) {

  /* Programmes */

  .btn.btn-contact {
    margin-left: 0;
  }

  /* Composez votre événement */
  .composer-page {
    overflow-y: auto;
    height: auto;
  }

  .composer-container {
    height: auto;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .central-logo {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 350px;
    height: 350px;
    margin: 20px 0;
  }

  .config-column {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    align-items: center;
    gap: 30px;
  }

  .project-info h2 {
    font-size: 2rem;
  }

}


/* --------- RESPONSIVE 1024PX --------- */

@media screen and (max-width: 1024px) {

  /* Site Header */
  .header-content-wrapper {
    width: 90%;
  }

  /* Index.html */
  .menu {
    padding: 6rem 4rem;
  }

  /* Qui sommes-nous ? */
  .container {
    max-width: 80vw;
  }

  /* Directeurs artistiques */
  .da-member {
    gap: 40px;
    padding: 0 5vw;
  }

  /* Programmes */
  .program-content {
    padding: 3rem 4rem;
  }

  .program-content h1 {
    font-size: 2.5rem;
  }

  .infos {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Nos Réalisations */
  .project-row {
    width: 90%;
  }

  /* Contact */
  .contact-container {
    width: 85%;
    padding: 3rem 2rem;
  }
}

/* --------- RESPONSIVE 768PX --------- */

@media screen and (max-width: 768px) {

  /* Global */
  .mobile-only {
    display: flex !important;
  }

  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
  }

  .header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
  }

  .header-logo {
    display: none;
  }

  .header-logo-mobile {
    display: block;
    height: 16px;
    width: auto;
  }

  .header-page-title-white,
  .header-page-title-black {
    display: none;
  }

  .header-contact-btn {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hamburger-btn.active span {
    background-color: white !important;
    /* Force white in overlay */
  }

  /* Index.html Mobile Adaptation */
  .menu-container {
    height: auto;
    align-items: center;
    justify-content: center;
    padding-top: 30vh;
  }

  .menu {
    padding: 2rem;
    align-items: center;
    text-align: center;
  }

  .menu-links {
    align-items: center;
  }

  .menu-links a {
    font-size: 1.4em;
    line-height: 1.7em;
  }

  /* Qui sommes-nous ? */
  .container {
    max-width: 90vw;
    gap: 2rem;
  }

  .title {
    font-size: 3em;
  }

  .team-section {
    flex-direction: column;
    gap: 2rem;
  }

  .container-b {
    align-items: center;
  }

  .logo-section {
    flex-direction: column;
    gap: 3rem;
    width: 200px;
  }

  /* Directeurs artistiques */
  .da-member {
    flex-direction: column;
    gap: 20px;
    margin: 15vw auto;
    backdrop-filter: none;
    background: transparent;
  }

  .da-content {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
  }

  .da-member-name {
    font-size: 2.5em;
  }

  /* Programmes */

  /* Nos Réalisations */
  .project-row {
    flex-direction: column;
    height: auto;
    width: 95%;
  }

  .project-info {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .project-carousel {
    height: 40vh;
    width: 100%;
  }

  /* Composez votre événement */
  .central-logo {
    width: 250px;
    height: 250px;
  }

  .config-block {
    width: 90%;
    max-width: 350px;
  }

  /* Contact */
  .contact-title {
    font-size: 2.2rem;
  }

  .form-row {
    flex-direction: column;
  }
}

/* --------- RESPONSIVE 480PX --------- */

@media screen and (max-width: 480px) {

  /* Global */
  .header-page-title-white,
  .header-page-title-black {
    display: none;
    /* Hide page title to keep space for logo and contact */
  }

  .header-contact-btn {
    font-size: 0.8em;
  }

  .menu-container {
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 8rem 0;
  }

  .menu {
    padding: 0;
    align-items: center;
    text-align: center;
  }

  /* Index.html */
  .logo {
    width: 140px;
  }

  .menu-links {
    gap: 12px;
    align-items: center;
    padding-top: 50px;
  }

  .menu-links a {
    font-size: 1.2em;
  }

  .footer-home {
    position: relative;
  }

  /* Qui sommes-nous ? */
  .title {
    font-size: 2.2em;
  }

  .text {
    font-size: 0.95em;
  }

  .team-member {
    margin-bottom: 5rem;
  }

  /* Directeurs artistiques */
  .da-member-name {
    font-size: 2em;
  }

  .button-da a {
    font-size: 0.9em;
    padding: 4px 20px;
  }

  /* Directeurs artistiques, Composer, Qui sommes-nous & Contact - Mobile Fixed Background Workaround */
  body:has(.da-section)::before,
  body.composer-page::before,
  body.qui-sommes-page::before,
  body.contact-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/fond1.gif");
    background-position: top;
    background-size: auto;
    z-index: -1;
  }

  body.realisations::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/alto-rose-trans.gif");
    background-position: center;
    background-size: cover;
    z-index: -1;
    opacity: 0.4;
  }

  .page-qui-sommes-nous,
  .page-realisations,
  .page-contact {
    display: none;
  }

  .da-background-container {
    display: none;
  }

  .da-section {
    padding-top: 95px;
  }

  .da-member {
    flex-direction: column;
    gap: 20px;
    margin: 40px auto;
    width: 90%;
    padding: 0;
  }

  .da-portrait-mobile {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .da-content {
    padding: 1.5rem;
    max-width: 100%;
  }

  .da-member-name {
    font-size: 2.2em;
    padding-bottom: 5px;
  }

  .program-slide {
    display: none;
    background-color: #ffffff;
  }

  .program-slide.active {
    display: flex;
  }

  .program-content {
    margin-top: 0;
  }

  .mobile-header-image {
    display: block;
    width: 100%;
    margin-top: 50px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }

  .mobile-header-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }


  .program-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
  }

  .intro {
    font-size: 1em;
  }

  .buttons-container {
    flex-direction: column;
    align-items: stretch;
  }

  .program-slide .btn {
    width: 100%;
  }

  /* Nos Réalisations */

  .page-realisations {
    position: relative;
  }

  .project-info h2 {
    font-size: 1.8rem;
  }

  .project-carousel {
    height: 30vh;
  }

  /* Composez votre événement */

  .logo-floating-text {
    display: none;
  }

  .central-logo {
    width: 200px;
    height: 200px;
    padding: 20px;
  }

  .block-title {
    font-size: 1.6rem;
    margin: 7px 0 0 0;
    text-align: center;
    color: #ffffff;
  }

  .block-desc {
    display: none;
    /* Hide descriptions as requested */
  }

  .contact-form {
    width: auto;
    padding: 20px;
  }

  /* Responsive Carousel for Composer Mobile */
  .left-column {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .config-block {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .selector-arrow {
    display: block;
    /* Show arrows on mobile */
  }

  .button-group {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    scroll-behavior: smooth;
  }

  .config-btn {
    flex: 0 0 100%;
    /* Only one button visible */
    text-align: center;
    border: none;
    background: transparent;
    transition: transform 0.4s ease;
  }

  .config-btn.active {
    background: transparent;
    color: var(--accent, #ffffff);
  }

  /* Contact */
  .contact-container {
    padding: 2rem 1rem;
    margin-top: 15vh;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  .contact-text {
    font-size: 0.9em;
  }

  .contact-direct {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    justify-content: center;
  }
}