/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=Montserrat:wght@200;300;400&display=swap');

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

body {
  font-family: 'Montserrat', sans-serif;
  color: #f8f8f8;
  background: #0a0a0a;
  overflow-x: hidden;
  line-height: 1.6;
}

section {
  min-height: 100vh;
  width: 100%;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(20, 20, 30, 0.85) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
}

section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
  z-index: 2;
}

section:nth-child(1) {
  background-image: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

section:nth-child(2) {
  background-image: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1513297887119-d46091b24bfa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

section:nth-child(3) {
  background-image: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

section:nth-child(4) {
  background-image: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1513297887119-d46091b24bfa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

section:nth-child(5) {
  background-image: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

section:nth-child(6) {
  background-image: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1513297887119-d46091b24bfa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

section:hover {
  transform: scale(1.02);
}

section > * {
  z-index: 3;
  position: relative;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 3rem;
  color: #ffffff;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(255, 255, 255, 0.2);
  letter-spacing: 3px;
  line-height: 1.2;
  position: relative;
  padding: 0.5rem 0;
  text-align: left;
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  padding-left: 1.5rem;
}

h1::after {
  display: none;
}

h2 {
  font-size: 2rem;
  font-style: italic;
}

p {
  max-width: 800px;
  font-size: 1.4rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 300;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0;
  text-align: left;
}

p::first-letter {
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
}

/* Flèche pour indiquer de scroller */
.scroll-down {
  position: absolute;
  bottom: 20px;
  font-size: 2rem;
  color: white;
  animation: bounce 1.5s infinite;
  z-index: 2;
  cursor: pointer;
}

/* Animation rebond de la flèche */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.arrow {
  margin-top: 20px;
  position: relative;
  bottom: 40px;
  width: 50px;
  height: 50px;
  opacity: 0.7;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 3s ease-in-out infinite;
  filter: brightness(0) invert(1);
  z-index: 3;
}

.arrow:hover {
  opacity: 1;
  transform: translateY(-10px) scale(1.1);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Style pour le lecteur audio */
.music-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.music-control::before {
  content: "Click on me";
  position: absolute;
  right: 70px;
  color: white;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.music-control:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.music-control svg {
  width: 24px;
  height: 24px;
  color: white;
  transition: all 0.3s ease;
}

/* Media queries pour la responsivité */
@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
    padding-left: 0.7rem;
    border-left-width: 2px;
  }
  .intro-title {
    font-size: 2.3rem;
    padding-left: 0;
  }
  .intro-text {
    font-size: 1.1rem;
  }
  .text-container p, p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  section {
    padding: 4rem 1rem;
  }
  
  .text-container {
    padding: 0 1rem;
  }
  
  .arrow {
    width: 40px;
    height: 40px;
    bottom: 20px;
  }

  .music-control {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }

  .music-control::before {
    font-size: 0.8rem;
    right: 55px;
  }

  .music-control svg {
    width: 20px;
    height: 20px;
  }
}

/* Animation de défilement fluide */
html {
  scroll-behavior: smooth;
}

/* Effet de parallaxe sur les sections */
section {
  transform-style: preserve-3d;
  perspective: 1000px;
}

section > * {
  transform: translateZ(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de brillance sur le texte */
@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

h1 {
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Style pour la section d'introduction */
.intro-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
  animation: sparkle 8s linear infinite;
}

@keyframes sparkle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

.intro-title {
  font-size: 5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
  opacity: 0;
  animation: fadeInDown 1.5s ease forwards;
  color: #ffffff;
  text-shadow: 
    0 0 30px rgba(255, 255, 255, 0.5),
    0 0 60px rgba(255, 255, 255, 0.3);
  text-align: center;
  border-left: none;
  padding-left: 0;
}

.intro-text {
  font-size: 1.6rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease 0.5s forwards;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  text-align: center;
}

.intro-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

.intro-scroll span {
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Ajustement des autres sections pour la nouvelle structure */
section:not(.intro-section) {
  margin-top: 0;
}

/* Media queries pour la section d'introduction */
@media (max-width: 768px) {
  .intro-title {
    font-size: 3rem;
  }
  
  .intro-text {
    font-size: 1.3rem;
  }
  
  .intro-scroll span {
    font-size: 1rem;
  }
}

/* Conteneur de texte pour le contenu principal */
.text-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
}

section .text-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.arrow {
  width: 50px;
  height: 50px;
  opacity: 0.7;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.arrow:hover {
  opacity: 1;
  transform: translateY(5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.music-prompt {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.music-prompt p {
  margin: 0;
  text-align: center;
}

.image-section {
  background: linear-gradient(
    45deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(20, 20, 30, 0.95) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.image-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

.final-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.final-image:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .music-prompt {
    bottom: 80px;
    right: 10px;
    font-size: 0.8rem;
    padding: 12px 15px;
  }

  .image-section {
    padding: 1rem;
  }

  .image-container {
    max-width: 100%;
  }
}
