* {
    --link-bg: cadetblue;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

body.modal-open {
    height: 100vh;
    overflow-y: hidden;
}

#map {
    width: 100%;
    height: 100vh;
}

#nav {
    position: fixed;
    bottom: 0;
    z-index: 1003;
    min-height: 34px;
    width: 100vw;
    background: white;
    border-top: 1px solid var(--link-bg);
    padding: 15px;
    padding-left: 20px;
}

#nav p {
    line-height: 28px;
    font-weight: bold;
    ;
    margin: 0;
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;

}

#nav p a,
.open {
    display: inline-block;
    margin: 5px;
    background-color: var(--link-bg);
    color: white;
    font-weight: 700;
    border-radius: 14px;
    height: 28px;
    padding: 0 10px;
    text-decoration: none;
}

#nav p a.sport {
    background-color: #f0d41a;
}

#nav p a.nature {
    background-color: #02a37e;
}

#nav p a.patrimoine {
    background-color: #0091d5;
}

#nav p a:hover,
.open:hover {
    cursor: pointer;
}

.open {
    display: block;
    width: 250px;
    margin: auto;
    text-align: center;
    padding: 15px;
    height: 54px;
}

#nav #switch {
    position: relative;
    width: 48px;
}

#nav #switch span {
    font-size: 8px;
    display: inline-block;
    color: var(--link-bg);
    background-color: white;
    height: 24px;
    line-height: 24px;
    border-radius: 12px;
    width: 24px;
    text-align: center;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all .3s;

}

#nav #switch.active span {
    left: 22px;
    background-color: rgb(51, 136, 255);
    color: white;
}

#modal {
    /* display: none; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    z-index: 1002;
    transform: translateY(100vh);
    transition: transform .5s;
    background-color: white;
    padding: 25px;
    box-sizing: border-box;
    padding-bottom: 70px;
}

#modal.show {
    /* display: block; */
    transform: translateY(0);
}

#modal a.close,
.contact a.close,
.book a.close {
    position: absolute;
    display: block;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10010;
}

#modal a.close:after,
.contact a.close:after,
.book a.close:after {
    display: inline-block;
    content: "\00d7";
    font-size: 2rem;
    color: cadetblue;
}

#modal #video,
#modal .video {
    width: 100%;
    height: 50vh;
    margin-bottom: 25px;
}

#modal #galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#modal #galerie img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.leaflet-popup-content {
    font-size: 1rem;
    padding: 15px;
}

.leaflet-popup-content span.spotname {
    font-weight: bold;
}

.leaflet-popup-content span.spotcat {
    display: inline-block;
    margin-bottom: 10px;
}

.leaflet-popup-content a {
    color: white;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    height: 28px;
    width: 28px;
    border-radius: 14px;
    background-color: var(--link-bg);
    font-size: 17px;

}

#modal img {
    max-width: 100%;
    height: auto;
    width: 100%;
}

img.logo {
    width: 220px;
    max-width: 50vw;
    height: auto;
    display: block;
    margin: 20px auto;
}

.partenaires {
    background-color: white;
    max-height: 120px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    overflow: hidden;
    /* position:fixed;
    bottom:0; */
    width: 100vw;
}

.partenaires figure {
    margin: 0;
}

.partenaires figure img {
    max-height: 120px;
}

div.contact,
div.book {
    position: absolute;
    top: 100vh;
    z-index: 10000;
    background: white;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    transition: opacity .3s;
    color: #333;
    display: flex;
    align-items: center;
    padding: 50px;
    border-radius: 0;
    pointer-events: none;
}

div.book {
    display: block;
}

div.book img {
    width: 100%;
    height: auto;
}

div.book>div {
    overflow-y: scroll;
    height: 100%;
}

div.contact.open,
div.book.open {
    opacity: 1;
    top: 0;
    pointer-events: auto;
}

a.open.index {
    position: fixed;
    bottom: 30px;
    width: 80%;
    margin-left: 10%;
}

img[src='assets/arrivee.png'] {
    width: 70px !important;
    margin-left: -5px !important;
}

img[src='assets/depart.png'] {
    width: 90px !important;
    margin-left: -68px !important;
}