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

html,
body {
  height: 100%; /* Assure que le contenu occupe toute la hauteur */
  background-color: #efaab0;
  margin: 0;
  padding: 0;
  cursor: url("img/aero_arrow__pink.cur"), auto;
}

a:hover,
button:hover,
.project-slider:hover,
.project-slider img:hover,
.project-slider video:hover {
  cursor: url("img/aero_link__pink.cur"), pointer;
}

.troisd {
  text-align: center;
}

.header {
  padding: 1.5rem 0;
  background: transparent;
  color: #fff9f5;
  z-index: 100;
  position: relative;
}

.header-link {
  text-decoration: none;
  font-size: 8.5vw;
  font-family: "Nighty DEMO", cursive;
  font-weight: 300;
  color: #be0822;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}
.header-link:hover {
  color: #fff9f5;
}

.header h1 {
  margin-top: 1rem;
}

.project {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 50px;
}

.project-text {
  flex: 1;
  min-width: 250px;
  max-width: 30%;
  font-family: "Cabinet Grotesk", sans-serif;
  color: #be0822;
  padding: 50px;
  z-index: 1;
}

.project-text h2 {
  text-decoration: underline;
  font-size: 3rem;
  margin-bottom: 15px;
  text-align: left;
}

.project-text p {
  font-size: 1.5rem;
  line-height: 2;
  text-align: left;
}

.project-slider-wrapper {
  flex: 2;
  display: flex;
  width: 100%;
  max-width: 66.66%;
  position: relative;
  overflow: hidden;
}

/* ✅ Projet impair (par défaut) → images à droite */
.project:not(.reverse) .project-slider-wrapper {
  justify-content: flex-end;
}

/* ✅ Projet pair (.reverse) → images à gauche */
.project.reverse .project-slider-wrapper {
  justify-content: flex-start;
}

.project-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.project-slider img,
.project-slider video {
  max-height: 80vh;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .project,
  .project.reverse {
    flex-direction: column;
  }
}

.project:nth-child(even) {
  flex-direction: row-reverse;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: none;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.texture-bg {
  position: fixed; /* fixe, ne défile pas */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("img/back6.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0; /* Derrière tout */
  pointer-events: none;
}
