/*
 * Couche de transition Bootstrap 3 -> Bootstrap 5.
 *
 * Elle conserve uniquement les composants historiques encore utilisés par
 * Divinea. Chaque règle pourra être retirée quand le composant correspondant
 * aura été modernisé dans une prochaine petite étape.
 */

.text-justify {
  text-align: justify !important;
}

/* Le thème historique dimensionne encore les icônes comme les Glyphicons. */
.bi {
  display: inline-block;
  line-height: 1;
  vertical-align: -.125em;
}

.carousel-control-prev .bi,
.carousel-control-next .bi {
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

/* Dimensions du thème d'origine, indépendantes des nouvelles tailles Bootstrap. */
.container { max-width: none; }
@media (min-width: 768px) { .container { max-width: 750px; } }
@media (min-width: 992px) { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

.post-slider .carousel-item { text-align: center; }
.post-slider .post-slider-image img { display: block; width: 100%; height: auto; }
/* Une bannière unique n'a pas de commande de défilement. */
.post-slider:has(.carousel-item:only-child) .carousel-control-prev,
.post-slider:has(.carousel-item:only-child) .carousel-control-next { display: none; }

/* Le thème générique gris ne doit pas effacer la couleur des actions principales. */
.btn.btn-primary, .btn.btn-outline-primary {
  background-color: #24145e;
  color: #fff;
  font-family: 'AvenirLT-Book', sans-serif;
}
.btn.btn-primary:hover, .btn.btn-outline-primary:hover {
  background-color: #462f96;
  color: #fff;
}
.btn.btn-link { text-decoration: none; }
