.gg-list,
.gg-home {
    --gg-orange: #d54731;
    --gg-surface: #292726;
    --gg-text: #f5f0eb;
    --gg-border: #55504d;
    width: 100%;
    color: var(--gg-text);
    font-family: inherit;
}
#page-container .et-l--post .et_pb_row:has(.gg-list, .gg-home) {
    width: 92% !important;
    max-width: 1180px !important;
    padding: 0 !important;
}
#page-container .et-l--post .et_pb_row:has(.gg-list-box) { max-width: 1320px !important; }
.gg-row {
    --gg-gap: clamp(14px, 2vw, 26px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gg-gap);
}
.gg-row + .gg-row { margin-top: var(--gg-gap); }
.gg-row.gg-equipe {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.gg-equipe .gg-card { flex: 0 0 calc((100% - 3 * var(--gg-gap)) / 4); }
.gg-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 12px;
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.gg-equipe .gg-card { padding: clamp(7px, 1vw, 12px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.gg-card-photo {
    overflow: hidden;
    border-radius: 10px;
}
.gg-card-photo img,
.gg-news img,
.gg-home-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.gg-box .gg-card-photo img { aspect-ratio: 4 / 3; }
.gg-equipe .gg-card-photo img { aspect-ratio: 2 / 3; object-position: center top; }
.gg-equipe .gg-card-copy { padding: 14px 4px 7px; text-align: center; }
.gg-box .gg-card-copy { padding: 18px 10px 12px; }
.gg-list .gg-card h4 {
    margin: 0;
    padding: 0;
    color: var(--gg-text);
    font-family: inherit;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.gg-equipe .gg-card h4 { font-size: clamp(16px, 1.7vw, 22px); line-height: 1.3; }
.gg-box .gg-card h4 {
    min-height: 2.36em;
    margin: 0 0 12px;
    font-size: clamp(19px, 1.6vw, 25px);
    line-height: 1.18;
    text-wrap: balance;
}
.gg-composition {
    margin-top: 15px;
    padding-top: 11px;
    border-top: 1px solid var(--gg-border);
    color: #ded8d3;
    font-size: 15px;
    line-height: 1.62;
}
.gg-description { margin-top: 4px; }
.gg-description p:last-child, .gg-news-copy p:last-of-type { padding-bottom: 0; }
.gg-rate {
    display: inline-block;
    margin: 0 4px 7px 0;
    padding: 4px 7px;
    border: 1px solid var(--gg-orange);
    border-radius: 5px;
    background: #343130;
    color: var(--gg-text);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.gg-news {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 34px);
    align-items: center;
    padding: clamp(18px, 3vw, 38px);
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.gg-news + .gg-news { margin-top: clamp(18px, 3vw, 36px); }
.gg-news h2 {
    margin-bottom: 16px;
    padding: 0 0 0 12px;
    border-left: 3px solid var(--gg-orange);
    color: var(--gg-text);
    font-family: inherit;
    font-size: clamp(23px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.2;
}
.gg-news-copy { font-size: 16px; line-height: 1.65; }
.gg-news img { aspect-ratio: 4 / 3; border-radius: 10px; }
.gg-order {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 16px;
    border: 2px solid var(--gg-orange);
    border-radius: 8px;
    background: #343130;
    color: var(--gg-text);
    font-weight: 700;
}
.gg-order:hover { background: #413a37; color: var(--gg-text); }
.gg-home-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 38px);
}
.gg-home-row + .gg-home-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(22px, 3vw, 38px);
}
.gg-home-card { display: block; text-align: center; color: var(--gg-text); }
.gg-home-card img { aspect-ratio: 4 / 3; object-position: center 38%; border-radius: 10px; }
.gg-home-row + .gg-home-row img { aspect-ratio: 16 / 9; }
.gg-home-card span {
    display: block;
    margin-top: 10px;
    padding: 0 8px 6px;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 700;
    line-height: 1.3;
}
.gg-home-card:hover span {
    text-decoration: underline;
    text-decoration-color: var(--gg-orange);
    text-underline-offset: .3em;
}
.gg-home-card:focus-visible, .gg-order:focus-visible { outline: 2px solid var(--gg-orange); outline-offset: 3px; }

/* L’image de tête reste visible lorsque les cartes Divi sont remplacées. */
#post-20 .et-l--post .et_pb_section:has(.gg-home):not(:has(.et_pb_blurb)) { padding-top: 0 !important; }
#post-20 .et-l--post .et_pb_section:has(.gg-home):not(:has(.et_pb_blurb))::before {
    display: block;
    width: 100%;
    height: clamp(235px, 33vw, 520px);
    background: url('https://guisiano-boucherie-traiteur.com/wp-content/uploads/2024/01/boucherie-guisiano.jpeg') center 53% / cover no-repeat;
    content: '';
}

@media (max-width: 1100px) { .gg-row.gg-box { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .gg-equipe .gg-card { flex-basis: calc((100% - var(--gg-gap)) / 2); } }
@media (max-width: 767px) {
    .gg-news, .gg-home-row, .gg-home-row + .gg-home-row { grid-template-columns: minmax(0, 1fr); }
    .gg-home-row + .gg-home-row img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
    .gg-row.gg-box { grid-template-columns: minmax(0, 1fr); }
    .gg-box .gg-card h4 { min-height: 0; font-size: 23px; }
}
