/*
 * Contact WhatsApp — feuille de style autonome (aucune compilation).
 * Utilisée par le shortcode `[jsk_whatsapp]` et par la carte d'aide
 * « comment lire un article premium ».
 */

.jsk-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
  line-height: 1.2;
  font-weight: 600;
  color: inherit;
  text-decoration: none !important;
}

.jsk-wa:hover,
.jsk-wa:focus-visible {
  opacity: 0.85;
}

.jsk-wa__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  flex: 0 0 auto;
}

.jsk-wa__icon svg {
  display: block;
  width: 1.1em;
  height: 1.1em;
}

.jsk-wa__label {
  white-space: nowrap;
}

/*
 * En-tête du site : icône agrandie et bloc centré verticalement sur la
 * ligne des liens (le conteneur du thème est en 0.8rem).
 */
.jsk-wa-header {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.jsk-wa-header .jsk-wa {
  line-height: 1;
}

.jsk-wa-header .jsk-wa__icon svg {
  width: 1.6em;
  height: 1.6em;
}

/* Icône seule : le libellé reste lu par les lecteurs d'écran. */
.jsk-wa--icon .jsk-wa__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Dans la carte d'aide : séparateur discret avec l'adresse e-mail. */
.jsk-help__support .jsk-wa {
  margin-left: 0.65rem;
  font-size: 0.92em;
}

@media (max-width: 480px) {
  .jsk-help__support .jsk-wa {
    display: flex;
    margin-left: 0;
    margin-top: 0.35rem;
  }
}
