/* ═══════════════════════════════════════════════════════════════════════
 * LZ Zones d'Intervention — Carte SVG département 06 + liste villes
 * Couleurs : #152738 (marine) / #808186 (gris)
 * ═══════════════════════════════════════════════════════════════════════ */

/* ─── FORÇAGE LARGEUR : on attaque tous les wrappers parents ──────────── */
/* Bixol et Elementor peuvent compresser le widget s'il n'a qu'un enfant */
.elementor-widget-lz_zones,
.elementor-element.elementor-widget-lz_zones,
.elementor-widget-lz_zones > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    align-self: stretch !important;
    display: block !important;
    box-sizing: border-box !important;
}

.lz-zon {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 100%;
    flex: 1 1 100% !important;
    align-self: stretch !important;
    padding: 80px 0;
    background: #f7f8f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

.lz-zon *,
.lz-zon *::before,
.lz-zon *::after {
    box-sizing: border-box;
}

.lz-zon__inner {
    display: block !important;
    width: 100% !important;
    max-width: 1300px;
    min-width: 0;
    flex: 1 1 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* ─── EN-TÊTE ─────────────────────────────────────────────────────────── */
.lz-zon__header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.lz-zon__kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #808186;
    margin-bottom: 18px;
}

.lz-zon__kicker::before,
.lz-zon__kicker::after {
    content: '';
    width: 34px;
    height: 1px;
    background: #808186;
    display: inline-block;
}

.lz-zon__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #152738;
    margin: 0 0 18px;
}

.lz-zon__title-accent {
    color: #808186;
    font-style: italic;
    font-weight: 700;
    position: relative;
}

.lz-zon__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
}

.lz-zon__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #506069;
    margin: 0;
}

/* ─── CARTE SVG ───────────────────────────────────────────────────────── */
.lz-zon__map-wrap {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 40px -12px rgba(21, 39, 56, 0.15);
    border: 0.5px solid rgba(21, 39, 56, 0.06);
    overflow: hidden;
    box-sizing: border-box;
}

.lz-zon__svg {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 10px;
    background: #e8eef4;
    aspect-ratio: 1000 / 600;
}

.lz-zon__sea {
    fill: #e8eef4;
}

.lz-zon__land {
    fill: #ffffff;
    stroke: #c8d3dc;
    stroke-width: 2;
}

/* ─── MARQUEURS ───────────────────────────────────────────────────────── */
.lz-zon__marker {
    cursor: pointer;
    transition: filter 0.3s ease;
    outline: none;
}

.lz-zon__marker:focus-visible {
    filter: drop-shadow(0 0 6px rgba(21, 39, 56, 0.5));
}

.lz-zon__marker-pin {
    fill: #152738;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.lz-zon__marker-pulse {
    fill: none;
    stroke: #152738;
    stroke-width: 2;
    opacity: 0.4;
    transform-origin: center;
    transform-box: fill-box;
    animation: lz-zon-pulse 2.6s ease-in-out infinite;
}

@keyframes lz-zon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.lz-zon__marker:hover .lz-zon__marker-pin {
    transform: scale(1.3);
    filter: drop-shadow(0 4px 8px rgba(21, 39, 56, 0.5));
}

.lz-zon__marker-label {
    pointer-events: none;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    fill: #152738;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linejoin: round;
    transition: font-size 0.3s ease, fill 0.3s ease;
}

.lz-zon__marker:hover .lz-zon__marker-label {
    fill: #152738;
    font-size: 14px;
}

/* Marqueur principal (siège) — plus gros + couleur différente */
.lz-zon__marker--featured .lz-zon__marker-pulse {
    stroke: #808186;
    stroke-width: 2.5;
}

.lz-zon__marker--featured .lz-zon__marker-pin {
    fill: #808186;
}

.lz-zon__marker--featured .lz-zon__marker-label {
    font-size: 14px;
    font-weight: 800;
}

/* ─── TOOLTIP au hover ────────────────────────────────────────────────── */
.lz-zon__tooltip {
    position: absolute;
    background: #152738;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.3);
}

.lz-zon__tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #152738;
}

.lz-zon__tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-16px);
}

.lz-zon__tooltip-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.lz-zon__tooltip-cp {
    display: block;
    font-size: 0.72rem;
    opacity: 0.7;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.lz-zon__tooltip-link {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── LISTE DES COMMUNES (sous la carte) ──────────────────────────────── */
.lz-zon__list-wrap {
    margin-top: 50px;
}

.lz-zon__list-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #152738;
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.lz-zon__list {
    display: grid;
    grid-template-columns: repeat(var(--lz-cols-d, 4), 1fr);
    gap: 12px;
}

.lz-zon__pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    color: #152738;
    border: 1.5px solid #e2e5e9;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lz-zon__pill:hover {
    background: #152738;
    color: #ffffff;
    border-color: #152738;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(21, 39, 56, 0.3);
}

.lz-zon__pill-icon {
    flex-shrink: 0;
    color: #152738;
    transition: color 0.25s ease, transform 0.25s ease;
}

.lz-zon__pill:hover .lz-zon__pill-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.lz-zon__pill-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lz-zon__pill-name {
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lz-zon__pill-cp {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #808186;
    transition: color 0.25s ease;
}

.lz-zon__pill:hover .lz-zon__pill-cp {
    color: rgba(255, 255, 255, 0.7);
}

.lz-zon__pill-arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lz-zon__pill:hover .lz-zon__pill-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lz-zon {
        padding: 60px 0;
    }
    .lz-zon__inner {
        padding: 0 30px;
    }
    .lz-zon__list {
        grid-template-columns: repeat(var(--lz-cols-t, 3), 1fr);
    }
    .lz-zon__map-wrap {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .lz-zon {
        padding: 50px 0;
    }
    .lz-zon__inner {
        padding: 0 20px;
    }
    .lz-zon__header {
        margin-bottom: 36px;
    }
    .lz-zon__list {
        grid-template-columns: repeat(var(--lz-cols-m, 2), 1fr);
        gap: 10px;
    }
    .lz-zon__pill {
        padding: 14px 14px;
        gap: 10px;
    }
    .lz-zon__pill-name {
        font-size: 0.85rem;
    }
    .lz-zon__map-wrap {
        padding: 14px;
        border-radius: 12px;
    }
    /* Labels SVG plus petits sur mobile pour éviter chevauchements */
    .lz-zon__marker-label {
        font-size: 11px;
        stroke-width: 2.5px;
    }
}

@media (max-width: 480px) {
    .lz-zon__marker-label {
        font-size: 10px;
    }
    .lz-zon__pill-arrow {
        display: none; /* économise de l'espace en mobile */
    }
}

@media (prefers-reduced-motion: reduce) {
    .lz-zon__marker-pulse {
        animation: none !important;
    }
    .lz-zon__pill,
    .lz-zon__marker-pin,
    .lz-zon__marker-label,
    .lz-zon__tooltip {
        transition: none !important;
    }
}
