



.wp-block-group.groupmap {

    display: flex;

    padding: 0 50px 50px;

    align-items: flex-start;

    justify-content: space-between;

}

.wp-block-group.textmap {

    flex-basis: 50%;

    text-align: left;

    line-height: 20px;

    font-size: 16px;

    color: #003171;

    letter-spacing: 0.5px;

}

.wp-block-group.textmap a {

    font-size: 16px;

}

.wp-block-group.textmap a {

    border: none;

}

.wp-block-group.textmap a::after {

    content: " ";

    background: #dde8b9;

    height: 3px;

    width: 50px;

    display: block;

    margin-top: 6px;

    margin-bottom: 0;

}

.wp-block-group.textmap h5 {

    margin-bottom: 0;

}

.groupmap .wp-block-buttons.is-layout-flex.wp-block-buttons-is-layout-flex {

    margin-top: 30px;

}

.groupmap a {

    text-decoration: none;

    color: #003171;

    border-bottom: 2px solid #dde8b9;

}



.guidecontact a.wp-block-button__link.wp-element-button {

    color: #dde8b9;

    border: none;

    transition: 500ms all;

    line-height: normal;

    margin: 0 auto;

}

.guidecontact a.wp-block-button__link.wp-element-button::after {content:none}

.guidecontact a.wp-block-button__link.wp-element-button:hover {

    color: #fff;

}

.wp-block-group.textmap p {

    margin-bottom: 0;

}

/* Container de la carte */

.imp-map-container {

    position: relative;

    flex-basis: 45%;

}



.imp-map-container img {

    width: 100%;

    height: auto;

    display: block;

    position: relative;

    z-index: 0;

}



/* Points d'intérêt */

.poi-poi {

    position: absolute;

    z-index: 3;

    transform: translate(-50%, -50%);

    /*cursor: pointer;*/

}



.poi-poi::before {

    content: "";

    position: relative;

    background: #bc002d;

    height: 8px;

    width: 8px;

    display: block;

    border-radius: 100%;

    transition: transform 0.2s ease;

    border: 3px solid #fff;

}







/* Markers et tooltips */

.poi-marker {

    display: none;

    position: absolute;

    transform: translate(-50%, -50%);

    z-index: 10;

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;

}



.poi-marker.marker-visible {

    display: block;

}



.poi-tooltip {
    position: absolute;
    background: #003171;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 700px;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    overflow: hidden;
}



/* Contenu tooltip */

.poi-tooltip h4 {

    margin: 0;

    color: #dde8b9;

}



.poi-tooltip div {

    width: 50%;

    min-width: 120px;

    text-align: left;

    position: relative;

}



.poi-tooltip div + div {

    padding-left: 20px;

    color: #fff;

    font-size: 14px;

}



.imgdivpoi {

    overflow: hidden;

}



.imgdivpoi img {

    height: 100%;

    width: auto;

    position: absolute;

    max-width: none;

}

.groupmap a.poi-link {

    color: #dde8b9;

    font-size: 14px;

    text-decoration: none;

    display: inline-block;

}

/* Bouton fermeture */

.closepoi {

    position: absolute;

    top: -12px;

    right: -12px;

    width: 23px;

    height: 23px;

    background-color: #003171;

    border-radius: 100%;

    cursor: pointer;

    z-index: 1;

    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23dde8b9"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"></path></svg>');

    background-size: cover;

    background-position: center;

}





/* Affichage sur desktop */

@media (min-width: 992px) {

    .poi-marker {

        position: absolute;

        transform: translate(-50%, -50%);

    }

    

    /* Afficher au hover et maintenir affiché */

    .poi-poi:hover + .poi-marker,

    .poi-marker:hover {

        display: block;

        opacity: 1;

        visibility: visible;

    }

    .closepoi {display:none}

}





/* Responsive */

@media (max-width: 991px) {

    .poi-marker {

        position: fixed;

        left: 95% !important;

        top: 50% !important;

    }

    /* Version mobile */

    .marker-visible {

        display: block;

        opacity: 1;

        visibility: visible;

    }

    .poi-tooltip {

        width: 90vw;

        min-width: 200px;

        flex-wrap: wrap;

    }

    

    .poi-tooltip div {

        width: 100%;

        min-width: 100%;

    }

    

    .imgdivpoi img {

        position: static;

        width: 100%;

        height: auto;

        margin-bottom: 15px;

    }

}

