/* ==========================================================================
   Page Nos références
   ========================================================================== */

.ld-page-hero-references {
    position: relative;
    overflow: hidden;
}

.ld-page-hero-references::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -260px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 56, 128, .12), transparent 70%);
    pointer-events: none;
}

.ld-reference-countries {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
}

.ld-reference-country {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
}

.ld-reference-country .fi {
    width: 1.65rem;
    height: 1.1rem;
    box-shadow: 0 2px 7px rgba(23, 32, 51, .15);
}

.ld-reference-proof-card {
    padding: 2rem;
    border: 1px solid var(--ld-border);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--ld-shadow-lg);
}

.ld-reference-proof-card strong {
    display: block;
    color: var(--ld-primary);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    line-height: 1;
}

.ld-reference-proof-card span {
    display: block;
    margin-top: .45rem;
    font-weight: 700;
}

/* ==========================================================================
   Carte
   ========================================================================== */

.ld-references-map-section {
    position: relative;
    overflow: hidden;
}

.ld-references-map-count {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.35rem;
    border: 1px solid var(--ld-border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--ld-shadow);
}

.ld-references-map-count strong {
    color: var(--ld-primary);
    font-size: 1.75rem;
    line-height: 1;
}

.ld-references-map-count span {
    margin-top: .35rem;
    color: var(--ld-text-light);
    font-size: .9rem;
}

.ld-references-map-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(11, 56, 128, .13);
    border-radius: 1.75rem;
    background: #eef4fa;
    box-shadow: var(--ld-shadow-lg);
}

.ld-references-map {
    width: 100%;
    height: clamp(520px, 68vh, 760px);
    min-height: 520px;
}

.ld-references-map-empty,
.ld-disciplines-empty {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--ld-text-light);
    text-align: center;
}

.ld-references-map-empty i,
.ld-disciplines-empty i {
    color: var(--ld-primary);
    font-size: 2.75rem;
}

.ld-references-map .leaflet-control-attribution {
    font-size: .68rem;
}

.ld-references-map .leaflet-bar {
    overflow: hidden;
    border: 0;
    border-radius: .85rem;
    box-shadow: 0 8px 24px rgba(23, 32, 51, .14);
}

.ld-references-map .leaflet-bar a {
    color: var(--ld-primary);
}

/* Popup Leaflet */
.ld-references-leaflet-popup .leaflet-popup-content-wrapper {
    overflow: hidden;
    padding: 0;
    border-radius: 1.15rem;
    box-shadow: 0 18px 45px rgba(23, 32, 51, .20);
}

.ld-references-leaflet-popup .leaflet-popup-content {
    width: auto !important;
    margin: 0;
}

.ld-references-leaflet-popup .leaflet-popup-close-button {
    top: .55rem;
    right: .55rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ld-primary) !important;
    font-size: 1.25rem;
    z-index: 2;
}

.ld-reference-popup {
    min-width: 260px;
    max-width: 410px;
    padding: 1.35rem;
    color: var(--ld-text);
}

.ld-reference-popup-type {
    display: inline-flex;
    max-width: calc(100% - 2.25rem);
    margin-bottom: .65rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(11, 56, 128, .08);
    color: var(--ld-primary);
    font-size: .76rem;
    font-weight: 750;
}

.ld-reference-popup-title {
    margin: 0 0 .65rem;
    color: var(--ld-primary);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.ld-reference-popup-location,
.ld-reference-popup-date {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: 0 0 .45rem;
    color: var(--ld-text-light);
    line-height: 1.4;
}

.ld-reference-popup-location i,
.ld-reference-popup-date i {
    margin-top: .12rem;
    color: var(--ld-primary);
}

.ld-reference-popup-editions {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--ld-border);
}

.ld-reference-popup-editions-title {
    margin-bottom: .55rem;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ld-reference-popup-editions-content {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ld-reference-popup-editions-content a {
    display: inline-flex;
    align-items: center;
    padding: .3rem .6rem;
    border-radius: 999px;
    background: var(--ld-soft);
    color: var(--ld-primary);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.ld-reference-popup-editions-content a:hover {
    background: var(--ld-primary);
    color: #fff;
}

.ld-reference-popup-manager {
    margin-top: .9rem;
    color: var(--ld-text-light);
    font-size: .78rem;
}

/* Marqueurs */
.ld-reference-marker .marker-pin {
    width: 35px;
    height: 35px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -17px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 5px 12px rgba(23, 32, 51, .25);
    z-index: 1;
}

.ld-reference-marker .marker-pin::after {
    content: "";
    position: absolute;
    width: 29px;
    height: 29px;
    margin: 3px 0 0 3px;
    border-radius: 50%;
    background: #fff;
}

.ld-reference-marker img.image {
    position: absolute;
    width: 25px;
    height: 25px;
    left: 4px;
    top: 11px;
    object-fit: contain;
    z-index: 2;
}

/* ==========================================================================
   Graphique en bulles
   ========================================================================== */

.ld-references-disciplines-section {
    position: relative;
    overflow: hidden;
}

.ld-disciplines-summary {
    color: var(--ld-text-light);
}

.ld-disciplines-summary strong {
    margin-right: .35rem;
    color: var(--ld-primary);
    font-size: 1.35rem;
}

.ld-disciplines-bubble-pack {
    position: relative;
    width: min(100%, 1180px);
    min-height: 650px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(11, 56, 128, .12);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(11, 56, 128, .06), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(49, 130, 206, .08), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(246, 249, 255, .98));
    box-shadow: var(--ld-shadow-lg);
}

.ld-disciplines-bubble-svg {
    display: block;
    overflow: hidden;
}

.ld-disciplines-bubble-node {
    cursor: default;
    outline: none;
}

.ld-disciplines-bubble-node circle {
    transform-box: fill-box;
    transform-origin: center;
    transition: filter .18s ease, stroke-width .18s ease, transform .18s ease;
}

.ld-disciplines-bubble-node:hover circle,
.ld-disciplines-bubble-node:focus circle,
.ld-disciplines-bubble-node.is-active circle {
    filter: drop-shadow(0 10px 14px rgba(23, 32, 51, .16));
    stroke-width: 4px;
    transform: scale(1.035);
}

.ld-disciplines-bubble-label,
.ld-disciplines-bubble-count {
    fill: #202838;
    font-family: inherit;
    pointer-events: none;
}

.ld-disciplines-bubble-label {
    font-weight: 750;
}

.ld-disciplines-bubble-count {
    font-weight: 800;
}

.ld-disciplines-bubble-icon {
    pointer-events: none;
}

.ld-disciplines-bubble-tooltip {
    position: absolute;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 175px;
    max-width: 230px;
    padding: .7rem .85rem;
    border: 1px solid rgba(11, 56, 128, .12);
    border-radius: .85rem;
    background: rgba(255, 255, 255, .98);
    color: #172033;
    box-shadow: 0 12px 30px rgba(23, 32, 51, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.ld-disciplines-bubble-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ld-disciplines-bubble-tooltip strong {
    font-size: .9rem;
}

.ld-disciplines-bubble-tooltip span {
    margin-top: .15rem;
    color: var(--ld-text-light);
    font-size: .78rem;
}

@media (max-width: 1199.98px) {
    .ld-disciplines-bubble-pack {
        width: 100%;
        min-height: 780px;
    }
}

@media (max-width: 991.98px) {
    .ld-references-map-count {
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .ld-reference-proof-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .ld-references-map-shell,
    .ld-disciplines-bubble-pack {
        border-radius: 1.25rem;
    }

    .ld-references-map {
        height: 68vh;
        min-height: 470px;
    }

    .ld-reference-popup {
        min-width: 220px;
        padding: 1.1rem;
    }

    .ld-disciplines-bubble-pack {
        min-height: 860px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ld-disciplines-bubble-node circle,
    .ld-disciplines-bubble-tooltip {
        transition: none;
    }
}
