.ecg-facts,
.ecg-related {
    box-sizing: border-box;
    width: 100%;
    max-width: none !important;
    margin: 34px 0;
    border: 1px solid #dcebe3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 60, 53, .08);
}

.ecg-facts *,
.ecg-related * {
    box-sizing: border-box;
}

.ecg-facts {
    padding: 18px 24px 24px;
}

.ecg-facts-header {
    display: block;
    width: 100%;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.ecg-facts-title-row {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
}

.ecg-facts-title-row h2,
.ecg-related-heading h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #123c35;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
}

.ecg-facts-title-row h2 {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
}

.ecg-facts-intro {
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    color: #31453f;
    line-height: 1.6;
}

.ecg-block-icon {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-self: center;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 12px;
    background: #eef7f2;
    color: #246f50;
}

.ecg-block-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ecg-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}

.ecg-fact {
    min-width: 0;
    margin: 0;
    padding: 14px 15px;
    border-radius: 12px;
    background: #f7fbf9;
}

.ecg-fact dt {
    margin: 0 0 3px;
    color: #557169;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ecg-fact dd {
    margin: 0;
    color: #173f37;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.ecg-source-note {
    margin: 6px 0 0 !important;
    color: #687b75;
    font-size: .78rem;
}

.ecg-related {
    padding: 26px 30px 28px;
    background: linear-gradient(135deg, #f7fbf9 0%, #eef7f2 100%);
}

.ecg-related-heading {
    display: grid;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

.ecg-kicker {
    margin: 0 !important;
    padding: 0 !important;
    color: #2f8f64;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ecg-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}

.ecg-related-count-2 .ecg-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecg-related-count-1 .ecg-related-grid {
    grid-template-columns: minmax(0, 1fr);
}

.ecg-related-grid li {
    display: flex;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.ecg-related-grid a {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d5e7dd;
    border-radius: 12px;
    background: #fff;
    color: #123c35;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ecg-related-name {
    display: flex;
    min-width: 0;
    min-height: 2.7em;
    flex: 1 1 auto;
    align-items: center;
    line-height: 1.35;
}

.ecg-related-name > span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
}

.ecg-related-grid a:hover,
.ecg-related-grid a:focus-visible {
    border-color: #69b88d;
    box-shadow: 0 8px 18px rgba(18, 60, 53, .09);
    transform: translateY(-2px);
}

.ecg-related-grid svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: #2f8f64;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.widget .ecg-facts {
    margin: 0;
    padding: 16px 18px 18px;
    border-radius: 14px;
}

.widget .ecg-facts-title-row {
    align-items: center;
}

.widget .ecg-facts-title-row h2 {
    min-height: 42px;
    font-size: 1.35rem;
}

.widget .ecg-facts-intro {
    display: block;
    width: 100%;
    margin-top: 10px !important;
}

.widget .ecg-facts-grid {
    grid-template-columns: 1fr;
}

.widget .ecg-source-note {
    margin-top: 6px !important;
}

@media (max-width: 720px) {
    .ecg-facts,
    .ecg-related {
        width: 100%;
        margin: 26px 0;
        border-radius: 15px;
    }

    .ecg-facts {
        padding: 16px 18px 18px;
    }

    .ecg-related {
        padding: 22px 18px 22px;
    }

    .ecg-related-heading {
        gap: 7px;
    }

    .ecg-facts-grid,
    .ecg-related-grid,
    .ecg-related-count-2 .ecg-related-grid,
    .ecg-related-count-1 .ecg-related-grid {
        grid-template-columns: 1fr;
    }

    .ecg-related-grid {
        margin-top: 14px !important;
    }

    .ecg-related-grid a {
        min-height: 70px;
    }

    .ecg-facts-title-row {
        align-items: center;
    }

    .ecg-facts-title-row h2 {
        min-height: 40px;
    }

    .ecg-block-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .ecg-facts-intro {
        margin-top: 9px !important;
    }
}

/* Déchèteries proches : données copiées localement depuis Ma-dechetterie.fr */
.ecg-dechetteries {
    box-sizing: border-box;
    width: 100%;
    max-width: none !important;
    margin: 34px 0;
    padding: 24px 26px 25px;
    border: 1px solid #dcebe3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 60, 53, .08);
}

.ecg-dechetteries * {
    box-sizing: border-box;
}

.ecg-dechetteries-heading {
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.ecg-dechetteries-heading h2 {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    color: #123c35;
    font-size: clamp(1.2rem, 1.7vw, 1.36rem);
    line-height: 1.18;
}

.ecg-dechetteries-heading > p:last-child {
    max-width: 760px;
    margin: 9px 0 0 !important;
    color: #425750;
    font-size: .95rem;
    line-height: 1.55;
}

.ecg-dechetteries-grid {
    display: block;
    margin: 0 !important;
    border-top: 1px solid #e0ece6;
}

.ecg-dechetteries-count-2 .ecg-dechetteries-grid,
.ecg-dechetteries-count-1 .ecg-dechetteries-grid {
    display: block;
}

.ecg-dechetterie-card {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
    gap: 26px;
    align-items: start;
    margin: 0 !important;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid #e0ece6;
    border-radius: 0;
    background: transparent;
}

.ecg-dechetterie-card:last-child {
    border-bottom: 0;
}

.ecg-dechetterie-main,
.ecg-dechetterie-details {
    min-width: 0;
}

.ecg-dechetterie-card h3 {
    margin: 0 !important;
    padding: 0 !important;
    color: #173f37;
    font-size: 1.02rem;
    line-height: 1.3;
}

.ecg-dechetterie-card p {
    margin: 0 !important;
    padding: 0 !important;
}

.ecg-dechetterie-address {
    margin-top: 7px !important;
    color: #5b6e67;
    font-size: .89rem;
    font-style: normal;
    line-height: 1.5;
}

.ecg-dechetterie-details {
    padding-left: 22px;
    border-left: 1px solid #e0ece6;
}

.ecg-dechetterie-meta {
    display: grid;
    gap: 8px;
    align-items: start;
    margin: 0;
}

.ecg-dechetterie-distance,
.ecg-dechetterie-access {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    padding: 4px 2px !important;
    color: #314c43;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
}

.ecg-dechetterie-distance-icon {
    display: inline-flex;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    color: #2f8f64;
}

.ecg-dechetterie-distance-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ecg-dechetterie-access {
    color: #52655f;
    font-weight: 500;
}

.ecg-dechetterie-access strong {
    color: #314c43;
    font-weight: 700;
}

.ecg-dechetterie-wastes {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #edf3f0;
}

.ecg-dechetterie-label {
    color: #536861;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ecg-dechetterie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ecg-dechetterie-tags li {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin: 0 !important;
    padding: 4px 8px;
    border: 1px solid #dce9e2;
    border-radius: 7px;
    background: #fff;
    color: #354b44;
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.2;
}

.ecg-dechetteries-note {
    margin: 13px 0 0 !important;
    color: #71817c;
    font-size: .76rem;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .ecg-dechetterie-card {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .ecg-dechetterie-details {
        padding: 13px 0 0;
        border-top: 1px solid #edf3f0;
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .ecg-dechetteries {
        margin: 26px 0;
        padding: 21px 18px 22px;
        border-radius: 15px;
    }

    .ecg-dechetteries-heading h2 {
        font-size: 1.24rem;
    }

    .ecg-dechetterie-card {
        padding: 16px 0;
    }
}


