html, body {
  height: 100%;
  margin: 0;
}

#myCarousel {
  height: 100%;
}

.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative; /* nécessaire pour que le bloc se positionne par rapport au slide */
  transition: transform 1s ease-in-out; /* Animation plus lente */

}

.carousel-caption.bottom-caption {
    bottom: 10%;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Bloc carré en haut à droite */
.carousel-caption {
  position: absolute;
  top: 0;      /* coin supérieur */
  right: 0 !important;    /* coin droit */
  left: auto !important;
  width: 200px; /* carré parfait */
  height: 50px;
  margin: 0;   /* supprimer les marges par défaut */
  padding: 0.5rem;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Texte responsive à l'intérieur */
.carousel-caption h1 {
  font-size: 1rem;
  margin: 0;
}

.carousel-caption p {
  font-size: 0.8rem;
  margin: 0;
}

/* Mobile : cacher si besoin */
@media (max-width: 768px) {
  .carousel-caption {
    display: none;
  }
}
