.legend {
    box-sizing: border-box;
    margin: 0;
    position: absolute;
    z-index: 1;
    bottom: 50px;
    right: 5px;
    padding: 17px 15px;
    width: 50px;
    height: 50px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    white-space: nowrap;
    color: #464448;
    overflow: hidden;
    background: #2a62ac;
    border-radius: 50%;
    box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
}

.legend.open {
    background: white;
    border: 1px solid #ccc;
    width: 225px;
    height: auto;
    border-radius: 2px;
}

.legend.open .legend__button {
    color: #999;
    transform: rotate(45deg);
}

.legend.open .legend__content {
    opacity: 1;
    visibility: visible;
}

.legend__button {
    font-weight: 400;
    border: 0;
    background: none;
    color: white;
    position: absolute;
    top: 18px;
    right: 15px;
    font-size: 34px;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 12px;
    transition: 0.2s;
    user-select: none;
}

.legend__title {
    margin: 0 0 13px 0;
}

.legend__content {
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

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

.legend__content__list li {
    margin: 0 0 3px 0;
    transform: translateX(20px);
    transition: 0.2s;
}

.legend.open .legend__content__list li {
    transform: translateX(0);
}

.list-group-item div {
    display: flex;
    align-items: center;
}

.list-group-item div::before {
    content: '';
    height: 10px;
    width: 20px;
    margin-right: 1em;
}

.legend-plantes div::before {
    background: #2ca25f;
    width: 10px;
}

.legend-papillons div::before {
    background: #2b8cbe;
    width: 10px;
}

.legend-oiseaux div::before {
    background: #e34a33;
    width: 10px;
}