.carte-lieux {
    --carte-encre: #1e1e1e;
    --carte-accent: #1d3078;
    --carte-trait: #b9bfcf;
    --carte-fond: #f3f4f9;
    color: var(--carte-encre);
    margin: 0 0 2em;
}

.carte-lieux [hidden] {
    display: none !important;
}

.carte-lieux__filtres {
    background: var(--carte-fond);
    border: 1px solid var(--carte-trait);
    border-radius: .25em;
    margin: 0 0 1em;
    min-width: 0;
    padding: .75em 1em 1em;
}

.carte-lieux__filtres legend {
    background: var(--carte-fond);
    font-size: 1.125em;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 .4em;
}

.carte-lieux__filtres ul {
    display: flex;
    flex-wrap: wrap;
    gap: .6em 1.5em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.carte-lieux__filtres li {
    align-items: center;
    display: flex;
    gap: .5em;
    margin: 0;
    padding: 0;
}

.carte-lieux__filtres li::before {
    content: none;
}

.carte-lieux__filtres input {
    accent-color: var(--carte-accent);
    flex: none;
    height: 1.25em;
    margin: 0;
    width: 1.25em;
}

.carte-lieux__filtres label {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: .4em;
    margin: 0;
}

.carte-lieux__statut {
    font-weight: 700;
    margin: 0 0 1em;
}

.carte-lieux__outils {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    margin: 0 0 .5em;
}

.carte-lieux__outils button {
    background: #fff;
    border: 2px solid var(--carte-accent);
    border-radius: .25em;
    color: var(--carte-accent);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 2.75em;
    padding: .25em 1em;
}

.carte-lieux__outils button:hover {
    background: var(--carte-accent);
    color: #fff;
}

.carte-lieux button:focus-visible,
.carte-lieux input:focus-visible,
.carte-lieux a:focus-visible {
    outline: 3px solid var(--carte-encre);
    outline-offset: 2px;
}

.carte-lieux__plan {
    border: 1px solid var(--carte-trait);
    border-radius: .25em;
    max-height: 70vh;
    z-index: 0;
}

.carte-lieux__source {
    font-size: .875em;
    margin: .5em 0 1.5em;
}

.carte-lieux__repere {
    align-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--carte-encre);
    box-sizing: border-box;
    color: #fff;
    display: inline-flex;
    flex: none;
    font-size: .8em;
    font-weight: 700;
    height: 1.9em;
    justify-content: center;
    line-height: 1;
    width: 1.9em;
}

.carte-lieux__repere--1 {
    background: #1f5fae;
}

.carte-lieux__repere--2 {
    background: #a14000;
}

.carte-lieux__repere--3 {
    background: #b3261e;
}

.carte-lieux__repere--4 {
    background: #6a3d9a;
}

.carte-lieux__repere--5 {
    background: #00695c;
}

.carte-lieux__repere--6 {
    background: #4b5d1a;
}

.carte-lieux__repere--7 {
    background: #a3155f;
}

.carte-lieux__repere--8 {
    background: #5d4037;
}

.carte-lieux__marqueur .carte-lieux__repere {
    box-shadow: 0 0 0 1px var(--carte-encre), 0 2px 4px rgba(0, 0, 0, .45);
    font-size: 14px;
    height: 30px;
    width: 30px;
}

.carte-lieux .leaflet-container {
    font-family: inherit;
    font-size: inherit;
}

.carte-lieux .leaflet-tooltip {
    color: var(--carte-encre);
    font: inherit;
    font-size: .875em;
    max-width: 18em;
    white-space: normal;
    width: max-content;
}

.carte-lieux .leaflet-tooltip p {
    margin: 0;
}

.carte-lieux .leaflet-tooltip p + p {
    margin-top: .5em;
}

.carte-lieux__vide {
    background: var(--carte-fond);
    border-left: 4px solid var(--carte-accent);
    padding: .75em 1em;
}

.carte-lieux__table {
    border-collapse: collapse;
    width: 100%;
}

.carte-lieux__table caption {
    caption-side: top;
    font-weight: 700;
    padding: 0 0 .5em;
    text-align: left;
}

.carte-lieux__table th,
.carte-lieux__table td {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--carte-trait);
    color: var(--carte-encre);
    padding: .6em .75em;
    text-align: left;
    vertical-align: top;
}

.carte-lieux__table thead th {
    background: var(--carte-accent);
    color: #fff;
}

.carte-lieux__table a {
    color: var(--carte-accent);
    text-decoration: underline;
}

.carte-lieux__table a[href^="tel:"] {
    white-space: nowrap;
}

.carte-lieux__theme {
    align-items: center;
    display: flex;
    gap: .4em;
}

.carte-lieux__theme + .carte-lieux__theme {
    margin-top: .3em;
}

.carte-lieux__etiquette {
    display: none;
}

.carte-lieux__masque {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 47.99em) {
    .carte-lieux__table,
    .carte-lieux__table caption,
    .carte-lieux__table tbody,
    .carte-lieux__table tr,
    .carte-lieux__table th,
    .carte-lieux__table td {
        display: block;
    }

    .carte-lieux__table thead {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .carte-lieux__table tbody tr {
        border: 1px solid var(--carte-trait);
        border-radius: .25em;
        margin: 0 0 .75em;
        padding: .5em .75em;
    }

    .carte-lieux__table tbody th,
    .carte-lieux__table tbody td {
        border: 0;
        padding: .25em 0;
    }

    .carte-lieux__table td:empty {
        padding: 0;
    }

    .carte-lieux__etiquette {
        display: inline;
        font-weight: 700;
    }
}
