/* ===== ETS Blog : taille des images (sidebar supprimee, pleine largeur) ===== */
/* Liste (accueil blog, categories, recherche...) : vignette fixe 16/10 */
#content-wrapper .ets_blog_layout_list .ets-blog-list li .ets_item_img,
#content-wrapper .ets_blog_layout_large_list .ets-blog-list li .ets_item_img {
  width: 320px;
  max-width: 38%;
}
#content-wrapper .ets_blog_layout_list .ets-blog-list li .ets_item_img:before,
#content-wrapper .ets_blog_layout_large_list .ets-blog-list li .ets_item_img:before {
  padding-top: 62.5%;
}
#content-wrapper .ets_blog_layout_list .ets-blog-list li .ets_item_img + .ets-blog-wrapper-content,
#content-wrapper .ets_blog_layout_large_list .ets-blog-list li .ets_item_img + .ets-blog-wrapper-content {
  width: calc(100% - 320px);
  min-width: 62%;
}
@media (max-width: 767px) {
  #content-wrapper .ets_blog_layout_list .ets-blog-list li .ets_item_img,
  #content-wrapper .ets_blog_layout_large_list .ets-blog-list li .ets_item_img {
    width: 100%;
    max-width: 100%;
  }
  #content-wrapper .ets_blog_layout_list .ets-blog-list li .ets_item_img + .ets-blog-wrapper-content,
  #content-wrapper .ets_blog_layout_large_list .ets-blog-list li .ets_item_img + .ets-blog-wrapper-content {
    width: 100%;
    min-width: 0;
    padding-left: 0;
  }
}

/* ===== Article (override single_post.tpl) =====
   Structure : titre > date > [image | chapo] > corps de l'article (760px centre, style inline du contenu)
   Couleurs et polices alignees sur uc-cms.css. */
#ets_blog_page .ets-blog-wrapper-detail {
  --uc-blog-red: #d93f45;
  --uc-blog-ink: #1c3549;
  --uc-blog-muted: #7a858d;
  max-width: 1140px;
  margin: 0 auto 30px;
  padding: 0 16px 30px;
}
#ets_blog_page .ets-blog-wrapper-detail .ets-blog-wrapper-content {
  float: none;
  width: 100%;
}

/* Titre */
#ets_blog_page .ets-blog-wrapper-detail .page-heading {
  margin: 8px 0 10px;
  color: var(--uc-blog-ink);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  text-align: left;
}
#ets_blog_page .ets-blog-wrapper-detail .page-heading .title_cat {
  float: none;
  display: block;
  width: auto;
  margin: 0;
  line-height: inherit;
}

/* Date, juste sous le titre */
#ets_blog_page .ets-blog-wrapper-detail .post-details .blog-extra {
  float: none;
  width: 100%;
  margin: 0 0 26px;
  text-align: left;
}
#ets_blog_page .ets-blog-wrapper-detail .post-details .blog-extra .ets-blog-latest-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  float: none;
  width: 100%;
  margin: 0;
  color: var(--uc-blog-muted);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
#ets_blog_page .ets-blog-wrapper-detail .post-details .post-date {
  float: none;
  margin: 0;
}

/* Image a gauche, chapo a droite */
.uc-post-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  clear: both;
  margin: 0 0 44px;
}
.uc-post-hero--nointro {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.uc-post-hero--noimg {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.uc-post-hero .ets_blog_img_wrapper {
  float: none;
  width: 100%;
  margin: 0;
}
.uc-post-hero .ets_image-single {
  text-align: left;
}
.uc-post-hero .ets_image-single img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.uc-post-hero__intro {
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--uc-blog-red, #d93f45);
  color: var(--uc-blog-ink, #1c3549);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
/* Le chapo peut venir du contenu (encadre avec styles inline) : on neutralise ces styles pour un rendu uniforme */
.uc-post-hero__intro div[style] {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.uc-post-hero__intro p {
  margin: 0 0 12px !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.uc-post-hero__intro > :first-child,
.uc-post-hero__intro div[style] > :first-child {
  margin-top: 0 !important;
}
.uc-post-hero__intro > :last-child,
.uc-post-hero__intro div[style] > :last-child {
  margin-bottom: 0 !important;
}
.uc-post-hero__intro strong {
  font-weight: 700;
}

/* Corps de l'article : meme largeur que le titre et le bloc image + chapo.
   Le contenu est enveloppe d'un <div style="max-width: 760px; margin: 0 auto"> : on neutralise cette limite. */
#ets_blog_page .ets-blog-wrapper-detail .post-details .blog_description {
  clear: both;
  width: 100%;
}
#ets_blog_page .ets-blog-wrapper-detail .post-details .blog_description > div[style] {
  max-width: none !important;
  width: 100% !important;
}

@media (max-width: 991px) {
  .uc-post-hero {
    gap: 28px;
  }
  .uc-post-hero__intro {
    font-size: 17px;
  }
}
@media (max-width: 767px) {
  #ets_blog_page .ets-blog-wrapper-detail {
    padding: 0 0 30px;
  }
  .uc-post-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 32px;
  }
  .uc-post-hero .ets_image-single img {
    aspect-ratio: 16 / 10;
  }
  .uc-post-hero__intro {
    padding-left: 18px;
    font-size: 16px;
  }
}
