/* --- Mise en page spécifique à l'Index (Landing Layout) --- */
.landing-layout {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Empêche le scroll sur l'accueil pour l'effet slide */
}

/* --- Bannière de présentation (Haut Gauche) --- */
.top-banner {
  padding-top: 40px;
  padding-left: 40px;
  z-index: 5;
  max-width: calc(100% - 250px); /* Laisse de la place pour la photo à droite */
}

.top-banner h1 {
  color: white;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 2px;
}

.top-banner h2 {
  color: var(--pink-base);
  font-size: 1.2rem;
  font-weight: normal;
  margin-top: 10px;
  opacity: 0.8;
}

/* --- Photo de profil (Haut Droite) --- */
.profile-photo {
  position: absolute; 
  top: 30px; 
  right: 40px;
  z-index: 10;
}

.profile-photo img {
  width: 150px;  /* TAILLE FIXE : Important pour éviter l'image géante */
  height: 150px;
  border: 3px solid var(--pink-base);
  border-radius: 15px; /* Carré arrondi style moderne */
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
  transition: transform 0.3s ease;
}

.profile-photo img:hover {
  transform: scale(1.05); /* Petit effet au survol */
}

/* --- Section Carrousel (Centre) --- */
.project-carousel {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  z-index: 5;
}

.project-carousel .title {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 5px;
  border-bottom: 2px solid var(--pink-base);
  padding-bottom: 5px;
}

/* --- Animation du Carrousel --- */
.carousel {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px 0;
  backdrop-filter: blur(5px);
}

.carousel-track {
  display: inline-block;
  animation: scroll 40s linear infinite; /* Défilement infini */
}

.carousel-track img {
  height: 250px; /* Hauteur des images du carrousel */
  margin: 0 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: filter 0.3s;
}

.carousel-track img:hover {
  filter: brightness(1.2);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
  .top-banner {
    padding: 20px;
    max-width: 100%;
    text-align: center;
  }
  
  .profile-photo {
    position: relative;
    top: 0;
    right: 0;
    margin: 20px auto;
    text-align: center;
  }

  .carousel-track img {
    height: 150px;
  }
}