/*body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
*/

/* la carte DOIT avoir une hauteur sinon elle n'apparaît pas */
#map {
    height: 400px;
    max-width: 923px;
    width: 100vw;
    border-radius: 15px;
}

section#bloc-map-card {
    display: flex;
    justify-content: center;
    /*padding-top: 30px;*/
    font-family: 'AkkoPro_Condensed','Arial';
}

div#map-container{
    position: relative;
}

div#card-container{
    margin-left: 20px;
}

div#card-container .card {
    width: 300px;
    height: 400px;
}


div.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
    font-family: 'AkkoPro_Condensed','Arial';
}

div.card-top-img {
    width: inherit;
    height: 150px;
    position: relative;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

div.card-top-img img{
    transform: translate(0%, -25%);
    width: 100%;
}

div.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #f9f9f9;
    border-radius: 15px;
    justify-content: space-between;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, .3));
    font-size: 1.1em;
}

div.card-tile .card-content {
    /* height: 60%; */
    font-size: 1.1em;
}

#locate-position {
    bottom: 50px;
    position: absolute;
    left: 21px;
    height: 40px;
    width: 40px;
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    z-index: 600;
    background: #8CC14C;
    border: none;
    color: white;
    font-size: 1.8em;
}

/*
div.card-content::before {
    content: "";
    width: 70px;
    height: 70px;
    display: block;
    right: calc( 50% - 35px);
    position: absolute;
    top: -35px;
    border-radius: 50%;
    background: url(https://i0.wp.com/ahfirstaid.org/wp-content/uploads/2014/07/avatar-placeholder.png?w=204);
    background-size: contain;
}
*/

div.card-content h2{
    margin: 0;
    color: #6d6d6d;
    font-weight: 600;
    text-align: center;
    color: #00000091;
    font-size: 22px;
}

div.card-content div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    /* margin-top: 35px; */
    background: #eeeeee;
    border-radius: 15px 15px 0 0;
    /* color: orange; */
}

div.card-content div:nth-child(2),
div.card-content div:nth-child(3),
div.card-content div:nth-child(4) {
    display: flex;
    justify-content: center;
    align-items: center;
}

div.card-content div:nth-child(2),
div.card-content div:nth-child(3) {
    height: 20%;
}

div.card-content div:nth-child(4) {
    margin-bottom: 30px;
}

div.card-content div i {
    font-size: 1.8em;
    /* margin-left: 15px; */
}

div.card-content div i:nth-child(2) {
    margin-left: 20px;
}

div.card-content div p {
    text-align: center;
    font-size: 0.9em;
    padding: 0px 20px;
    width: 70%;
}

section.photo-responsable {
    width: 70px;
    height: 70px;
    position: absolute;
    top: -35px;
    right: calc( 50% - 35px );
}

section.photo-responsable img{
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}
/*
section.card-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin-top: 30px;
    justify-content: space-between;
}
*/
section.card-grid {
    max-width: 1248px;
    margin: 0 auto;
    display: grid;
    grid-gap: 1rem;
}

a.link-implant{
    color: black;
    transition: .3s;
}

a.link-implant:hover{
    color: #eea70e !important;
    transition: .3s;
}

/* OVERRIDE SECTION */
.leaflet-top, .leaflet-bottom {
    z-index: 898 !important;
}

.leaflet-popup-content {
    text-align: center !important;
}
/* cache le bouton de modification de l'article */
button#dropdownMenuButton-54 {
    display: none;
}
/* END OVERRIDE SECTION */

.tooltips {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #222;
    outline: none;
}

.tooltips span {
    text-align: center;
    visibility: hidden;
    position: absolute;
    bottom: 73px;
    left: -10px;
    z-index: 999;
    width: 100%;
    /* margin-left: -127px; */
    padding: 10px;
    border: 2px solid #ccc;
    opacity: .9;
    background-color: #ddd;
    background-image: -webkit-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
    background-image: -moz-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
    background-image: -ms-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
    background-image: -o-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
    background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
    -moz-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
    box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
    text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.tooltips:hover {
    border: 0; /* IE6 fix */
}

.tooltips:hover span {
    visibility: visible;
}

.tooltips span:before,
.tooltips span:after {
    content: "";
    position: absolute;
    z-index: 1000;
    bottom: -7px;
    left: 50%;
    margin-left: -8px;
    border-top: 8px solid #ddd;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 0;
}

.tooltips span:before {
    border-top-color: #ccc;
    bottom: -8px;
}

/* RESPONSIVE SECTION */
/* Screen larger than 600px? 2 column */
@media (min-width: 600px) {
    section.card-grid { 
        grid-template-columns: repeat(2, 1fr);
    }
}
  
/* Screen larger than 900px? 4 columns */
@media (min-width: 900px) {
    section.card-grid { 
        grid-template-columns: repeat(4, 1fr);
        /* grid-template-columns: repeat(auto-fit, 263px); */
    }
}

/* Screen smaller than 320px */
@media (max-width: 480px) {
    #map {
        height: 287px;
        width: 100vw;
        margin-left: -15px;
        margin-bottom: 30px;
    }

    section#bloc-map-card {
        flex-direction: column;
        padding-top: 0;
    }

    div#card-container {
        margin-left: 0;
    }

    div#card-container .card {
        width: inherit;
    }

    div.card-top-img {
        height: 250px;
    }

    div.card-top-img img{
        width: 100%;
    }

    section.card-grid {
        display: none;
    }

    .leaflet-top, .leaflet-bottom {
        z-index: 499 !important;
    }
}