/*
 * SignalNids Nuisibles — Design V1
 * Palette différente de signalnids.fr : cuivre, bleu nuit, beige premium.
 */

:root {
    --bg: #f7f3ec;
    --bg-2: #fff7ed;
    --card: #ffffff;
    --dark: #17212f;
    --text: #314256;
    --muted: #6b7a90;
    --primary: #c75b12;
    --primary-dark: #9f4208;
    --secondary: #263d5c;
    --accent: #f2a23a;
    --success: #2f8f5b;
    --danger: #b42318;
    --border: #e6ddd0;
    --shadow: 0 24px 70px rgba(23, 33, 47, .12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 162, 58, .18), transparent 35%),
        radial-gradient(circle at top right, rgba(38, 61, 92, .10), transparent 30%),
        var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 243, 236, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(230, 221, 208, .85);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: -.06em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 30px rgba(199, 91, 18, .22);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.08rem;
    letter-spacing: -.02em;
}

.brand-text small {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .12em;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--secondary);
    font-weight: 750;
    font-size: .94rem;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(23, 33, 47, .08);
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: var(--primary);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 16px 35px rgba(199, 91, 18, .24);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.header-cta:hover,
.btn:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
    box-shadow: 0 18px 42px rgba(199, 91, 18, .30);
}

.btn.secondary {
    background: var(--secondary);
    box-shadow: 0 16px 35px rgba(38, 61, 92, .20);
}

.btn.light {
    color: var(--secondary);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn.full {
    width: 100%;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    width: 46px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
}

.hero {
    padding: 72px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 34px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    padding: 8px 13px;
    border-radius: 999px;
    font-weight: 850;
    font-size: .88rem;
    box-shadow: 0 10px 30px rgba(23, 33, 47, .07);
}

h1,
h2,
h3 {
    color: var(--dark);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0;
}

h1 {
    margin-top: 18px;
    font-size: clamp(2.4rem, 5vw, 5.2rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.65rem);
}

h3 {
    font-size: 1.2rem;
}

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--muted);
    max-width: 720px;
    margin: 22px 0 0;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.metric {
    background: rgba(255,255,255,.78);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.metric strong {
    display: block;
    color: var(--dark);
    font-size: 1.5rem;
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}

.hero-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,247,237,.92));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(199, 91, 18, .12);
}

.report-preview {
    position: relative;
    display: grid;
    gap: 14px;
}

.preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-title {
    color: var(--dark);
    font-weight: 900;
    font-size: 1.1rem;
}

.preview-status {
    color: var(--success);
    background: rgba(47,143,91,.12);
    border: 1px solid rgba(47,143,91,.25);
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 850;
    font-size: .82rem;
}

.category-grid,
.nuisibles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-pill,
.nuisible-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 13px;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 12px 25px rgba(23, 33, 47, .05);
}

.category-pill strong,
.nuisible-card strong {
    color: var(--dark);
    font-size: .95rem;
}

.category-pill span,
.nuisible-card span {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.35;
}

.icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--bg-2);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.map-preview {
    min-height: 170px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background:
        linear-gradient(45deg, rgba(38,61,92,.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(38,61,92,.05) 25%, transparent 25%),
        #f8fafc;
    background-size: 34px 34px;
    position: relative;
    overflow: hidden;
}

.pin {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    transform: rotate(-45deg);
    box-shadow: 0 10px 24px rgba(199, 91, 18, .30);
}

.pin::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #fff;
}

.pin.p1 { left: 20%; top: 36%; }
.pin.p2 { right: 22%; top: 28%; }
.pin.p3 { left: 54%; bottom: 22%; }

.section {
    padding: 54px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.section-head p {
    max-width: 620px;
    color: var(--muted);
    margin: 10px 0 0;
}

.panel {
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 45px rgba(23, 33, 47, .06);
    padding: 28px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--secondary);
    color: #fff;
    font-weight: 900;
    margin-bottom: 14px;
}

.cta-band {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    box-shadow: var(--shadow);
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: rgba(255,255,255,.82);
    margin: 12px 0 0;
}

.form-shell {
    padding: 42px 0 64px;
}

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    color: var(--dark);
    font-weight: 850;
    font-size: .92rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 15px;
    background: #fff;
    color: var(--dark);
    outline: none;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(199, 91, 18, .55);
    box-shadow: 0 0 0 4px rgba(199, 91, 18, .12);
}

.help {
    color: var(--muted);
    font-size: .86rem;
}

.alert {
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid;
    font-weight: 750;
}

.alert.error {
    color: var(--danger);
    background: rgba(180,35,24,.08);
    border-color: rgba(180,35,24,.22);
}

.alert.success {
    color: var(--success);
    background: rgba(47,143,91,.08);
    border-color: rgba(47,143,91,.22);
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.check-row input {
    width: auto;
    margin-top: 6px;
}

.map-page {
    padding: 32px 0 54px;
}

.map-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
}

.map-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: 0 16px 45px rgba(23,33,47,.07);
}

.map-canvas {
    min-height: 640px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 20% 30%, rgba(199,91,18,.22), transparent 12%),
        radial-gradient(circle at 64% 45%, rgba(38,61,92,.16), transparent 14%),
        radial-gradient(circle at 82% 22%, rgba(242,162,58,.24), transparent 10%),
        linear-gradient(45deg, rgba(38,61,92,.05) 25%, transparent 25%),
        #f8fafc;
    background-size: auto, auto, auto, 32px 32px, auto;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.report-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.report-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    background: #fffaf4;
}

.report-item strong {
    color: var(--dark);
}

.site-footer {
    margin-top: 30px;
    background: #101827;
    color: rgba(255,255,255,.74);
    padding: 46px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr .9fr;
    gap: 28px;
}

.footer-brand {
    color: #fff;
}

.site-footer h2 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
}

.site-footer a {
    display: block;
    color: rgba(255,255,255,.82);
    margin: 8px 0;
}

.footer-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: .9rem;
}

@media (max-width: 960px) {
    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 86px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 22px;
        padding: 10px;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
        padding: 13px 14px;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-grid,
    .map-layout,
    .footer-grid,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .hero-metrics,
    .steps {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .nuisibles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head {
        display: block;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .category-grid,
    .nuisibles-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .form-card,
    .hero-card,
    .cta-band {
        padding: 20px;
        border-radius: 22px;
    }

    .map-canvas {
        min-height: 420px;
    }
}


/* === Carte Leaflet SignalNids Nuisibles — à ajouter à la fin de assets/css/style.css === */

.map-page-live .map-canvas {
    display: block;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: #eef2f4;
}

.real-map-wrap {
    min-height: 680px;
}

.real-map {
    width: 100%;
    height: 680px;
    min-height: 680px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    z-index: 1;
}

.map-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--bg-2);
    color: var(--primary-dark);
    border: 1px solid var(--border);
    font-weight: 850;
    font-size: .82rem;
    white-space: nowrap;
}

.map-filter-form {
    margin-bottom: 18px;
}

.map-legend {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fffaf4;
    padding: 14px;
    margin: 18px 0;
}

.map-legend strong {
    display: block;
    color: var(--dark);
    margin-bottom: 10px;
}

.legend-grid {
    display: grid;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
}

.legend-item i {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(255,255,255,.9);
}

.map-alert {
    border: 1px solid rgba(199, 91, 18, .22);
    background: rgba(199, 91, 18, .08);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 18px;
}

.map-alert strong {
    color: var(--primary-dark);
}

.map-alert p {
    margin: 6px 0 0;
    color: var(--text);
    font-size: .92rem;
}

.report-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-item-top span {
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 8px;
    font-size: .74rem;
    font-weight: 850;
}

.report-item small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.nuisible-marker {
    background: transparent;
    border: 0;
}

.nuisible-marker span {
    width: 42px;
    height: 42px;
    border-radius: 17px 17px 17px 4px;
    background: var(--marker-color);
    display: grid;
    place-items: center;
    transform: rotate(-45deg);
    box-shadow: 0 12px 30px rgba(23, 33, 47, .22);
    border: 3px solid #fff;
}

.nuisible-marker b {
    transform: rotate(45deg);
    font-size: 1.18rem;
    line-height: 1;
}

.map-popup {
    min-width: 210px;
}

.map-popup strong {
    display: block;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.map-popup span,
.map-popup small {
    display: block;
    color: var(--muted);
}

.map-popup p {
    margin: 8px 0 0;
    color: var(--text);
}

.map-empty {
    position: absolute;
    inset: 24px;
    z-index: 2;
    display: grid;
    place-items: center;
    text-align: center;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.map-empty[hidden] {
    display: none;
}

.map-empty p {
    color: var(--muted);
    max-width: 520px;
}

@media (max-width: 960px) {
    .real-map,
    .real-map-wrap {
        height: 520px;
        min-height: 520px;
    }
}
/* =========================================================
   FIX CARTE LEAFLET — SignalNids Nuisibles
   À coller tout en bas de /assets/css/style.css
========================================================= */

.map-page-live .map-canvas,
.real-map-wrap {
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    background: #eef2f4 !important;
    min-height: 680px !important;
}

.real-map {
    width: 100% !important;
    height: 680px !important;
    min-height: 680px !important;
    border-radius: var(--radius-xl);
    overflow: hidden !important;
    z-index: 1;
}

/* Très important : évite que le CSS global img casse les tuiles Leaflet */
.leaflet-container img,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    font-family: inherit;
    background: #dbe4ea;
}

/* Sécurité si le navigateur charge mal certains styles Leaflet */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

.leaflet-tile {
    visibility: inherit;
}

.leaflet-map-pane {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.leaflet-control-container {
    position: relative;
    z-index: 800;
}

.map-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--bg-2);
    color: var(--primary-dark);
    border: 1px solid var(--border);
    font-weight: 850;
    font-size: .82rem;
    white-space: nowrap;
}

.map-filter-form {
    margin-bottom: 18px;
}

.map-legend {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fffaf4;
    padding: 14px;
    margin: 18px 0;
}

.map-legend strong {
    display: block;
    color: var(--dark);
    margin-bottom: 10px;
}

.legend-grid {
    display: grid;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
}

.legend-item i {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(255,255,255,.9);
}

.map-alert {
    border: 1px solid rgba(199, 91, 18, .22);
    background: rgba(199, 91, 18, .08);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 18px;
}

.map-alert strong {
    color: var(--primary-dark);
}

.map-alert p {
    margin: 6px 0 0;
    color: var(--text);
    font-size: .92rem;
}

.report-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-item-top span {
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 8px;
    font-size: .74rem;
    font-weight: 850;
}

.report-item small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.nuisible-marker {
    background: transparent !important;
    border: 0 !important;
}

.nuisible-marker span {
    width: 42px;
    height: 42px;
    border-radius: 17px 17px 17px 4px;
    background: var(--marker-color);
    display: grid;
    place-items: center;
    transform: rotate(-45deg);
    box-shadow: 0 12px 30px rgba(23, 33, 47, .22);
    border: 3px solid #fff;
}

.nuisible-marker b {
    transform: rotate(45deg);
    font-size: 1.18rem;
    line-height: 1;
}

.map-popup {
    min-width: 210px;
}

.map-popup strong {
    display: block;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.map-popup span,
.map-popup small {
    display: block;
    color: var(--muted);
}

.map-popup p {
    margin: 8px 0 0;
    color: var(--text);
}

.map-empty {
    position: absolute;
    inset: 24px;
    z-index: 2;
    display: grid;
    place-items: center;
    text-align: center;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.map-empty[hidden] {
    display: none !important;
}

.map-empty p {
    color: var(--muted);
    max-width: 520px;
}

@media (max-width: 960px) {
    .map-page-live .map-canvas,
    .real-map-wrap,
    .real-map {
        height: 520px !important;
        min-height: 520px !important;
    }
}
/* =========================================================
   FIX FINAL — Carte Leaflet prend tout le bloc gris
   SignalNids Nuisibles
========================================================= */

.map-layout {
    align-items: stretch !important;
}

.map-page-live .map-canvas,
.map-canvas.real-map-wrap,
.real-map-wrap {
    position: relative !important;
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #eef2f4 !important;
    min-height: 760px !important;
    height: 100% !important;
}

/* La carte prend toute la surface disponible */
#nuisiblesMap,
.real-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: var(--radius-xl);
    overflow: hidden !important;
    z-index: 1;
}

/* Corrige les tuiles Leaflet */
.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    background: #dbe4ea;
}

.leaflet-container img,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

/* Sécurité Leaflet */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute !important;
    left: 0;
    top: 0;
}

/* Mobile */
@media (max-width: 960px) {
    .map-page-live .map-canvas,
    .map-canvas.real-map-wrap,
    .real-map-wrap {
        min-height: 560px !important;
    }
}
/* =========================================================
   BACKGROUND HERO ACCUEIL — SignalNids Nuisibles
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Fond décoratif image + dégradés */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(247, 243, 236, .98) 0%, rgba(247, 243, 236, .88) 48%, rgba(255, 247, 237, .72) 100%),
        url("/assets/img/bg-nuisibles-hero.webp") center right / cover no-repeat;
    opacity: .92;
}

/* Motif léger premium */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(199, 91, 18, .12), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(38, 61, 92, .10), transparent 24%),
        radial-gradient(circle at 80% 80%, rgba(242, 162, 58, .12), transparent 28%);
    pointer-events: none;
}

/* Améliore la lisibilité du texte */
.hero h1,
.hero .lead {
    text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

/* Mobile : fond plus discret */
@media (max-width: 960px) {
    .hero::before {
        background:
            linear-gradient(180deg, rgba(247, 243, 236, .98), rgba(247, 243, 236, .94)),
            url("/assets/img/bg-nuisibles-hero.webp") center / cover no-repeat;
        opacity: .55;
    }
}
