.commune {
    --commune-bleu: var(--color-1--1, #334690);
    --commune-bleu-fonce: var(--color-1--2, #1d3078);
    --commune-vert: var(--color-2--2, #2f7a66);
    --commune-vert-clair: var(--color-2--1, #45b195);
    --commune-fond: #f3f4f9;
    --commune-alerte: #a3261f;
    color: #1e1e1e;
    font-size: 1.7rem;
    line-height: 1.55;
}

.commune ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.commune p {
    margin: 0 0 1.2rem;
}

.commune a:not(.btn) {
    color: var(--commune-bleu-fonce);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.commune a:not(.btn):hover,
.commune a:not(.btn):focus {
    text-decoration-thickness: .15em;
}

.commune-intro {
    margin-bottom: 5rem;
}

.commune-intro__chapo {
    font-size: 2.1rem;
    line-height: 1.45;
    max-width: 68ch;
    margin-bottom: 2.8rem !important;
}

.commune-chiffres {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.commune-chiffres__item {
    background: var(--commune-bleu);
    border-radius: .4rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1.8rem 2rem;
}

.commune-chiffres__item:nth-child(2n) {
    background: var(--commune-bleu-fonce);
}

.commune-chiffres__valeur {
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.commune-chiffres__libelle {
    font-size: 1.5rem;
}

.commune-section {
    margin-bottom: 5.6rem;
}

.commune-section__titre {
    color: var(--commune-bleu);
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 2.4rem;
}

.commune-mairie {
    display: grid;
    gap: 3.2rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
    .commune-mairie {
        align-items: start;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

.commune-mairie__infos {
    background: var(--commune-fond);
    border-radius: .4rem;
    padding: 2.8rem 3rem;
}

.commune-mairie__maire {
    font-size: 1.9rem;
}

.commune-mairie__ligne {
    display: flex;
    gap: 1rem;
}

.commune-mairie__ligne .far {
    color: var(--commune-bleu);
    margin-top: .35em;
}

.commune-mairie__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.6rem 0 2.4rem !important;
}

.commune-mairie__contacts .btn {
    gap: .8rem;
    max-width: 100%;
    text-transform: none;
}

.commune-mairie__contacts .btn__text {
    overflow-wrap: anywhere;
    white-space: normal;
}

.commune-mairie__sous-titre {
    color: var(--commune-bleu-fonce);
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.2rem;
}

.commune-horaires {
    margin: 0 0 1.4rem;
}

.commune-horaires__ligne {
    border-bottom: 1px solid #d5d9e8;
    display: grid;
    gap: .2rem 1.6rem;
    grid-template-columns: minmax(10rem, max-content) 1fr;
    padding: .7rem 0;
}

.commune-horaires dt {
    font-weight: 700;
}

.commune-horaires dd {
    margin: 0;
}

.commune-note {
    color: #4b4b4b;
    font-size: 1.45rem;
}

.commune-carte {
    margin: 0;
}

.commune-carte__svg {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 38rem;
    width: 100%;
}

.commune-carte__autre {
    fill: #dfe3f1;
    stroke: #fff;
    stroke-width: 1;
}

.commune-carte__niort {
    fill: #a9b2d3;
    stroke: #fff;
    stroke-width: 1;
}

.commune-carte__courante {
    fill: var(--commune-bleu);
    stroke: #fff;
    stroke-width: 1.5;
}

.commune-carte__legende {
    color: #4b4b4b;
    font-size: 1.45rem;
    margin-top: 1rem;
    text-align: center;
}

.commune-grille {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 32rem), 1fr));
}

.commune-bloc {
    background: var(--commune-fond);
    border-radius: .4rem;
    border-top: .5rem solid var(--commune-vert-clair);
    display: flex;
    flex-direction: column;
    padding: 2.4rem 2.6rem 2.6rem;
}

.commune-bloc__titre {
    align-items: center;
    color: var(--commune-bleu-fonce);
    display: flex;
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    gap: 1.2rem;
    line-height: 1.2;
    margin: 0 0 1.6rem;
}

.commune-bloc__titre .far {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: var(--commune-vert);
    display: inline-flex;
    flex: 0 0 4.4rem;
    font-size: 2rem;
    height: 4.4rem;
    justify-content: center;
}

.commune-bloc__chiffre strong {
    color: var(--commune-bleu);
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-size: 3rem;
    line-height: 1;
}

.commune-liste {
    margin-bottom: 1.4rem !important;
}

.commune-liste li {
    padding: .3rem 0 .3rem 1.8rem;
    position: relative;
}

.commune-liste li::before {
    background: var(--commune-vert);
    border-radius: 50%;
    content: "";
    height: .7rem;
    left: 0;
    position: absolute;
    top: 1.15em;
    width: .7rem;
}

.commune-liste li:first-letter {
    text-transform: uppercase;
}

.commune-liste__detail {
    color: #4b4b4b;
    display: block;
    font-size: 1.45rem;
}

.commune-liens {
    margin-top: auto !important;
    padding-top: .8rem !important;
}

.commune-liens li {
    padding: .3rem 0;
}

.commune-liens li::before {
    color: var(--commune-vert);
    content: "→" / "";
    font-weight: 700;
    margin-right: .6rem;
}

.commune-liens.is-ligne {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 3rem;
    margin-top: 2rem !important;
}

.commune-etat {
    align-items: flex-start;
    border-radius: .4rem;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.commune-etat .far {
    font-size: 1.9rem;
    margin-top: .15em;
}

.commune-etat.is-ok {
    background: #e3f2ed;
    color: #1f5446;
}

.commune-etat.is-alerte {
    background: #fbe9e7;
    color: var(--commune-alerte);
}

.commune-lignes {
    margin-bottom: 1.4rem !important;
}

.commune-lignes li {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    padding: .4rem 0;
}

.commune-lignes__numero {
    background: var(--commune-bleu);
    border-radius: .4rem;
    color: #fff;
    flex: 0 0 auto;
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-weight: 700;
    min-width: 3.6rem;
    padding: .1rem .8rem;
    text-align: center;
}

.commune-agenda {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
}

.commune-agenda__item {
    border-left: .5rem solid var(--commune-vert-clair);
    background: var(--commune-fond);
    padding: 1.8rem 2rem;
}

.commune-agenda__date {
    color: var(--commune-vert);
    font-weight: 700;
    margin-bottom: .6rem !important;
}

.commune-agenda__date:first-letter {
    text-transform: uppercase;
}

.commune-agenda__titre {
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .8rem;
}

.commune-agenda__lieu {
    color: #4b4b4b;
    display: flex;
    font-size: 1.5rem;
    gap: .8rem;
}

.commune-barres {
    margin: .4rem 0 1.6rem;
}

.commune-barres__svg {
    display: block;
    height: 12rem;
    width: 100%;
}

.commune-barres__svg rect {
    animation: commune-pousse .9s ease-out both;
    fill: var(--commune-vert);
    transform-box: fill-box;
    transform-origin: bottom;
    transition: fill .2s;
}

.commune-barres__svg rect:hover {
    fill: var(--commune-bleu);
}

@keyframes commune-pousse {
    from {
        transform: scaleY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .commune-barres__svg rect {
        animation: none;
    }
}

@media print {
    .commune-barres__svg rect {
        animation: none;
    }
}

.commune-barres__annees {
    display: flex;
}

.commune-barres__annees li {
    flex: 1 1 0;
    font-size: 1.15rem;
    min-width: 0;
    text-align: center;
}

.commune-barres__annees {
    border-top: 1px solid #9aa0b8;
    padding-top: .4rem !important;
}


.commune-donnees summary,
.commune-sources summary {
    color: var(--commune-bleu-fonce);
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.commune-donnees {
    margin-bottom: 1.4rem;
}

.commune-donnees__table {
    border-collapse: collapse;
    font-size: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.commune-donnees__table caption {
    font-weight: 700;
    padding-bottom: .6rem;
    text-align: left;
}

.commune-donnees__table th,
.commune-donnees__table td {
    border-bottom: 1px solid #d5d9e8;
    padding: .4rem .8rem;
    text-align: left;
}

.commune-donnees__table td {
    text-align: right;
}

.commune-sources {
    border-top: 1px solid #d5d9e8;
    color: #4b4b4b;
    font-size: 1.5rem;
    margin-bottom: 4rem;
    padding-top: 1.6rem;
}

.commune-sources__tableau {
    overflow-x: auto;
}

.commune-sources table {
    border-collapse: collapse;
    margin-top: .8rem;
    width: 100%;
}

.commune-sources th,
.commune-sources td {
    border-bottom: 1px solid #d5d9e8;
    overflow-wrap: anywhere;
    padding: .5rem .8rem .5rem 0;
    text-align: left;
    vertical-align: top;
}

.commune-sources thead th {
    color: #1e1e1e;
}

.commune-agenda + .commune-note {
    margin-top: 1.4rem;
}

.commune-elus {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
}

.commune-elus__item {
    align-items: center;
    background: var(--commune-fond);
    border-radius: .4rem;
    display: flex;
    gap: 1.8rem;
    padding: 1.8rem 2rem;
}

.commune-elus__photo {
    border-radius: 50%;
    flex: 0 0 8rem;
    height: 8rem;
    object-fit: cover;
    width: 8rem;
}

.commune-elus__photo.is-vide {
    align-items: center;
    background: #dfe3f1;
    color: var(--commune-bleu);
    display: inline-flex;
    font-size: 3rem;
    justify-content: center;
}

.commune-elus__nom {
    color: var(--commune-bleu-fonce);
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 .2rem !important;
}

.commune-elus__fonction,
.commune-elus__delegation {
    font-size: 1.5rem;
    margin: 0 !important;
}

.commune-elus__delegation {
    color: #4b4b4b;
}

.commune-bloc__sous-titre {
    color: var(--commune-bleu-fonce);
    font-family: var(--typo-2, "Jost"), Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 1.4rem 0 .6rem;
}

.commune-bloc__titre + .commune-bloc__sous-titre {
    margin-top: 0;
}

.commune-etat ul {
    margin: .4rem 0 0 !important;
}

.commune-etat li {
    padding: .2rem 0;
}

.commune-patrimoine {
    border-top: 1px solid #d5d9e8;
    padding: .7rem 0;
}

.commune-patrimoine summary {
    color: var(--commune-bleu-fonce);
    cursor: pointer;
    font-weight: 700;
}

.commune-patrimoine .commune-liste {
    margin: .6rem 0 0 !important;
}

.commune-niveau {
    border-left: .4rem solid #d5d9e8;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .8rem;
    margin: .8rem 0 1rem !important;
    padding: .2rem 0 .2rem 1.2rem;
}

.commune-niveau__intitule {
    font-weight: 700;
}

.commune-niveau__badge {
    border-radius: 1.4rem;
    font-weight: 700;
    padding: 0 1rem;
}

.commune-niveau__fin {
    color: #4b4b4b;
}

.commune-niveau__description {
    color: #4b4b4b;
    flex-basis: 100%;
    font-size: 1.5rem;
}

.commune-niveau__badge.is-aucune {
    background: #e3f2ed;
    color: #1f5446;
}

.commune-niveau__badge.is-vigilance {
    background: #fff3c4;
    color: #5c4700;
}

.commune-niveau__badge.is-alerte {
    background: #ffe2c2;
    color: #7a3b00;
}

.commune-niveau__badge.is-alerte-renforcee {
    background: #fbd5d3;
    color: #8f1214;
}

.commune-niveau__badge.is-crise {
    background: #8f1214;
    color: #fff;
}


.commune-lignes.is-compact {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.commune-lignes.is-compact li {
    padding: 0;
}

.commune-plus {
    margin: .4rem 0 1.2rem;
}

.commune-plus summary {
    color: var(--commune-bleu-fonce);
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.commune-plus[open] summary {
    margin-bottom: .8rem;
}

.commune-liste.is-colonnes {
    column-gap: 2rem;
    columns: 2 14rem;
}

.commune-liste.is-colonnes li {
    break-inside: avoid;
}

.commune-elus-liste {
    column-gap: 3rem;
    columns: 3 20rem;
}

.commune-elus-liste li {
    break-inside: avoid;
    padding: .3rem 0;
}

.commune-niveaux {
    margin-bottom: 1rem !important;
}
