html, body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: #000;
  overflow-x: hidden;
  scroll-behavior: smooth;

}

#backgroundCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* en dessous de tout */
  background: #000; /* couleur de fond par défaut */
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.letter.visible {
  opacity: 1;
  transform: translateY(0);
}

.loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.spinner {
  border: 2px solid rgba(255,255,255,.2);
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 30px; height: 30px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
  background: url('image/jpg/bg_01.jpg') no-repeat center center / cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  z-index: 1;
}



.main-content, header, .scroll-down {
  position: relative;
  z-index: 2;
}


a {
  text-decoration: underline;
  color: inherit;
  
}


.main-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 0 120px;
}
.intro-left h1 {
  font-size: 8rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.intro-left p {
  font-size: 1.3rem;
  font-weight: 350;
  color: #ccc;
  max-width: 600px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.appear.visible {
  opacity: 1;
  transform: translateY(0);
}





footer { padding: 40px; text-align: center; background: #00000; color: #777; }

/* 🚀 MOBILE OPTIMISÉ */

@media (max-width: 768px) {


  .main-content {
    flex-direction: column;
    padding: 0 30px;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }

  .intro-left h1 {
    font-size: 4.2rem; /* plus grand */
  }

  .intro-left p {
    font-size: 1.2rem; /* plus lisible */
    max-width: 95%;
  }


