/*=====================================================================
  ENCART "TELECHARGEZ VOTRE GUIDE GRATUIT" - articles du blog
  ---------------------------------------------------------------------
  Utilise a 2 endroits :
  - dans le texte de l'article : bloc insere par la cliente avec le
    bouton "Encart guide" de l'editeur (TinyMCE)
  - en fin d'article : encart automatique vers /lead-magnet/ (news.php)
  Charge aussi dans l'editeur TinyMCE pour un rendu identique.
  Selecteurs doubles : #article (site) et .mce-content-body (editeur).
=====================================================================*/

#article .hc-encart-guide,
.mce-content-body .hc-encart-guide {
    position: relative;
    box-sizing: border-box;
    margin: 40px 0;
    padding: 26px 28px 26px 96px;
    background: #f8f2e4;
    border-left: 4px solid #d0a850;
    text-align: left;
    clear: both;
}

/* Pictogramme livre */
#article .hc-encart-guide:before,
.mce-content-body .hc-encart-guide:before {
    content: "";
    position: absolute;
    left: 26px;
    top: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #242e60 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0a850' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3Cpath d='M9 7h7M9 11h5'/%3E%3C/svg%3E") center / 22px no-repeat;
}

#article .hc-encart-guide p,
.mce-content-body .hc-encart-guide p {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4d4d4d;
    margin: 0 0 6px 0;
    padding: 0;
    text-align: left;
}

#article .hc-encart-guide p.hc-encart-guide-titre,
.mce-content-body .hc-encart-guide p.hc-encart-guide-titre {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    color: #242e60;
    margin: 0 0 6px 0;
}

#article .hc-encart-guide p.hc-encart-guide-bouton,
.mce-content-body .hc-encart-guide p.hc-encart-guide-bouton {
    margin: 16px 0 0 0;
}

#article .hc-encart-guide p.hc-encart-guide-bouton a,
.mce-content-body .hc-encart-guide p.hc-encart-guide-bouton a {
    display: inline-block;
    padding: 14px 26px;
    background: #242e60;
    color: #ffffff !important;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.3;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 0;
    transition: background 0.3s ease;
}

#article .hc-encart-guide p.hc-encart-guide-bouton a:hover,
#article .hc-encart-guide p.hc-encart-guide-bouton a:focus-visible {
    background: #d0a850;
    color: #ffffff !important;
}

/* Variante fin d'article : un peu plus d'air */
#article .hc-encart-guide.hc-encart-guide-fin {
    margin: 60px 0 20px 0;
}

/* Mobile : pictogramme au-dessus, bouton pleine largeur */
@media screen and (max-width: 599px) {
    #article .hc-encart-guide,
    .mce-content-body .hc-encart-guide {
        padding: 86px 20px 22px 20px;
    }
    #article .hc-encart-guide:before,
    .mce-content-body .hc-encart-guide:before {
        left: 20px;
        top: 22px;
    }
    #article .hc-encart-guide p.hc-encart-guide-bouton a {
        display: block;
        text-align: center;
    }
}
