/**
 * INDIGO FRANCE - Barre d'avertissement (if_topbar)
 * Les couleurs de fond et de texte sont paramétrées dans le BO (style inline).
 */

.if-topbar {
  width: 100%;
  padding: 6px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.if-topbar__text p {
  margin: 0;
}

/* Les liens héritent de la couleur choisie */
.if-topbar__text a {
  color: inherit;
  text-decoration: underline;
}

.if-topbar__text a:hover,
.if-topbar__text a:focus {
  color: inherit;
  opacity: .8;
}

@media (max-width: 767px) {
  .if-topbar {
    font-size: 13px;
    padding: 5px 0;
  }
}

/* Bouton de fermeture */
.if-topbar--closable {
  position: relative;
  padding-left: 40px;
  padding-right: 40px;
}

.if-topbar__close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
  opacity: .7;
}

.if-topbar__close:hover,
.if-topbar__close:focus {
  opacity: 1;
}
