main#contenu {
    overflow-x: clip;
}

.chapo_paragraphe {
    font-size: 40px;
    line-height: 3.1rem;
    text-align: left;
    font-weight: 400;
    color: #000;
    font-family: "Karma", serif;
    margin-bottom: 40px;
    padding-top: 1rem;
    overflow: hidden;
}



.hl-grid-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.hl-grid-row--gutters {
    gap: 2.5rem;
    margin: 0;
    width: 100%;
    align-items: stretch;
}

.hl-grid-row--gutters > .fr-col-md-6 {
    flex: 0 0 calc(50% - 1.25rem);
    max-width: calc(50% - 1.25rem);
    width: calc(50% - 1.25rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.hauts-lieux-cards {
    max-width: 1060px;
}

.hl-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    min-height: 416px;
    height: 100%;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    font-family: "Karma", serif;
    font-weight: 400;
    background: white;
    text-decoration: none;
}

.hl-card,
.hl-card * {
    transition: none !important;
}

.hl-card:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1) !important;
}

.hl-card.fr-enlarge-link::after {
    display: none !important;
}

.hl-card-img img {
    width: 100%;
    height: 270px !important;
    object-fit: cover;
    display: block;
}

.hl-card-body {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    overflow: visible;
}

.hl-card-content {
    display: flex;
    flex-direction: column;
    padding: 30px 50px 40px 40px;
    flex: 1;
    height: auto;
}

.hl-card-address {
    color: #de3242;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: 'Montserrat', "Arial", sans-serif;
    text-decoration: none;
    display: block;
    margin: 0px 0px 15px;
}

.hl-card-title {
    font-size: 1.5625rem;
    font-weight: 400;
    max-width: 410px;
    line-height: 1.3;
    color: #1a1a1a;
    text-decoration: none;
    font-family: "Karma", serif;
    order: 2;
}

.hl-card-title a,
.hl-card-title a:visited,
.hl-card-link,
.hl-card-link:visited {
    color: #1a1a1a;
    text-decoration: none !important;
}

.hl-card-link[href] {
    background-image: none !important;
}

.a.hl.card-link::after {
    display: none !important;
    box-shadow: none !important;
}

.haut-lieu_container {
    max-width: 1045px !important;
    padding-left: 0;
}

.hub-contenu {
    margin-top: 1rem;
    max-width: 650px;
}

.cluster-icon {
    background-color: #1f6f78;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 3px solid #145a62;
}

.marker-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.marker-icon--haut-lieu {
    background-color: #54b2f0;
}

.marker-icon--necropole {
    background-color: #1f3664;
}

.carte-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    overflow: hidden !important;
}

#carte-hauts-lieux {
    border-radius: 0;
    height: 640px !important;
    width: 100%;
    z-index: 0;
    overflow: hidden !important;
}

.hl-carte-filtres,
.carte-fullwidth {
    overflow: hidden !important;
}


.hl-carte-filtres {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 55px;
    background-color: #fff;
}

.hl-carte-filtres__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.hl-filtres-titre {
    font-size: 2.1rem;
    font-weight: 400;
    font-family: "Karma", serif;
    color: #1f1f1f;
}

.hl-filtres-boutons {
    display: grid;
    grid-template-columns: repeat(3, auto);
    align-items: center;
    gap: 1rem;
}

.hl-filtre-btn {
    --hover: transparent;
    --active: transparent;
    --hover-tint: none;
    --active-tint: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.75rem 2.10rem;
    border: 1px solid #5c5a5a;
    border-radius: 2px;
    background-color: #fff;
    color: #474545;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: 'Montserrat', "Arial", sans-serif;
    cursor: pointer;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.hl-filtre-btn:hover {
    background-color: unset;
    outline: none;
}

.hl-filtre-btn--necropoles,
.hl-filtre-btn--hauts-lieux {
    width: 193px;
    height: 58px;
    padding: 0;
}

.hl-filtre-btn--tous {
    width: 99.98px;
    height: 58px;
    padding: 1rem 2.10rem 
}

.hl-filtre-btn--active {
    background-color: #006C82;
    border-color: #1f6f78;
    color: #fff !important;
}

.hl-filtre-btn--active .icon_necropole::before,
.hl-filtre-btn--active .icon_hauts_lieux::before {
    color: #fff; /* #ffffff → #fff */
}

.hl-filtre-btn--necropoles:hover,
.hl-filtre-btn--hauts-lieux:hover {
    background-color: #fff;
    color: #474545;
}


.hl-filtre-btn--active:hover {
    border-color: #000;
    color: #1f1f1f;
    background-color: #1f6f78 !important;
}

.icon_necropole::before,
.icon_hauts_lieux::before {
    font-family: 'onacvg-icons';
    color: #000;
    position: absolute;
    font-size: 1.8rem;
    left: 25px;
    top: 12px;
    height: 30px;
}

.icon_necropole::before { content: "\1f546"; }
.icon_hauts_lieux::before { content: "\e910"; }

.titre-bleu {
    color: #1f3664;
    font-size: 1.875rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border: none;
}

.texte-riche p {
    color: #3a3a3a;
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    font-family: 'Montserrat', "Arial", sans-serif;
}

.bloc-telechargement {
    background: #ffffff;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 0;
    min-width: 500px;
    overflow: hidden;
}

.bloc-telechargement__inner {
    display: flex;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0;
}

.bloc-telechargement__img {
    flex-shrink: 0;
    width: 200px;
    height: 160px;
    display: block;
    border-radius: 2px;
    padding-top: 15px;
    margin-bottom: 15px;
    margin-left: -25px;
}

.bloc-telechargement__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bloc-telechargement__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem 1.25rem 1.25rem 3rem;
}

.bloc-telechargement__titre {
    font-size: 1.375rem;
    font-weight: 400;
    color: #1f1f1f;
    margin: 0;
}

.custom-download-btn_haut-lieu {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    overflow: hidden;
    height: 60px;
    min-width: 150px;
    margin-top: 0.5rem;
    margin-bottom: 0.86rem;
    border-radius: 3px;
}

.custom-download-btn_haut-lieu[href] {
    background-image: none !important;
}

.custom-download-btn_haut-lieu::after {
    display: none !important;
    content: none !important;
}

.custom-download-btn_haut-lieu .icon-box {
    background-color: #0d7bc6;
    color: white;
    min-width: 70px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-download-btn_haut-lieu .label-box {
    background-color: #1a2a5e;
    padding: 0 25px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-download-btn_haut-lieu .label-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #0d7bc6;
    transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.custom-download-btn_haut-lieu:hover .label-box::before { left: 0; }
.custom-download-btn_haut-lieu:hover .label-box { background-color: #0d7bc6; }
.custom-download-btn_haut-lieu:hover .icon-box { background-color: #0d7bc6; }

.custom-download-btn_haut-lieu .label-text {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.custom-download-btn_haut-lieu .label-text strong {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: white;
    font-family: 'Montserrat', "Arial", sans-serif;
}

.custom-download-btn_haut-lieu .label-text small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.03em;
    color: white;
}

.liens-fond-blanc {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
    font-family: "Karma", serif;
}

.liens-fond-blanc li {
    background-color: #ffffff;
}

.liens-fond-blanc li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    padding: 2.5rem;
    text-decoration: none;
    color: #1f1f1f;
    font-size: 1.3rem;
    font-weight: 400;
    font-family: "Karma", serif;
    transition: background-color 0.2s ease;
}

.liens-fond-blanc li a::after {
    content: "";
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-left: 1rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3664' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

.lien-haut-lieu[href] {
    background-image: none !important;
    box-shadow: none !important;
}

.fr-link.lien-custom a::after {
    background-image: none !important;
}

/* Message CTRL + molette */
.hl-carte-scroll-hint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hl-carte-scroll-hint.visible {
    opacity: 1;
}

.hl-carte-scroll-hint span {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hl-popup-wrapper .leaflet-popup-content-wrapper {
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.hl-popup-wrapper .leaflet-popup-content {
    margin: 0;
    width: 100% !important;
}

.hl-popup-wrapper .leaflet-popup-tip {
    background: #fff;
}

.hl-popup {
    font-family: 'Montserrat', Arial, sans-serif;
}

.hl-popup__header {
    background-color: #0D7BC6 !important;
    padding: 30px 50px 40px 40px;
    width: 300px !important;
    height: auto !important;
}

.hl-popup__titre {
    color: #fff;
    font-family: "Karma";
    font-size: 1.25rem !important;
    font-weight: 400;
    margin: 0 0 10px !important;
    line-height: 1.5625rem !important;
    width: 210px;

}

.hl-popup__adresse {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 2px !important; 
    line-height: 1.3;
}


.hl-popup__footer {
    background-color: #fff;
    padding: 30px 25px 30px 35px !important;
    width: 300px !important;
}

.hl-popup__link {
    color: #132A67 !important;
    font-size: 0.875rem !important;
    font-weight: 400;
    text-decoration: none;
    display: flex;
    line-height: 1.5625rem !important;
    align-items: center;
    justify-content: space-between;
    font-family: 'Montserrat', Arial, sans-serif;
}

.hl-popup__link span{
    font-size: 2rem !important;
    color: #132A67 !important;
}

.hl-popup-wrapper.leaflet-popup .leaflet-popup-close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    font: 20px / 28px Tahoma, Verdana, sans-serif;
    color: #fff;
    background: transparent;
    border: none;
    text-decoration: none;
    text-align: center;
    z-index: 101;
    cursor: pointer;
}

.hl-popup-wrapper.leaflet-popup .leaflet-popup-close-button:hover {
    color: #d0eef3;
}

.hl-popup__link:hover {
    color: #0D7BC6;
    font-weight: 500;
}

.hl-popup__link[href]{
    background-image: none !important;
}




@media (max-width: 1059px) {

    .chapo_paragraphe {
        font-size: 1.75rem !important;
        line-height: 2.1875rem !important;
        width: 100% !important;
    }

    .haut-lieu_container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        box-sizing: border-box;
        width: 100% !important;
    }

    .hauts-lieux-cards {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .hauts-lieux-cards .hl-grid-row--gutters {
        margin: 0 !important;
        width: 100% !important;
        gap: 1.5rem;
    }

    .hauts-lieux-cards .hl-grid-row--gutters > [class*="fr-col"] {
        flex: 0 0 calc(50% - 0.75rem) !important;
        max-width: calc(50% - 0.75rem) !important;
        width: calc(50% - 0.75rem) !important;
        box-sizing: border-box;
        display: flex;
    }

    .hl-card {
        min-height: 416px !important;
        height: 100%;

    }

    .hl-card-img img {
        height: 200px !important;
    }

    .hl-card-body {
        height: auto !important;
        min-height: 0 !important;
        flex: 1 1 auto !important;
        overflow: visible !important;
    }

    .hl-card-content {
        padding: 20px !important;
        flex: 1;
        height: auto;
        gap: 8px !important;
    }

    .hl-card-title {
        font-size: 1.25rem !important;
    }

    .hub-contenu {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        box-sizing: border-box;
    }

    .carte-fullwidth {
        height: 480px;
    }

    #carte-hauts-lieux {
        height: 480px !important;
    }

    .hl-filtres-titre {
        font-size: 1.5625rem !important;
    }

    .hl-filtres-boutons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto ;
        gap: 0.75rem;
        width: 100%;
    }

    /*
    .hl-carte-filtres {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        padding: 2rem 2rem;
        gap: 10rem;
        margin-left: 0;
        box-sizing: border-box;
    } */

    .hl-carte-filtres__inner {
        grid-template-columns:auto 1fr;
        gap: 1.5rem;
        left: 50%;
        padding: 0;
        max-width: 100%;
        width: 100%;
        align-items: start;
    }

    .hl-filtre-btn--necropoles { grid-column: 1; grid-row: 1; }
    .hl-filtre-btn--hauts-lieux { grid-column: 2; grid-row: 1;}

    .hl-filtre-btn--tous {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .hl-filtre-btn--necropoles,
    .hl-filtre-btn--hauts-lieux {
        width: 100%;
        height: 58px;
    }

    .icon_necropole::before,
    .icon_hauts_lieux::before {
        position: relative;
        left: auto;
        top: auto;
        height: auto;
    }

    .bloc-telechargement {
        min-width: unset !important;
        width: 100% !important;
        box-sizing: border-box;
        border: 1px solid #e5e5e5 !important;
        padding: 0;
    }

    .bloc-telechargement__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem;
        gap: 1rem;
    }

    .bloc-telechargement__img {
        display: none !important;
    }

    .bloc-telechargement__content {
        padding: 0 !important;
        gap: 0.5rem;
        width: 100%;
    }

    .bloc-telechargement__titre {
        font-size: 1.125rem !important;
        font-weight: 400;
        color: #1f1f1f;
        margin: 0;
        font-family: "Karma", serif;
    }

    .custom-download-btn_haut-lieu {
        height: auto !important;
        width: auto !important;
        min-width: unset !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .custom-download-btn_haut-lieu .icon-box {
        background: none !important;
        color: #1f3664 !important;
        min-width: unset !important;
        padding: 0 !important;
        width: 20px;
        height: 24px;
    }

    .custom-download-btn_haut-lieu .icon-box svg {
        stroke: #1f3664;
        width: 20px;
        height: 24px;
    }

    .custom-download-btn_haut-lieu .label-box {
        background: none !important;
        padding: 0 !important;
    }

    .custom-download-btn_haut-lieu .label-box::before {
        display: none !important;
    }

    .custom-download-btn_haut-lieu .label-text {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        color: #1f3664 !important;
    }

    .custom-download-btn_haut-lieu .label-text strong,
    .custom-download-btn_haut-lieu .label-text small {
        font-size: 0.75rem !important;
        color: #1f3664 !important;
        font-weight: 400;
        opacity: 1;
        font-family: 'Montserrat', "Arial", sans-serif;
    }

    .custom-download-btn_haut-lieu .label-text strong::after {
        content: " —";
    }

    .liens-fond-blanc li a {
        font-size: 1.1rem !important;
        padding: 1.75rem 2rem !important;
    }

    .titre-bleu {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 879px) {

    .hl-carte-filtres {
        padding: 1.75rem 1.5rem;
    }

    .hl-carte-filtres__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hl-filtres-titre {
        font-size: 1.4rem !important;
        width: 100%;
    }

    .hl-filtres-boutons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem;
        width: 100%;
    }

    .hl-filtre-btn--necropoles {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 54px;
    }

    .hl-filtre-btn--hauts-lieux {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        height: 54px;
    }

    .hl-filtre-btn--tous {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 54px;
    }
}

@media (max-width: 768px) {

    .hl-card-body {
        overflow: visible !important;
    }

    .hl-carte-filtres {
        padding: 1.5rem 2rem;
    }

    .hl-carte-filtres__inner {
        grid-template-columns: 1fr;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hl-card-content {
        padding: 16px 20px !important;
        flex: 1 !important;
    }

    .chapo_paragraphe {
        font-size: 1.4rem !important;
        line-height: 1.9rem !important;
    }

    .haut-lieu_container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box;
    }

    .hauts-lieux-cards .hl-grid-row--gutters {
        margin: 0 !important;
        width: 100% !important;
        gap: 1rem;
    }

    .hauts-lieux-cards .hl-grid-row--gutters > [class*="fr-col"] {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        width: calc(50% - 0.5rem) !important;
        box-sizing: border-box;
    }

    .hl-filtres-boutons {
    gap: 0.5rem;
    }

    .hl-filtre-btn {
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
        gap: 0.75rem;
    }

    .hl-filtre-btn--necropoles,
    .hl-filtre-btn--hauts-lieux {
        height: 52px;
    }

    .liens-fond-blanc li a {
        font-size: 1rem !important;
        padding: 1.25rem 0.75rem !important;
    }
}

@media (max-width: 480px) {

    .chapo_paragraphe {
        font-size: 1.2rem !important;
        line-height: 1.7rem !important;
    }

    .fr-container{
        overflow: hidden;
    }

    .hauts-lieux-cards .hl-grid-row--gutters > [class*="fr-col"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .hl-grid-row--gutters {
        flex-direction: column;
        gap: 1rem;
    }

    .hl-filtres-titre {
    font-size: 1.25rem !important;
    margin: 0;
    }

    .hl-filtres-boutons {
        width: 100%;
    }

    .hl-filtre-btn--tous {
        height: 48px;
    }

    .hl-filtre-btn {
        width: 100%;
        justify-content: center;
    }

    .titre-bleu {
        font-size: 1.25rem !important;
    }

    .bloc-telechargement__titre {
        font-size: 1.1rem;
    }

    .liens-fond-blanc li a {
        font-size: 0.95rem !important;
        padding: 1rem 0.5rem !important;
    }

    .hl-carte-filtres__inner{
        padding: 1rem 1rem
    }
}