/* =====================================================================
 * Style de paragraphe « Sur-titre WEDA » (classe is-style-weda-surtitre).
 * Maquette « Sous Titre » : Outfit SemiBold 13px · interligne 150 % · lettres +2px · #3843D0 à 30 %.
 * ===================================================================== */

.is-style-weda-surtitre {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(56, 67, 208, .3);
}

/* Dans le contenu d'un article / témoignage / webinaire : passe devant `.weda-article__content p`
 * (taille, couleur) et garde l'espacement de section d'un titre H2. */
.weda-article .weda-article__content p.is-style-weda-surtitre {
  margin: clamp(25px, 5vw, 40px) 0 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(56, 67, 208, .3);
}

/* Le titre qui suit se colle au sur-titre (annule la grande marge haute des H2/H3). */
.weda-article .weda-article__content p.is-style-weda-surtitre+h2,
.weda-article .weda-article__content p.is-style-weda-surtitre+h3 {
  margin-top: 6px;
}

/* Sur-titre placé dans un bloc Groupe (cas fréquent) : le groupe porte la marge de section,
 * le paragraphe n'en ajoute pas (sinon double espace), et le titre qui suit le groupe se colle. */
.weda-article .weda-article__content .wp-block-group>p.is-style-weda-surtitre {
  margin: 0;
}

.weda-article .weda-article__content .wp-block-group:has(> p.is-style-weda-surtitre:first-child) {
  margin-top: clamp(40px, 5vw, 64px);
}

.weda-article .weda-article__content .wp-block-group:has(> p.is-style-weda-surtitre:first-child)+h2,
.weda-article .weda-article__content .wp-block-group:has(> p.is-style-weda-surtitre:first-child)+h3 {
  margin-top: 6px;
}