/* =========================================================
   CARTE DES RÉALISATIONS : charte enerev
   Vert nuit #0B2B29 · Vert titres #0A5048 · Vert enerev #0D8A7E · Turquoise #63D3C2
   Vert d'eau #CFE6E1 · Vert pâle #F0F8F6 · Crème #F7F3EA · Sable #E4DED3
   Encre #1B1C1A · Gris ardoise #4A5350
   ========================================================= */

.rmap {
    padding: 5rem 0;
    background: #F0F8F6;
    border-top: 1px solid #CFE6E1;
    border-bottom: 1px solid #CFE6E1;
}

.rmap__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.rmap__head {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.rmap__eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    color: #0D8A7E;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rmap__head h2 {
    margin: 0 0 1rem;
    color: #0A5048;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.rmap__head p {
    margin: 0;
    color: #4A5350;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Carte */
.rmap__stage {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #CFE6E1;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(11, 43, 41, 0.14);
}

.rmap__map {
    width: 100%;
    height: 520px;
}

.rmap__map[hidden],
.rmap__placeholder[hidden] {
    display: none;
}

/* Image fixe de la carte : visible dès l'arrivée, sans appel à Google ni cookie.
   Capture de Google Maps avec son attribution d'origine (logo « Google » et mentions), laissée entière. */
.rmap__placeholder {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.rmap__poster {
    display: block;
    width: 100%;
    height: auto;
}

.rmap__placeholder-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    color: #0A5048;
    background: #fff;
    border-top: 1px solid #E4DED3;
}

.rmap__placeholder-box .btn-green {
    flex: 0 0 auto;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.rmap__placeholder-box .btn-green i {
    margin-right: 0.6rem;
}

.rmap__placeholder-box small {
    color: #6D7370;
    font-size: 0.8rem;
    line-height: 1.5;
}

.rmap__placeholder-box small a {
    color: #0D8A7E;
    text-decoration: underline;
}
/* Marqueur au logo enerev */
.rmap-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #fff;
    border: 3px solid #0D8A7E;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(11, 43, 41, 0.35);
    transition: transform 0.2s ease;
}

.rmap-pin:hover {
    transform: scale(1.12);
}

.rmap-pin img {
    display: block;
    width: 28px;
    height: 28px;
}

.rmap-you {
    width: 18px;
    height: 18px;
    background: #0B2B29;
    border: 3px solid #63D3C2;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(99, 211, 194, 0.3);
}

/* Fenêtre d'information */
.rmap-card {
    width: 250px;
    font-family: Aptos, 'Nunito', sans-serif;
}

.rmap-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.rmap-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem 0.85rem;
}

.rmap-card__body strong {
    color: #0A5048;
    font-size: 1.25rem;
    font-weight: 700;
}

.rmap-card__body span {
    color: #4A5350;
    font-size: 0.95rem;
}

.rmap .gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px;
}

.rmap .gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

.rmap .gm-style .gm-ui-hover-effect {
    top: 4px !important;
    right: 4px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .rmap {
        padding: 3.25rem 0;
    }


    .rmap__map {
        height: 440px;
    }

    .rmap__placeholder-box {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        text-align: center;
    }
}

/* Regroupement de repères */
.rmap-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 0.5rem;
    color: #fff;
    background: #0D8A7E;
    border: 4px solid #CFE6E1;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(11, 43, 41, 0.35);
    font-family: Aptos, 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Fenêtre sans photo */
.rmap-card--text {
    width: auto;
    min-width: 170px;
}

.rmap-card--text .rmap-card__body {
    padding: 0.9rem 2.2rem 0.9rem 1.1rem;
}
/* Bouton « Voir toutes les installations » */
.rmap-reset {
    margin: 10px;
    padding: 0.55rem 0.95rem;
    color: #0A5048;
    background: #fff;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(11, 43, 41, 0.3);
    font-family: Aptos, 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.rmap-reset:hover {
    color: #fff;
    background: #0D8A7E;
}
.rmap-card__body em {
    color: #6D7370;
    font-size: 0.85rem;
    font-style: normal;
}

.rmap-card__equip {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.65rem 0 0 !important;
    padding: 0.65rem 0 0 !important;
    list-style: none;
    border-top: 1px solid #E4DED3;
}

.rmap-card__equip li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A5350;
    font-size: 0.88rem;
    line-height: 1.35;
}

.rmap-card__equip i {
    width: 1.1rem;
    color: #0D8A7E;
    text-align: center;
}
