main {
    padding: 150px var(--margin-wide) 5rem var(--margin-wide);
    max-width: 130ch;
    margin-inline: auto;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
    margin-top: 2rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.3rem;
}
h5 {
    font-size: 1.1rem;
}
.ecoindex__list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ecoindex__note {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    align-items: flex-end;
    justify-content: flex-end;
    display: flex;
    padding: 0.325rem;
    margin: 0.15rem;
    border-width: 0.125rem;
    border-style: solid;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    font-size: 0.725rem;
    color: #000;
    font-weight: bold;
    background-color: #fff;
}

@media (min-width: 55em) {
    .ecoindex__note {
        width: 5rem;
        height: 5rem;
        border-radius: 1.25rem;
        font-size: 1.375rem;
        padding: 0.625rem;
        margin: 0.25rem;
    }
}

/* A */
.ecoindex__note:nth-of-type(1) {
    border-color: #4f9f30;
}

.ecoindex__note:nth-of-type(1).ecoindex__note--active,
.note__A {
    background-color: #4f9f30;
}

/* B */
.ecoindex__note:nth-of-type(2) {
    border-color: #51b84b;
}

.ecoindex__note:nth-of-type(2).ecoindex__note--active,
.note__B {
    background-color: #51b84b;
}

/* C */
.ecoindex__note:nth-of-type(3) {
    border-color: #cadb2a;
}

.ecoindex__note:nth-of-type(3).ecoindex__note--active,
.note__C {
    background-color: #cadb2a;
}

/* D */
.ecoindex__note:nth-of-type(4) {
    border-color: #f6eb15;
}

.ecoindex__note:nth-of-type(4).ecoindex__note--active,
.note__D {
    background-color: #f6eb15;
}

/* E */
.ecoindex__note:nth-of-type(5) {
    border-color: #fecd06;
}

.ecoindex__note:nth-of-type(5).ecoindex__note--active,
.note__E {
    background-color: #fecd06;
}

/* F */
.ecoindex__note:nth-of-type(6) {
    border-color: #f99839;
}

.ecoindex__note:nth-of-type(6).ecoindex__note--active,
.note__F {
    background-color: #f99839;
}

/* G */
.ecoindex__note:nth-of-type(7) {
    border-color: #ed2124;
}

.ecoindex__note:nth-of-type(7).ecoindex__note--active,
.note__G {
    background-color: #ed2124;
}

.ecoindex__moyenne {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 0.4fr 0.4fr 1fr;
    gap: 0.2rem;
    text-align: center;
    align-items: center;
}
.ecoindex__moyenne p {
    margin-bottom: 0;
}
.ecoindex__moyenne>div {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    justify-items: center;
}
/* .ecoindex__moyenne>div {
    flex: 1 1 0;
} */
.ecoindex__logo {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 2rem;
    text-rendering: geometricPrecision;
    white-space: nowrap;
}
.ecoindex__logo .logo-ecoindex__eco {
    padding: .1rem .3rem;
    color: hsl(165, 100%, 25%);
}
.ecoindex__logo .logo-ecoindex__index {
    padding: .1rem .3rem;
    background-color: hsl(165, 100%, 25%);
    color: hsl(0, 0%, 99%);
}
.impact__page__detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin-bottom: 1.5rem;
}
.impact__ecoindex {
    width: fit-content;
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
}

@media (min-width: 1920px) and (max-width: 2560px) {
    :root {
        --margin-wide: 10rem;
    }
}

@media (max-width: 400px) {
    .ecoindex__moyenne {
        display: flex;
        flex-direction: column;
    }
    h1 {
        font-size: 2.3rem;
    }
}