/* ============================================================
   SCOTERS SENSITIVE MAP — PREMIUM
   ============================================================ */

.scoters-map-premium {
    --deep:   #062f46;
    --petrol: #08627f;
    --blue:   #159bd3;
    --green:  #22a06b;
    --text:   #163142;
    --muted:  rgba(22, 49, 66, 0.72);
    --white:  #ffffff;

    position: relative;
    overflow: visible;
    padding: clamp(28px, 4vw, 64px);
    border-radius: 36px;
    background:
        radial-gradient(circle at 82% 18%, rgba(21, 155, 211, 0.12), transparent 22%),
        radial-gradient(circle at 72% 82%, rgba(169, 130, 207, 0.10), transparent 20%),
        linear-gradient(135deg, #f8fcfb 0%, #eef8f2 45%, #f6fbfd 100%);
    box-shadow:
        0 34px 90px rgba(7, 53, 76, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    isolation: isolate;
}

.scoters-map-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(6, 47, 70, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 47, 70, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 92%);
    pointer-events: none;
}

/* ── Orbs container (clipped indépendamment) ────────────── */

.scoters-map-premium__orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 36px;
    pointer-events: none;
    z-index: 1;
}

/* ── Intro ──────────────────────────────────────────────── */

.scoters-map-premium__intro {
    position: relative;
    z-index: 3;
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}

.scoters-map-premium__eyebrow {
    margin: 0 0 16px;
    color: var(--green);
    font-size: clamp(18px, 2.2vw, 32px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.scoters-map-premium__text {
    display: block;
    max-width: 420px;
    color: var(--muted);
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.65;
    text-align: left;
}

/* ── Layout ─────────────────────────────────────────────── */

.scoters-map-premium__layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(24px, 4vw, 56px);
}

/* ── Visual container ───────────────────────────────────── */

.scoters-map-premium__visual {
    position: relative;
    z-index: 3;
    flex: 0 0 490px;
    width: 490px;
    margin-left: auto;
}

/* ── Map image + SVG ────────────────────────────────────── */

.scoters-map-premium__image-wrap {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
}

.scoters-map-premium__image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter:
        drop-shadow(0 18px 26px rgba(6, 47, 70, 0.18))
        drop-shadow(0 42px 80px rgba(6, 47, 70, 0.10));
    transform: translateZ(0);
}

.scoters-map-premium__svg {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ── Zones ──────────────────────────────────────────────── */

.scoters-map-premium__zone {
    fill: rgba(255, 255, 255, 0);
    stroke: rgba(255, 255, 255, 0);
    stroke-width: 0;
    cursor: pointer;
    outline: none;
    pointer-events: auto;
    vector-effect: non-scaling-stroke;
    transition:
        fill 0.24s ease,
        stroke 0.24s ease,
        stroke-width 0.24s ease,
        filter 0.24s ease;
}

.scoters-map-premium__zone:hover,
.scoters-map-premium__zone:focus-visible {
    stroke: rgba(255, 255, 255, 0.76);
    stroke-width: 2;
}

.scoters-map-premium__zone--1:hover,
.scoters-map-premium__zone--1:focus-visible {
    fill: rgba(238, 203, 98, 0.28);
    filter: url(#scoters-glow-1);
}

.scoters-map-premium__zone--2:hover,
.scoters-map-premium__zone--2:focus-visible {
    fill: rgba(143, 202, 98, 0.26);
    filter: url(#scoters-glow-2);
}

.scoters-map-premium__zone--3:hover,
.scoters-map-premium__zone--3:focus-visible {
    fill: rgba(111, 185, 231, 0.24);
    filter: url(#scoters-glow-3);
}

.scoters-map-premium__zone--4:hover,
.scoters-map-premium__zone--4:focus-visible {
    fill: rgba(169, 130, 207, 0.26);
    filter: url(#scoters-glow-4);
}

.scoters-map-premium__image-wrap:has(.scoters-map-premium__zone:hover) .scoters-map-premium__image,
.scoters-map-premium__image-wrap:has(.scoters-map-premium__zone:focus-visible) .scoters-map-premium__image {
    filter:
        saturate(1.08)
        contrast(1.04)
        drop-shadow(0 20px 30px rgba(6, 47, 70, 0.20))
        drop-shadow(0 46px 90px rgba(6, 47, 70, 0.14));
}

/* ── Tooltip ────────────────────────────────────────────── */

.scoters-map-premium__tooltip {
    position: absolute;
    z-index: 8;
    min-width: 170px;
    padding: 14px 16px 15px 20px;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(6, 47, 70, 0.94), rgba(8, 98, 127, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 18px 46px rgba(6, 47, 70, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 10px, 0) scale(0.98);
    transition:
        opacity 0.20s ease,
        transform 0.20s ease,
        visibility 0.20s ease;
}

/* Colored left bar per zone */
.scoters-map-premium__tooltip::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--zone-color, var(--blue));
}

.scoters-map-premium__tooltip[data-zone-index="1"] { --zone-color: #eecb62; }
.scoters-map-premium__tooltip[data-zone-index="2"] { --zone-color: #8fca62; }
.scoters-map-premium__tooltip[data-zone-index="3"] { --zone-color: #6fb9e7; }
.scoters-map-premium__tooltip[data-zone-index="4"] { --zone-color: #a982cf; }

.scoters-map-premium__tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}

.scoters-map-premium__tooltip-kicker {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.scoters-map-premium__tooltip-title {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.scoters-map-premium__tooltip-subtitle {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.scoters-map-premium__tooltip-link {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 0;
    color: var(--zone-color, var(--blue));
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-bottom: 1px solid currentColor;
    opacity: 0.85;
}

/* ── Floating mini-map card ─────────────────────────────── */

.scoters-map-premium__secondary {
    position: absolute;
    bottom: -50px;
    left: 0;
    z-index: 10;
    width: 370px;
    pointer-events: auto;
    /* positionné par rapport à __layout (position: relative) */
}

.scoters-map-premium__secondary-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(6, 47, 70, 0.08);
    box-shadow:
        0 28px 70px rgba(6, 47, 70, 0.16),
        0 8px 20px rgba(6, 47, 70, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateZ(0);
    transform-origin: bottom left;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.scoters-map-premium__secondary:hover .scoters-map-premium__secondary-card {
    transform: scale(1.5);
    box-shadow:
        0 40px 90px rgba(6, 47, 70, 0.22),
        0 12px 28px rgba(6, 47, 70, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.scoters-map-premium__secondary-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 160, 107, 0.12), transparent 40%),
        radial-gradient(circle at 88% 82%, rgba(21, 155, 211, 0.09), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.scoters-map-premium__secondary-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Orbs ───────────────────────────────────────────────── */

.scoters-map-premium__orb {
    position: absolute;
    z-index: 1;
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.55;
    pointer-events: none;
    animation: scotersOrbFloat 9s ease-in-out infinite;
}

.scoters-map-premium__orb--green {
    left: 8%;
    top: 18%;
    background: rgba(34, 160, 107, 0.18);
}

.scoters-map-premium__orb--blue {
    right: 10%;
    top: 24%;
    background: rgba(21, 155, 211, 0.14);
    animation-delay: -3s;
}

.scoters-map-premium__orb--violet {
    left: 30%;
    bottom: 12%;
    background: rgba(169, 130, 207, 0.14);
    animation-delay: -5s;
}

@keyframes scotersOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%       { transform: translate3d(0, -18px, 0) scale(1.04); }
}

/* ── Reveal animation ───────────────────────────────────── */

.scoters-map-premium.is-ready .scoters-map-premium__intro,
.scoters-map-premium.is-ready .scoters-map-premium__visual {
    animation: scotersReveal 0.75s cubic-bezier(.2, .8, .2, 1) both;
}

.scoters-map-premium.is-ready .scoters-map-premium__visual {
    animation-delay: 0.08s;
}

@keyframes scotersReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Legacy panel safety */
.scoters-map-premium__panel {
    display: none !important;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 980px) {
    .scoters-map-premium__layout {
        gap: 20px;
    }

    .scoters-map-premium__visual {
        flex: 0 0 400px;
        width: 400px;
    }

    .scoters-map-premium__secondary {
        width: 280px;
        bottom: -40px;
    }
}

@media (max-width: 720px) {
    .scoters-map-premium__layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .scoters-map-premium__text {
        max-width: 100%;
    }

    .scoters-map-premium__visual {
        flex: none;
        width: 100%;
        margin-left: 0;
    }

    .scoters-map-premium__secondary {
        width: 220px;
        bottom: -30px;
    }
}

@media (max-width: 640px) {
    .scoters-map-premium {
        padding: 24px 16px;
        border-radius: 26px;
    }

    .scoters-map-premium__orbs {
        border-radius: 26px;
    }

    .scoters-map-premium__secondary {
        width: 180px;
        bottom: -24px;
    }

    .scoters-map-premium__secondary-card {
        border-radius: 18px;
    }
}

/* ── Accessibility ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .scoters-map-premium__orb,
    .scoters-map-premium.is-ready .scoters-map-premium__intro,
    .scoters-map-premium.is-ready .scoters-map-premium__visual {
        animation: none;
    }

    .scoters-map-premium__zone,
    .scoters-map-premium__tooltip {
        transition: none;
    }
}
