html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #5a5a5a;
}

main {
  flex: 1;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

/* CUSTOMIZE THE CAROUSEL */
.carousel {
  margin-bottom: 4rem;
  width: 100%; /* Assure-toi que le carrousel ne dépasse pas */
  overflow: hidden; /* Empêche le débordement */
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour le texte */
  color: white;
  text-align: center;
  z-index: 10;
}

.carousel-caption-left {
  text-align: left;
  left: 0;
  right: auto;
  padding-left: 20px; /* Ajuste selon tes besoins */
}

.carousel-caption-right {
  text-align: right;
  left: auto;
  right: 0;
  padding-right: 20px; /* Ajuste selon tes besoins */
}

/* Declare heights because of positioning of img element */
.carousel-item {
  position: relative;
  height: 32rem;
  overflow: hidden; /* Pour éviter tout débordement */
}

.carousel-item > img {
  position: absolute;
  top: 0;
  width: 100%; /* Change min-width à width pour s'assurer qu'il ne dépasse pas */
  height: 100%;
  object-fit: cover;
}

.custom-img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ou 'contain' selon le rendu désiré */
  object-position: 70% 70%;
}

.custom-imgS,
.custom-imgT {
  width: 100%; /* Change 50% à 100% pour empêcher le débordement */
  height: auto;
  object-fit: cover; /* Ou 'contain' selon le rendu désiré */
  object-position: bottom;
}

/* MARKETING CONTENT */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.marketing h2 {
  font-weight: 400;
}

.marketing .col-lg-4 p {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}

/* Featurettes */
.featurette-divider {
  margin: 5rem 0;
  /* Space out the Bootstrap <hr> more */
}

.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05rem;
}

/* RESPONSIVE CSS */
@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
    color: white;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

.w-100 {
  width: 100% !important;
  height: 75vh;
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}

.navbar-nav {
  flex-grow: 1;
  justify-content: flex-start;
}

.ml-auto {
  margin-left: auto !important;
}

/* Ajout du dégradé */
.carousel-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%; /* Ajuste la hauteur du dégradé selon tes besoins */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 5; /* Assure-toi qu'il est derrière le texte */
}
