.positionNavBar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.container-fluid.positionNavBar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.navbar-brand {
  font-size: 1.0rem;
  margin-right: 0rem;
}

.nav-item {
  font-size: 1.7rem;
}

.dropdown-menu,
.dropdown-menu-right {
  font-size: 1.5rem;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav {
  background-color: whitesmoke;
  align-content: center;
  /* border-radius: 25px; */
  z-index: 3;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show>.nav-link {
  background-color: whitesmoke;
  align-content: center;
  font-variant: small-caps;
}

.navbar-nav .dropdown-menu {
  background-color: whitesmoke;
  border: 0ch;
  font-variant: normal;
}

.navbar-collapse {
  /* display: flex; */
  justify-content: center;
  width: 100%;
  max-height: 100vh;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btnNav {
  text-decoration: none;
  text-align: center;
  color: rgb(38, 24, 24);
  border-color: #504646;
  text-transform: uppercase;
  font-size: medium;
  box-shadow: 3px 3px 3px 3px #6f5651;
  background-color: #1b2714;
  border-width: thin;
}

.btnNav:hover {
  background-color: #d5e2ea;
  text-transform: uppercase;
  color: #1b2714;
  box-shadow: 3px 3px 3px #6f5651;
}

.carousel-item {
  width: 100%;
  z-index: -1;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: top;
  display: block;
  z-index: -1;
  position: relative;
}

.onCarousel {
  margin-top: 10vh;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.logonav {
  max-width: 10rem;
  max-height: 10rem;
}

.shadowFilter {
  filter: drop-shadow(2px 2px 7px rgb(0, 0, 0));
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Style pour le titre */
.title-navbar {
  margin-top: 3rem;
  color: white;
  font-size: 4rem;
  height: 8rem;
}

.subtitle-navbar {
  color: white;
  font-size: 3.5rem;
  height: 3.5rem;
  margin-bottom: 7.0rem;
}

.description-navbar {
  color: white;
  font-size: 3.5rem;
  height: 7rem;
}

@media (orientation: portrait) {
  .positionNavBar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 100%;
  }
}

@media (orientation: landscape) {
  .positionNavBar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 100%;
  }

  .carousel-item img {
    height: 70rem;
  }
}

@media screen and (max-width: 1441px) {
  .nav-item {
    font-size: 1.2rem;
  }

  .dropdown-menu,
  .dropdown-menu-right {
    font-size: 1.0rem;
  }

  /* Style pour le titre */
  .title-navbar {
    margin-top: 2.5rem;
    font-size: 3rem;
    height: 5rem;
  }

  .subtitle-navbar {
    font-size: 2.3rem;
    height: 4.6rem;
    margin-bottom: 2.0rem;
  }

  .description-navbar {
    font-size: 2.3rem;
    height: 4.6rem;
  }
}

@media screen and (max-width: 1441px) and (orientation: landscape) {
  .carousel-item img {
    height: 40rem;
  }
}

/* Adapter le texte sur les petits écrans */
@media screen and (max-width: 1024px) {
  .nav-item {
    font-size: 0.9rem;
  }

  .dropdown-menu,
  .dropdown-menu-right {
    font-size: 0.8rem;
  }

  .btnNav {
    font-size: small;
  }

  /* Style pour le titre */
  .title-navbar {
    margin-top: 2.3rem;
    font-size: 2.6rem;
    height: 2.3em;
  }

  .subtitle-navbar {
    font-size: 2rem;
    height: 4rem;
    margin-bottom: 1.8rem;
  }

  .description-navbar {
    font-size: 2rem;
    height: 4rem;
  }
}

/* Adapter le texte sur les petits écrans */
@media screen and (max-width: 844px) {
  .title-navbar {
    font-size: 2rem;
    height: 4rem;
  }

  .subtitle-navbar {
    font-size: 1.5rem;
    height: 3rem;
  }

  .description-navbar {
    font-size: 1.5rem;
    height: 3rem;
  }

  .nav-item {
    font-size: 0.8rem;
    color: whitesmoke;
    margin: 5px;
  }

  .dropdown-item {
    text-align: center;
    font-size: 0.8rem;
  }

  .carousel-item img {
    height: 35rem;
  }

  .navbar-collapse {
    justify-content: center;
    overflow-y: scroll;
    width: 100%;
    max-height: 200px;
    overscroll-behavior: contain;
    /* Optionnel : pour un scroll fluide sur iOS */
    -webkit-overflow-scrolling: touch;
  }
}

@media screen and (max-width: 425px) {
  .carousel-item img {
    height: 34rem;
  }

  .subtitle-navbar {
    font-size: 1.4rem;
    height: 2.8rem;
  }
}

@media screen and (max-width: 375px) {
  .title-navbar {
    font-size: 1.8rem;
    height: 3.5rem;
  }

  .subtitle-navbar {
    font-size: 1.2rem;
    height: 3rem;
  }

  .description-navbar {
    font-size: 1.2rem;
    height: 3rem;
  }

  .nav-item {
    font-size: 0.8rem;
    color: whitesmoke;
    margin: 5px;
  }

  .carousel-item img {
    height: 35rem;
  }

  .navbar-brand {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 280px) {
  .title-navbar {
    font-size: 1.5rem;
    height: 3.0rem;
  }

  .subtitle-navbar {
    font-size: 1rem;
    height: 2rem;
  }

  .description-navbar {
    font-size: 1rem;
    height: 2rem;
  }

  .nav-item {
    font-size: 0.7rem;
    color: whitesmoke;
    margin: 5px;
  }

  .carousel-item img {
    height: 35rem;
  }
}