/* <style> */
/* --- Animation de duplication au début --- */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 100000;
  transition: transform 2s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(0);
  will-change: transform;
}

.intro-overlay.slide-up {
  transform: translateY(50%);
}

.intro-overlay.hidden {
  display: none;
}

.duplication-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -2.5%;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(15, 80px);
  grid-template-rows: repeat(15, 80px);
  gap: 10px;
  justify-content: center;
  align-content: center;
  opacity: 1;
  transition: all 0.1s ease;
  margin-left: -2.5%;
  position: relative;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.duplicated-image {
  width: 200px;
  height: 200px;
  background-image: url("../images/home.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.duplicated-image.center {
  border-color: rgba(255, 255, 255, 0);
  transform: scale(1.1);
  background-position: center;
}

.scroll-hint {
  font-family: Text;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255, 255, 255);
  font-size: 16px;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #fff, #ccc, #fff);
  z-index: 10001;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgb(255, 255, 255);
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(10, 50px);
    grid-template-rows: repeat(10, 50px);
    gap: 6px;
  }

  .duplicated-image {
    width: 50px;
    height: 50px;
    font-size: 8px;
  }
}

/* --- Styles globaux --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Eurostile", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #ffffff;
}

/* --- Polices de caractères --- */
@font-face {
  font-family: "Text";
  src: url("../fonts/eurostile/EurostileLTStd-Ex2-copy.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "TitreFont";
  src: url("../fonts/eurostile/EurostileLTStd-BoldEx2.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Titrechapitre";
  src: url("../fonts/eurostile/ABCStefan-Simple-Trial.woff2")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* --- Navigation --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-family: "Eurostile";
  z-index: 10001;
  padding: 15px;
  display: flex;
  justify-content: space-around;
  opacity: 0;
  transition: opacity 4s ease;
  pointer-events: auto;
  will-change: opacity;
  transform: translateZ(0);
}

.main-nav.visible {
  opacity: 1 !important;
}

.main-nav:hover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-family: "Text";
  z-index: 1000;
  padding: 15px;
  display: flex;
  justify-content: space-around;
}

.nav-link {
  font-family: "Text";
  color: #ffffff;
  background-color: #000000;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  filter: blur(3px);
}

.nav-link.active {
  background-color: #ffffff;
  color: #000000;
}

/* --- Section Introduction --- */
.intro-section {
  background-image: url("../images/home.jpg");
  background-color: #000000;
}

.intro-section::before {
  font-family: "Eurostile";
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 10000;
}

.main-title {
  font-family: "Titrechapitre";
  font-size: clamp(3rem, 8vw, 8rem);
  margin-bottom: 50px;
  text-align: center;
  padding: 0 10px;
  line-height: 1;
  position: relative;
  z-index: 2;
  color: #000000;
}

.intro-content {
  font-family: "Eurostile";
  position: relative;
  z-index: 2;
  width: 100%;
}

.manifesto {
  font-family: "Text";
  font-size: 2.5rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #000000;
}

/* --- Sections communes --- */
.section {
  min-height: 100vh;
  position: relative;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  transform: translateZ(0);
  background-color: #ffffff;
}

.section:first-of-type {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.section-title {
  position: absolute;
  font-family: "Titrechapitre";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2rem, 5vw, 5rem);
  color: #ffffff;
  padding: 2px 3px;
  text-align: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
}

.section:hover .section-title {
  opacity: 1;
}

/* --- Section 1: Image évasive --- */
.section-1 {
  background-color: #ffffff00;
}

/* --- Section 2: Images en mouvement --- */
.section-2 {
  background-color: #ffffff;
}

.moving-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.moving-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 320px;
  opacity: 0;
  transition: transform 0.1s linear;
  object-fit: cover;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

.moving-image-1 {
  background-image: url("../images/random1.jpg");
}

.moving-image-2 {
  background-image: url("../images/random2.jpg");
}

.moving-image-3 {
  background-image: url("../images/random3.jpg");
}

.moving-image-4 {
  background-image: url("../images/random4.jpg");
}

/* --- Section 3: Grille d'images floutées --- */
.section-3 {
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
}

.post-content {
  width: 100%;
  height: 100%;
  filter: blur(10px);
  transition: filter 0.5s ease;
  background-size: cover;
  background-position: center;
}

.post.revealed .post-content {
  filter: blur(0);
}

.fullscreen-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-align: center;
  z-index: 1000;
}

.fullscreen-message.visible {
  opacity: 1;
  pointer-events: auto;
}

.message-text {
  color: #ffffff;
  font-size: 32px;
  max-width: 80%;
}

/* --- Section 4: Superposition d'images avec scroll --- */
.section-4 {
  background-color: #ffffff;
}

.stack-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.image-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stack-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background-position: center;
  background-size: cover;
  background-image: url("../images/scroll.jpg");
}

.stack-image-1 {
  z-index: 5;
}

.stack-image-2 {
  z-index: 4;
}

.stack-image-3 {
  z-index: 3;
}

.stack-image-4 {
  z-index: 2;
}

.stack-image-5 {
  z-index: 1;
}

/* --- Footer --- */
footer {
  font-family: "Text";
  text-align: center;
  background-color: #000000;
  color: #f0f0f0;
  align-items: center;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 100;
}

footer p {
  font-family: "Text";
  padding: 15px;
}

iframe {
  width: 100vw;
  height: 100vh;
  margin: 0;
  border: none;
  overflow: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: absolute;
  top: 0;
  left: 0;
}

iframe::-webkit-scrollbar {
  display: none;
}

/* Style spécial pour la dernière section avec auto-scroll */
.section-4 {
  scroll-snap-align: center;
}

/* Indicateur visuel lors du scroll automatique */
.auto-scrolling {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 768px) {
  .main-nav {
    padding: 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
  }

  .manifesto {
    font-size: 1.5rem;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .main-nav {
    padding: 5px;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
  }

  .manifesto {
    font-size: 1.2rem;
  }
}
/* </style> */