/**
 * Module SDBanner - Styles
 *
 * @author SiDev
 * @copyright SiDev
 */

.sdbanner {
  width: 100%;
  background-color: #01294d;
}

.sdbanner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s ease-in-out;
}

.sdbanner__link:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #fff;
}

.sdbanner__img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sdbanner__text {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: #fff;
}

/* Si image et texte sont présents ensemble */
/* .sdbanner__link .sdbanner__img + .sdbanner__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
} */

.sdbanner__link:has(.sdbanner__img):has(.sdbanner__text) {
  position: relative;
}

/* Responsive */
@media (max-width: 767.98px) {
  .sdbanner__text {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}
