/*
 * Accueil : encarts en "Editeur de texte" Elementor (modifiables par le client)
 * a la place des anciens widgets HTML. Reproduit a l'identique la presentation
 * precedente (valeurs calculees relevees le 2026-11-13).
 * Conversion des contenus : _migration/home-editable.php
 *
 * Classes CSS des widgets (onglet Avance > Classes CSS) :
 *   pb-welcome-content        Bienvenue : Titre 2 + paragraphe
 *   pb-story-copy             Histoire : paragraphe(s) avec lettrine
 *   pb-story-values-editor    Heritage / Conseil / Expertise : un paragraphe par mot
 *   pb-gazette-heading-editor Gazette : Titre 2 + paragraphe (italique = manuscrit)
 */

/* Neutralise les styles generiques de l'editeur de texte (.rte-content). */
body#index :is(.pb-welcome-content, .pb-story-copy, .pb-story-values-editor, .pb-gazette-heading-editor) .elementor-text-editor :is(h2, p) {
  margin: 0;
  padding: 0;
  text-transform: none;
}

/* --- Bienvenue ------------------------------------------------------------ */
body#index .pb-welcome-content .elementor-text-editor h2 {
  margin: 0 0 26px;
  color: #2b3824;
  font-family: "Benguiat Gothic", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(27px, 2.4vw, 33px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: left;
}

/* Lettrine (remplace l'ancien <span class="pb-welcome-initial">). */
body#index .pb-welcome-content .elementor-text-editor h2::first-letter {
  margin-right: 2px;
  font-family: "PB Snell Roundhand", cursive;
  font-size: 2em;
  font-weight: 400;
  line-height: 0;
  vertical-align: -7px;
}

body#index .pb-welcome-content .elementor-text-editor p {
  max-width: 600px;
  color: #504335;
  font-family: var(--pb-font-body);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-align: justify;
}

/* --- Heritage / Conseil / Expertise ------------------------------------------ */
body#index .pb-story-values-editor .elementor-text-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2b3824;
  font-family: "Benguiat Gothic", "Trebuchet MS", sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
}

body#index .pb-story-values-editor .elementor-text-editor p {
  display: block;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

/* --- Gazette ------------------------------------------------------------------ */
body#index .pb-gazette-heading-editor .elementor-text-editor {
  margin-bottom: 20px;
  text-align: center;
}

body#index .pb-gazette-heading-editor .elementor-text-editor h2 {
  color: #2b3824;
  font-family: "PB Copperplate", sans-serif;
  font-size: clamp(25px, 2.5vw, 34px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
}

body#index .pb-gazette-heading-editor .elementor-text-editor p {
  margin-top: 2px;
  color: #2b3824;
  font-family: var(--pb-font-body, "Benguiat Gothic"), sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

/* Mot en ecriture manuscrite : texte mis en italique dans l'editeur. */
body#index .pb-gazette-heading-editor .elementor-text-editor p :is(em, i) {
  display: inline-block;
  margin-right: 5px;
  font-family: var(--pb-font-script, "PB Snell Roundhand"), cursive;
  font-size: 37px;
  font-style: normal;
  font-weight: 400;
  line-height: 0.8;
}

@media (max-width: 767px) {
  body#index .pb-welcome-content .elementor-text-editor p {
    font-size: 15px;
    text-align: left;
  }

  body#index .pb-story-values-editor .elementor-text-editor {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
    margin: 30px 0;
  }

  body#index .pb-story-values-editor .elementor-text-editor p:not(:last-child)::after {
    content: "•";
    margin-left: 18px;
    color: #a57140;
  }
}

@media (max-width: 575px) {
  body#index .pb-gazette-heading-editor .elementor-text-editor p :is(em, i) {
    font-size: 35px;
  }
}
