/* Article de blog : hero, titre et blocs de contenu (2026-10-07).
   Portée : page article uniquement (.ybc-blog-wrapper-detail). Retirer la ligne
   <link …blog-post-hero.css> de layout-both-columns.tpl pour revenir en arrière. */

/* 1. Image à la une : pleine largeur de la colonne, format panoramique */
.ybc-blog-wrapper-detail > .ybc_blog_img_wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 28px;
  text-align: left;
}
.ybc-blog-wrapper-detail > .ybc_blog_img_wrapper a,
.ybc-blog-wrapper-detail > .ybc_blog_img_wrapper .ybc_image-single {
  display: block;
  width: 100%;
  max-width: 100%;
}
.ybc-blog-wrapper-detail > .ybc_blog_img_wrapper img {
  display: block;
  width: 100% !important;
  max-width: 960px !important;
  height: auto !important;
  margin: 0 auto;
  object-fit: contain !important;
  border-radius: 4px;
}

/* 2. Titre : lisible, en casse normale, aligné sur le texte */
.ybc-blog-wrapper-detail h1.page-heading {
  display: block;
  height: auto;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.ybc-blog-wrapper-detail h1.page-heading .title_cat {
  float: none;
  display: block;
  margin: 0;
  color: #1a1a2e;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* 3. Bandeau d'ouverture des articles (étiquette + « Dans ce guide ») :
      le fond sombre d'origine a été retiré par l'éditeur, on le remplace par un
      encadré clair lisible */
.ybc-blog-wrapper-detail .blog_description > div[style*="padding:45px 35px"] {
  background: #faf7f1;
  border-left: 3px solid #c9a96e;
  border-radius: 0 4px 4px 0;
  padding: 26px 30px !important;
  margin: 8px 0 32px !important;
  text-align: left !important;
  color: #44403c !important;
}
.ybc-blog-wrapper-detail .blog_description > div[style*="padding:45px 35px"] > div[style*="color:#e8d5a3"] {
  display: inline-block;
  background: rgba(201, 169, 110, 0.18) !important;
  color: #7a5a24 !important;
  margin-bottom: 14px !important;
}
.ybc-blog-wrapper-detail .blog_description > div[style*="padding:45px 35px"] ol {
  list-style-position: outside !important;
  padding-left: 22px !important;
}

/* 4. Bloc final « Prendre rendez-vous » : fond sombre pour rendre le texte blanc lisible */
.ybc-blog-wrapper-detail .blog_description div[style*="padding:40px 32px"] {
  background: #1a1a2e;
  border-radius: 4px;
}

/* 5. Monogramme de l'auteur */
.ybc-blog-wrapper-detail .blog_description div[style*="width:72px;height:72px"] {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  border-radius: 50%;
  margin-bottom: 14px;
}

@media (max-width: 767px) {
  .ybc-blog-wrapper-detail > .ybc_blog_img_wrapper { margin: 4px 0 20px; }
  .ybc-blog-wrapper-detail > .ybc_blog_img_wrapper img { border-radius: 2px; }
  .ybc-blog-wrapper-detail h1.page-heading .title_cat { font-size: 26px; }
  .ybc-blog-wrapper-detail .blog_description > div[style*="padding:45px 35px"] { padding: 20px 18px !important; }
}
