#carousel {
  display: none;
}

@media screen and (min-width: 768px) {
  #carousel {
    display: block;
    margin: 0;
    position: relative;
    z-index: 5;
  }

  #carousel .fas {
    color: white;
  }

  #carousel #previous, #carousel #next {
    position: absolute;
    top: 43%;
  }

  #carousel #previous {
    left: 2em;
  }

  #carousel #next {
    right: 2em;
  }

  .carousel-item {
    -webkit-backface-visibility: hidden;
    /* obligatoire pour éviter l'effet de crénelage sous Chrome */
    text-align: center;
    width: 100%;
    color: #FFFFFF;
    margin: 0;
  }

  .carousel-item img {
    background-color: white;
    width: 100%;
    display: block;
  }

  .carousel-caption {
    position: absolute;
    top: 15%;
    left: 4%;
    right: 4%;
  }

  .carousel-item h2, .carousel-item p {
    text-shadow: 1px 1px 2px #444;
    line-height: 1.2em;
  }

  .carousel-item h2 {
    text-align: center;
    color: #FFF;
    font-size: 2rem;
    font-weight: normal;
    margin: 20px;
  }

  .carousel-item p {
    color: #FFF;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .carousel-nav {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
  }

  .carousel-nav .active {
    background-color: #444;
  }

  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #FFF;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }

  .dot:hover {
    background-color: #999;
  }
}

@media screen and (min-width: 1024px) {
  .carousel-caption {
    top: 36%;
    left: 5%;
    right: 5%;
  }

  .carousel-item h2 {
    font-size: 2.5rem;
  }

  .carousel-item p {
    font-size: 1.5rem;
  }
}
