/* Only GeneratePress main listing; leave sidebars, widgets and product grids alone. */
body.sa-gp-libre-listing #primary #main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}
body.sa-gp-libre-listing #primary #main > :not(article) {
    grid-column: 1 / -1;
    min-width: 0;
}
body.sa-gp-libre-listing #primary #main > article {
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    float: none;
    align-self: stretch;
}
body.sa-gp-libre-listing #primary #main > article > .inside-article {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 0 0 20px;
}
body.sa-gp-libre-listing #primary #main > article .inside-article > .post-image {
    float: none;
    margin: 0 0 20px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    order: -1;
}
body.sa-gp-libre-listing #primary #main > article .inside-article > .post-image a { display: block; }
body.sa-gp-libre-listing #primary #main > article .inside-article > .post-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 220px;
    object-fit: cover;
    margin: 0 auto;
}
body.sa-gp-libre-listing #primary #main > article .entry-header .entry-title {
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
body.sa-gp-libre-listing #primary #main > article .entry-summary {
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
body.sa-gp-libre-listing #primary #main > article .entry-header > .entry-meta,
body.sa-gp-libre-listing #primary #main > article .entry-meta > .comments-link { display: none; }
/* Fallback for standard theme featured-image wrappers; never target images in entry-content. */
body.sa-gp-libre-single #page > .page-header-image,
body.sa-gp-libre-single #page > .page-header-image-single,
body.sa-gp-libre-single #primary #main > article > .inside-article > .page-header-image,
body.sa-gp-libre-single #primary #main > article > .inside-article > .page-header-image-single,
body.sa-gp-libre-single #primary #main > article > .inside-article > .post-image { display: none; }
@media (max-width: 1100px) {
    body.sa-gp-libre-listing #primary #main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.sa-gp-libre-listing #primary #main { grid-template-columns: minmax(0, 1fr); }
}

/* V0.1.2 : correction validee sur le staging ; uniquement l'image de tete. */
.single-post .inside-article > .featured-image.page-header-image-single {
    display: none !important;
}

/* V0.1.3 — bannières commerciales, uniquement sur les articles. */
body.single-post .inside-article .sa-gp-libre-banner {
    width: 100%;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-sizing: border-box;
}
body.single-post .sa-gp-libre-banner a { display: block; }
body.single-post .sa-gp-libre-banner img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 16px !important;
    box-shadow: 0 0 0 2px #65966b, 0 6px 18px rgba(0, 50, 25, .18) !important;
}
body.single-post .sa-gp-libre-banner-spacer { height: 20px; }

/* V0.1.5 — two compact offers, scoped to singular articles only. */
body.single-post .inside-article .sa-gp-libre-banner-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto 20px;
    box-sizing: border-box;
}
body.single-post .inside-article .sa-gp-libre-banner-pair-bottom { margin: 24px auto 16px; }
body.single-post .inside-article .sa-gp-libre-banner-pair-single { grid-template-columns: minmax(0, 1fr); max-width: 506px; }
body.single-post .inside-article .sa-gp-libre-banner-pair > .sa-gp-libre-banner { margin: 0; min-width: 0; max-width: none; }
body.single-post .inside-article .sa-gp-libre-banner-pair .sa-gp-libre-banner img { width: 100%; height: auto; }
body.single-post .inside-article .sa-gp-libre-banner-pair .sa-gp-libre-banner-equipements img {
    box-shadow: 0 0 0 2px #ad824b, 0 6px 18px rgba(70, 45, 10, .12) !important;
}
body.single-post .sa-gp-libre-banner-pair a:focus-visible { outline: 3px solid #337348; outline-offset: 3px; border-radius: 16px; }
@media (max-width: 767px) {
    body.single-post .inside-article .sa-gp-libre-banner-pair { grid-template-columns: minmax(0, 1fr); max-width: 506px; gap: 12px; margin-bottom: 16px; }
}
