:root{--forest:#00513e}.ref-header{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;padding:20px max(24px,4vw);border-bottom:1px solid #dce6d8}.ref-header img{width:260px;height:auto;max-width:100%}.ref-header>a{min-width:0}.ref-header>span{font-size:.8rem;letter-spacing:.15em;color:#56715f}.ref-header form{margin:0;flex-shrink:0}.ref-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;background:linear-gradient(110deg,#eaf3e3,#f6faf2);border:1px solid #d1e1ca;border-radius:28px;padding:46px;margin-bottom:28px}.ref-hero h1{max-width:none;font-size:clamp(2rem,4vw,3.6rem);line-height:1.1;margin:24px 0}.ref-hero p{max-width:none}.ref-hero>svg{width:85px;height:85px;flex:0 0 85px;color:#547c60}.ref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:24px 0}.ref-grid>*{min-width:0}.ref-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:24px 0}.ref-kpis strong{display:block;font-size:2.7rem;color:#00513e}.ref-card{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0}.ref-card h2{font-size:1.5rem}.panel{margin-bottom:22px;min-width:0}.panel h2{font-size:1.6rem}.panel p,.panel h2,.panel a{overflow-wrap:anywhere}.ref-map{height:420px;border-radius:22px;overflow:hidden;border:1px solid #d8e4d3}.ref-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ref-photos img{width:100%;height:200px;object-fit:cover;border-radius:14px}.ref-event{border-left:3px solid #c6d9bd;padding:5px 18px;margin:20px 0}.ref-event small{display:block;color:#617969;margin-top:5px}.ref-login{max-width:580px;margin:auto}.ref-footer{padding:36px 0;border-top:1px solid #dce5d8;color:#627064}.ref-filters{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.ref-filters label{min-width:180px}.button{white-space:normal!important;height:auto;min-height:46px}.member-nav{overflow:auto;flex-wrap:nowrap;white-space:nowrap}.member-nav a{flex-shrink:0}.ref-grid form .button{margin-top:16px}details{margin:20px 0}summary{cursor:pointer;padding:10px 0}input,textarea,select{max-width:100%;min-width:0}form .check-label input{width:22px;height:22px;min-height:22px;flex-shrink:0}form .check-label{align-items:flex-start;gap:12px}.wrap{max-width:1500px;width:calc(100% - 48px)}
@media(max-width:760px){.ref-header{padding:16px;gap:12px}.ref-header img{width:190px}.ref-header>span{display:none}.ref-header .button{padding:10px;font-size:.8rem}.wrap{width:calc(100% - 32px)}.section{padding-top:24px}.ref-hero{padding:26px;border-radius:22px}.ref-hero>svg{display:none}.ref-grid{grid-template-columns:1fr}.ref-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ref-kpis .panel{padding:18px}.ref-card{align-items:flex-start;flex-direction:column}.panel{padding:22px}.ref-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-photos img{height:140px}.ref-map{height:330px}.ref-filters label{min-width:0;flex-basis:100%}.ref-header>a{max-width:60%}}
/* V3 — repères terrain, navigation et impression */
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f5f8f6}.ref-header{position:relative}.ref-header img{object-fit:contain}.ref-hero{padding:clamp(24px,3.2vw,48px);box-shadow:0 12px 36px #143d2810}.ref-hero h1{font-weight:650;letter-spacing:-.035em}.ref-hero>div{min-width:0}.ref-hero h1,.ref-hero p{overflow-wrap:anywhere}.panel{border-radius:22px;box-shadow:0 4px 20px #143d2805}.ref-kpis .panel{border-top:4px solid #607c70}.ref-kpis .panel:nth-child(2){border-top-color:#bd7826}.ref-kpis .panel:nth-child(3){border-top-color:#137355}.ref-kpis .panel:nth-child(4){border-top-color:#506b9d}.ref-kpis strong{font-variant-numeric:tabular-nums}.section-heading,.action-row{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:20px 0}.section-heading h2{margin:8px 0}.priority{display:inline-block;background:#fff0d4;color:#754312;padding:5px 12px;border-radius:20px;font-size:.85rem;font-weight:700}.overdue{color:#a83a29!important;font-weight:650}.ref-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.check-label{display:flex}.ref-table{width:100%;border-collapse:collapse}.ref-table th,.ref-table td{text-align:left;padding:12px;border-bottom:1px solid #dce6df}.month-chart{display:flex;align-items:flex-end;gap:clamp(4px,1.5vw,20px);height:210px;margin:24px 0}.month-chart>div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;min-width:0;gap:8px;font-size:.85rem}.month-chart i{display:block;background:#14745a;border-radius:6px 6px 0 0;width:100%;max-width:54px}.ref-bottom{display:none}.network-status{position:sticky;top:0;z-index:2000;background:#fff0d4;color:#6f420d;padding:12px 20px;text-align:center}.network-status[hidden],[hidden]{display:none!important}button:disabled{opacity:.6;cursor:not-allowed}.member-nav a.selected{box-shadow:0 5px 12px #00513e18}.ref-footer p{font-size:.9rem}.wrap{max-width:1800px}input,select,textarea{font-size:1rem}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #b9822a;outline-offset:3px}.ref-event p{max-width:none}.ref-filters label{flex:1}.install-app{margin-top:16px}.ref-hero .eyebrow{font-size:.75rem;letter-spacing:.13em}.ref-bottom svg{width:22px;height:22px}.panel form{max-width:100%}
@media(max-width:1000px){.ref-filters label{flex-basis:40%}.ref-hero>svg{width:60px;height:60px;flex-basis:60px}.member-nav{scrollbar-width:thin}}
@media(max-width:760px){body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.ref-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:1500;background:#fff;border-top:1px solid #d5e3da;box-shadow:0 -4px 20px #123b2910;padding:8px 6px calc(8px + env(safe-area-inset-bottom));justify-content:space-around}.ref-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:.65rem;text-decoration:none;color:#597166;min-height:48px;flex:1;border-radius:12px}.ref-bottom a[aria-current=page]{color:#00513e;background:#e9f2e8;font-weight:700}.ref-header{padding-top:calc(14px + env(safe-area-inset-top))}.ref-kpis{margin:18px 0}.ref-kpis .panel{margin-bottom:0;padding:16px;min-height:130px}.ref-kpis strong{font-size:2.3rem}.ref-kpis span{font-size:.87rem}.ref-hero{margin-bottom:18px}.ref-hero h1{font-size:2rem}.ref-hero p{font-size:1rem}.ref-checks{grid-template-columns:1fr}.ref-filters label{flex-basis:100%}.section-heading .button{width:100%}.month-chart{gap:5px}.month-chart>div{font-size:.68rem}.panel{padding:20px}.ref-login{width:100%}.ref-footer{padding-bottom:12px}.ref-grid{margin:16px 0}.action-row .button{flex:1;min-width:130px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.ref-header,.devbar,.member-nav,.ref-bottom,.ref-footer,.no-print,.network-status,form,.skip{display:none!important}body{background:white!important;padding:0;color:black}.wrap{width:100%;max-width:none}.section{padding:0}.ref-hero{padding:12px;border:0;background:white;box-shadow:none;margin:0}.ref-hero h1{font-size:24pt}.ref-hero>svg{display:none}.panel{box-shadow:none;border:1px solid #ccc;padding:16px;margin:12px 0}.ref-event{break-inside:avoid}.ref-kpis{grid-template-columns:repeat(4,1fr)}details>*{display:block}a{color:black;text-decoration:none}.ref-grid{display:block}}

.dossier-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.dossier-shortcuts a{border:1px solid #cbded2;background:#fff;color:#00513e;border-radius:30px;padding:10px 18px;text-decoration:none;font-size:.9rem}section[id]{scroll-margin-top:60px}

.annotation-scroll{overflow:auto;max-width:100%;border-radius:16px;background:#e9eeeb;margin:18px 0}.annotation-scroll canvas{display:block;width:100%;max-width:none;height:auto;touch-action:none}.annotation-saved{touch-action:auto!important}.annotation-tools{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.annotation-tools label{min-width:130px;flex:1}.guide-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:16px}.guide-card>a{display:block}.guide-card small{display:block;color:#53675b}.hornet-dialog{max-width:calc(100vw - 24px)}.ref-photos a span{display:block;padding:8px;font-size:.9rem}.ref-checks input{width:22px}.panel form+.panel form{margin-top:20px}@media(max-width:600px){.annotation-tools{gap:10px}.annotation-tools .button{width:100%}.hornet-dialog-grid{grid-template-columns:1fr!important}.hornet-dialog-head h2{font-size:1.5rem}}


/* ============================================================
   Référent V3.3.7 — sélecteur Mes pièges / Pièges commune
   ============================================================ */
.trap-action-bar{
  justify-content:flex-start;
  align-items:center;
}
.trap-view-switch{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.trap-view-switch .button{
  min-width:150px;
}
.trap-view-switch .button[aria-current="page"]{
  box-shadow:0 0 0 3px rgba(0,81,62,.12);
}
.trap-count{
  display:inline-grid;
  place-items:center;
  min-width:27px;
  height:27px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  font-size:.8rem;
  font-variant-numeric:tabular-nums;
}
.trap-view-switch .button.outline .trap-count{
  background:#e7f0ea;
  color:#00513e;
}
.trap-admin-button{
  margin-left:auto;
}

@media(max-width:760px){
  .trap-action-bar{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    position:sticky;
    top:calc(8px + env(safe-area-inset-top));
    z-index:920;
    padding:10px;
    margin-left:-8px;
    margin-right:-8px;
    border:1px solid #d8e4dc;
    border-radius:18px;
    background:rgba(245,248,246,.96);
    box-shadow:0 8px 24px rgba(20,61,40,.08);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }

  .trap-add-button{
    width:100%;
  }

  .trap-view-switch{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    width:100%;
  }

  .trap-view-switch .button{
    min-width:0;
    width:100%;
    padding:12px 9px;
    font-size:.84rem;
  }

  .trap-admin-button{
    width:100%;
    margin-left:0;
  }

  .ref-bottom a{
    min-width:0;
    padding-left:2px;
    padding-right:2px;
  }
}

@media(max-width:390px){
  .trap-view-switch .button{
    font-size:.78rem;
  }
  .trap-count{
    min-width:24px;
    height:24px;
    padding:0 6px;
    font-size:.72rem;
  }
}


/* ============================================================
   Référent V3.3.8 — QR discret + pause saisonnière des pièges
   ============================================================ */
.trap-list-card{
  align-items:center;
}
.trap-list-card.is-paused-trap{
  border-color:#e9cf9b;
  background:linear-gradient(135deg,#fffdf7,#fff);
}
.trap-card-main{
  min-width:0;
}
.trap-status-chip{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
.trap-status-chip.active{background:#e7f5ec;color:#12633f}
.trap-status-chip.paused{background:#fff0d5;color:#8a5710}
.trap-status-chip.inactive{background:#eef1ef;color:#586861}
.trap-own-tools{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
}
.trap-mini-qr{
  width:70px;
  min-width:70px;
  padding:5px;
  border:1px solid #d8e6dc;
  border-radius:13px;
  background:#fff;
  text-align:center;
  text-decoration:none;
  color:#00513e;
  box-shadow:0 5px 16px rgba(7,63,50,.06);
}
.trap-mini-qr img{
  display:block;
  width:58px;
  height:58px;
  margin:auto;
  border-radius:6px;
}
.trap-mini-qr span{
  display:block;
  margin-top:2px;
  font-size:.65rem;
  font-weight:900;
}
.trap-card-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.trap-card-actions form{
  margin:0;
}
.trap-detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);
  gap:18px;
  align-items:start;
}
.trap-installation-card{
  min-width:0;
}
.trap-installation-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:18px 0;
}
.trap-installation-facts>div{
  min-height:82px;
  padding:12px 14px;
  border:1px solid #e0ebe4;
  border-radius:15px;
  background:#f8fbf9;
}
.trap-installation-facts span,
.trap-installation-facts strong{
  display:block;
}
.trap-installation-facts span{
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#72847b;
  font-weight:850;
}
.trap-installation-facts strong{
  margin-top:5px;
  overflow-wrap:anywhere;
}
.trap-address{
  padding:10px 12px;
  border-left:3px solid #6fa489;
  background:#f6faf7;
}
.trap-owner-action-card{
  position:sticky;
  top:94px;
}
.trap-qr-inline{
  display:grid;
  grid-template-columns:132px 1fr;
  gap:14px;
  align-items:center;
  padding:14px;
  margin:14px 0;
  border:1px solid #dce8e1;
  border-radius:17px;
  background:#fbfdfb;
}
.trap-qr-inline img{
  display:block;
  width:132px;
  height:132px;
  border-radius:10px;
  background:#fff;
}
.trap-qr-inline strong,
.trap-qr-inline small{
  display:block;
}
.trap-qr-inline strong{
  overflow-wrap:anywhere;
  font-size:.95rem;
}
.trap-qr-inline small{
  margin-top:6px;
  color:#657a70;
  line-height:1.4;
}
.trap-owner-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.trap-owner-buttons .button{
  width:100%;
}
.trap-season-box{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:14px;
  padding:14px;
  border-radius:17px;
  border:1px solid #dce8e1;
}
.trap-season-box.is-active{
  background:#eff8f2;
  border-color:#cfe7d7;
}
.trap-season-box.is-paused{
  background:#fff7e8;
  border-color:#ecd4a8;
}
.trap-season-box span,
.trap-season-box strong,
.trap-season-box small{
  display:block;
}
.trap-season-box span{
  font-size:.67rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:850;
  color:#6c8177;
}
.trap-season-box strong{
  margin-top:3px;
  font-size:1.05rem;
}
.trap-season-box small{
  margin-top:5px;
  color:#657a70;
  line-height:1.4;
}
.trap-season-box form{margin:0}
.trap-season-box .button{width:100%}
.trap-state-kpi.active{color:#166642}
.trap-state-kpi.paused{color:#9a6314}
.trap-state-kpi.inactive{color:#66756e}
.trap-paused-notice{
  border-color:#ecd4a8;
  background:#fffaf0;
}

@media(max-width:1050px){
  .trap-detail-grid{
    grid-template-columns:1fr;
  }
  .trap-owner-action-card{
    position:static;
  }
}
@media(max-width:760px){
  .trap-own-tools{
    width:100%;
    margin-left:0;
    align-items:flex-start;
  }
  .trap-card-actions{
    flex:1;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .trap-card-actions form{
    grid-column:1/-1;
  }
  .trap-card-actions form .button{
    width:100%;
  }
  .trap-installation-facts{
    grid-template-columns:1fr 1fr;
  }
  .trap-owner-buttons{
    grid-template-columns:1fr;
  }
}
@media(max-width:480px){
  .trap-own-tools{
    display:grid;
    grid-template-columns:72px 1fr;
    gap:9px;
  }
  .trap-card-actions{
    grid-template-columns:1fr;
  }
  .trap-card-actions form{
    grid-column:auto;
  }
  .trap-installation-facts{
    grid-template-columns:1fr;
  }
  .trap-qr-inline{
    grid-template-columns:104px 1fr;
  }
  .trap-qr-inline img{
    width:104px;
    height:104px;
  }
}

@media print{
  .trap-owner-action-card,
  .trap-action-bar,
  .ref-bottom,
  .member-nav,
  .ref-header,
  .ref-footer{
    display:none!important;
  }
}


/* ============================================================
   Référent V3.3.12 — modification / emplacement des pièges
   ============================================================ */
.trap-edit-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr);
  gap:18px;
  align-items:start;
}
.trap-edit-form fieldset{
  min-width:0;
}
.trap-edit-location{
  margin:20px 0;
  padding:18px;
  border:1px solid #dce8e1;
  border-radius:18px;
  background:#fbfdfb;
}
.trap-edit-location legend{
  padding:0 8px;
  color:#00513e;
  font-weight:900;
}
.trap-edit-map{
  width:100%;
  min-height:390px;
  margin-top:15px;
  border:1px solid #d4e2d8;
  border-radius:18px;
  overflow:hidden;
  background:#eaf1ec;
}
.trap-location-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:12px;
}
.trap-location-actions .button{
  margin:0;
}
.trap-location-actions span{
  color:#667a70;
  font-size:.86rem;
}
.trap-address-wrap{
  position:relative;
}
.trap-address-suggestions{
  position:absolute;
  z-index:1100;
  left:0;
  right:0;
  top:calc(100% + 5px);
  max-height:310px;
  overflow:auto;
  padding:6px;
  border:1px solid #cfddd4;
  border-radius:15px;
  background:#fff;
  box-shadow:0 18px 46px rgba(7,63,50,.13);
}
.trap-address-suggestion{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:11px 12px;
  border:0;
  border-radius:10px;
  background:#fff;
  color:#073f32;
  text-align:left;
  cursor:pointer;
}
.trap-address-suggestion:hover,
.trap-address-suggestion:focus{
  background:#edf6f0;
}
.trap-address-suggestion strong{
  font-size:.9rem;
}
.trap-address-suggestion small{
  color:#6b7d74;
}
.trap-edit-summary{
  position:sticky;
  top:92px;
}
.trap-edit-form label small{
  display:block;
  margin-top:5px;
  color:#687c72;
  font-size:.78rem;
  line-height:1.45;
}

@media(max-width:980px){
  .trap-edit-layout{
    grid-template-columns:1fr;
  }
  .trap-edit-summary{
    position:static;
  }
}
@media(max-width:620px){
  .trap-edit-location{
    padding:13px;
  }
  .trap-edit-map{
    min-height:320px;
  }
  .trap-location-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .trap-location-actions .button{
    width:100%;
  }
}


/* ============================================================
   Référent V3.4.0 — Carte de couverture des pièges
   ============================================================ */
.trap-map-mode-switch,
.trap-view-switch{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.trap-map-mode-switch::-webkit-scrollbar,
.trap-view-switch::-webkit-scrollbar{display:none}
.trap-map-mode-switch .button,
.trap-view-switch .button{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
}
.trap-map-mode-switch .button[aria-current="page"],
.trap-view-switch .button[aria-current="page"]{
  box-shadow:0 0 0 3px rgba(0,81,62,.11);
}

.trap-map-panel{padding:0!important;overflow:hidden;border-radius:14px!important}
.trap-map-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:18px 18px 12px}
.trap-map-head h2{margin:5px 0 4px;font-size:1.45rem}
.trap-map-head p{margin:0;max-width:860px;color:#62746b}
.trap-map-head .button{flex:0 0 auto;margin:0}
.trap-map-controls{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid #e1ebe5;border-bottom:1px solid #dce7e0;background:#f8fbf9}
.trap-map-control-group{display:grid;gap:6px}
.trap-map-control-label{font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#6b7b73}
.trap-map-chips,.trap-radius-chips{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.trap-map-chips::-webkit-scrollbar,.trap-radius-chips::-webkit-scrollbar{display:none}
.trap-map-chips button,.trap-radius-chips button{appearance:none;border:1px solid #cbdcd2;background:#fff;color:#0c513f;border-radius:999px;min-height:38px;padding:7px 12px;font:inherit;font-size:.78rem;font-weight:800;white-space:nowrap;cursor:pointer}
.trap-map-chips button b{display:inline-grid;place-items:center;margin-left:4px;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#edf5f0;font-size:.7rem}
.trap-map-chips button.is-active,.trap-radius-chips button.is-active{border-color:#00614a;background:#00614a;color:#fff}
.trap-map-chips button.is-active b{background:rgba(255,255,255,.18);color:#fff}
.trap-radius-toggle{display:flex;align-items:center;gap:8px;min-height:38px;margin-left:auto;padding:6px 10px;border:1px solid #d5e2da;border-radius:10px;background:#fff;color:#244b3f;font-size:.8rem;font-weight:750;white-space:nowrap}
.trap-radius-toggle input{width:18px;height:18px;min-height:18px;margin:0;accent-color:#00614a}
.trap-coverage-map{height:min(62vh,610px);min-height:410px;background:#edf3f0;z-index:1}
.trap-map-empty{margin:14px 18px;padding:12px;border:1px dashed #bdccc3;border-radius:10px;background:#fafcfb;color:#66796f;text-align:center}
.trap-map-legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px 18px 6px;font-size:.75rem;color:#536c61}
.trap-map-legend span{display:inline-flex;align-items:center;gap:6px}.legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#00644d}.legend-dot.commune{background:#2f6fb1}.legend-dot.paused{background:#b57a28}
.trap-map-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:8px 18px 12px;border:1px solid #dce8e1;border-radius:10px;overflow:hidden;background:#fff}
.trap-map-summary>div{padding:12px 14px;border-right:1px solid #e4ece7}.trap-map-summary>div:last-child{border-right:0}.trap-map-summary strong,.trap-map-summary span{display:block}.trap-map-summary strong{font-size:1.35rem;color:#00513e;font-variant-numeric:tabular-nums}.trap-map-summary span{margin-top:2px;font-size:.7rem;color:#6a7b72}
.trap-map-note{margin:0!important;padding:0 18px 18px!important;color:#61736a;font-size:.78rem;line-height:1.5}

.sn-trap-divicon{background:transparent!important;border:0!important}
.sn-trap-pin{position:relative;display:block;width:28px;height:28px;border-radius:9px 9px 9px 3px;transform:rotate(-45deg);background:#2f6fb1;border:3px solid #fff;box-shadow:0 4px 13px rgba(23,60,48,.23)}
.sn-trap-pin.mine{background:#00644d}.sn-trap-pin.paused{background:#b57a28}.sn-trap-pin.selected{box-shadow:0 0 0 4px rgba(0,81,62,.22),0 5px 16px rgba(23,60,48,.3)}
.sn-trap-pin-dot{position:absolute;left:50%;top:50%;width:7px;height:7px;border-radius:50%;background:#fff;transform:translate(-50%,-50%)}
.trap-map-popup{display:grid;gap:6px;min-width:205px;color:#173f34}.trap-map-popup-source{font-size:.66rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase;color:#668178}.trap-map-popup>strong{font-size:1rem}.trap-map-popup>span:not(.trap-map-popup-source),.trap-map-popup>small{font-size:.74rem;color:#5e7369}.trap-map-popup-kpis{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:3px 0}.trap-map-popup-kpis span{padding:7px;border-radius:8px;background:#f1f7f3;font-size:.64rem;color:#6a7c73}.trap-map-popup-kpis b{display:block;color:#00513e;font-size:.8rem}.trap-map-popup>a{display:flex;align-items:center;justify-content:center;min-height:38px;margin-top:3px;border-radius:8px;background:#00614a;color:#fff!important;text-decoration:none;font-weight:850;font-size:.78rem}.trap-map-load-error{display:grid;place-items:center;height:100%;padding:24px;text-align:center;color:#8a3d30;background:#fff7f4}
.leaflet-popup-content-wrapper{border-radius:11px!important;box-shadow:0 12px 34px rgba(17,58,45,.18)!important}.leaflet-popup-content{margin:12px!important}

@media(max-width:760px){
  .trap-action-bar{position:relative!important;top:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:0!important;margin:10px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
  .trap-add-button{width:100%!important}
  .trap-map-mode-switch,.trap-view-switch{width:100%!important;padding-bottom:2px!important}
  .trap-map-mode-switch .button,.trap-view-switch .button{min-height:40px!important;padding:8px 12px!important;font-size:.78rem!important}
  .trap-map-head{padding:14px 12px 10px}.trap-map-head .button{display:none}
  .trap-map-controls{padding:10px 12px;gap:10px;align-items:stretch}
  .trap-map-control-group{width:100%}.trap-radius-toggle{margin-left:0;width:max-content}
  .trap-coverage-map{height:58vh;min-height:390px}
  .trap-map-legend{padding:10px 12px 4px;gap:10px}
  .trap-map-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 12px 10px}.trap-map-summary>div{border-bottom:1px solid #e4ece7}.trap-map-summary>div:nth-child(2n){border-right:0}.trap-map-summary>div:nth-last-child(-n+2){border-bottom:0}
  .trap-map-note{padding:0 12px 14px!important}
}
@media(max-width:390px){.trap-coverage-map{min-height:360px}.trap-map-chips button,.trap-radius-chips button{padding:7px 10px;font-size:.74rem}}


/* V3.4.1 — correctif fond Leaflet / WebView */
.trap-coverage-map.leaflet-container{
  background:#edf3f0!important;
}
.trap-coverage-map .leaflet-tile-pane{
  opacity:1!important;
  visibility:visible!important;
}
.trap-coverage-map img.leaflet-tile,
.trap-coverage-map .leaflet-tile-pane img{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:256px!important;
  height:256px!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  filter:none!important;
}
.trap-map-tile-warning{
  margin:10px 18px 0;
  padding:10px 12px;
  border:1px solid #e7c77a;
  background:#fff9e8;
  color:#74530d;
  border-radius:8px;
  font-size:.78rem;
  line-height:1.45;
}
.trap-map-tile-warning[hidden]{display:none!important}


/* ============================================================
   Référent V3.4.2 — alignement propre des boutons / cartes pièges
   ============================================================ */

/* Empêche la casse disgracieuse de type "Modifie
r" dans les boutons. */
.trap-card-actions .button,
.trap-card-actions form .button,
.trap-view-switch .button,
.trap-map-mode-switch .button{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.22;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:keep-all;
  hyphens:none;
  text-wrap:balance;
}

/* Les liens du contenu gardent overflow-wrap:anywhere, mais pas les boutons des cartes. */
.trap-card-actions a.button,
.trap-card-actions form .button{
  min-height:54px;
  padding:12px 14px;
}

.trap-card-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(132px,1fr));
  gap:10px;
  align-items:stretch;
  justify-items:stretch;
}
.trap-card-actions > a.button,
.trap-card-actions > form{
  width:100%;
  margin:0;
}
.trap-card-actions > a.button,
.trap-card-actions > form .button{
  width:100%;
  height:100%;
}

/* Sur la carte propriétaire, le QR reste compact et le bloc actions prend bien la largeur utile. */
.trap-own-tools{
  align-items:flex-start;
}
.trap-own-tools .trap-card-actions{
  flex:1 1 360px;
}

/* Les sélecteurs du haut restent propres sur mobile, sans découpe de texte. */
.trap-view-switch .button,
.trap-map-mode-switch .button{
  min-height:48px;
  padding:10px 14px;
}

@media(max-width:900px){
  .trap-card-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .trap-own-tools{
    width:100%;
    display:grid;
    grid-template-columns:78px minmax(0,1fr);
    gap:12px;
    align-items:start;
  }
  .trap-mini-qr{
    width:78px;
    min-width:78px;
    padding:6px;
  }
  .trap-mini-qr img{
    width:64px;
    height:64px;
  }
  .trap-card-actions{
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .trap-card-actions form{
    grid-column:auto;
  }
  .trap-card-actions > a.button,
  .trap-card-actions > form .button{
    min-height:56px;
    font-size:.95rem;
  }

  .trap-view-switch{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .trap-view-switch .button{
    min-width:0;
  }
}

@media(max-width:420px){
  .trap-card-actions > a.button,
  .trap-card-actions > form .button{
    padding:10px 10px;
    font-size:.90rem;
  }
}


/* ============================================================
   Référent V3.4.3 — mobile tous écrans (Android / PWA / iPhone)
   ============================================================ */

/* Rayons Leaflet : SVG explicite et visible dans les WebView mobiles. */
.trap-coverage-map .leaflet-overlay-pane svg{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  overflow:visible!important;
  pointer-events:none!important;
}
.trap-coverage-map .leaflet-overlay-pane path{
  display:block!important;
  visibility:visible!important;
  vector-effect:non-scaling-stroke;
}

/* Navigation pièges : aucune largeur fixe / aucun bouton coupé. */
@media(max-width:760px){
  .trap-action-bar{
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    overflow:visible!important;
  }

  .trap-add-button{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
  }

  .trap-map-mode-switch,
  .trap-view-switch{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:grid!important;
    overflow:visible!important;
    padding:0!important;
    gap:8px!important;
  }

  .trap-map-mode-switch{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .trap-view-switch{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .trap-view-switch > .button:last-child{
    grid-column:1 / -1!important;
  }

  .trap-map-mode-switch .button,
  .trap-view-switch .button{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    margin:0!important;
    padding:9px 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
    line-height:1.18!important;
    font-size:.82rem!important;
  }

  .trap-view-switch .trap-count{
    flex:0 0 auto!important;
    margin-left:3px!important;
  }

  /* Contrôles de carte : tout reste dans l'écran, sans scroll horizontal obligatoire. */
  .trap-map-controls{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .trap-map-chips,
  .trap-radius-chips{
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    overflow:visible!important;
  }
  .trap-map-chips button,
  .trap-radius-chips button{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:7px 6px!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
  .trap-radius-toggle{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    justify-content:flex-start!important;
  }

  /* Cartes pièges : QR + actions proprement alignés sur chaque largeur téléphone. */
  .trap-own-tools{
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:start!important;
    overflow:visible!important;
  }
  .trap-card-actions{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    overflow:visible!important;
  }
  .trap-card-actions > a.button,
  .trap-card-actions > form,
  .trap-card-actions > form .button{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
  }
  .trap-card-actions > a.button,
  .trap-card-actions > form .button{
    min-height:54px!important;
    padding:9px 7px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    font-size:.86rem!important;
    line-height:1.16!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}

/* Téléphones étroits : aucune coupure hors écran. */
@media(max-width:390px){
  .trap-view-switch{
    grid-template-columns:1fr!important;
  }
  .trap-view-switch > .button:last-child{
    grid-column:auto!important;
  }
  .trap-map-mode-switch .button,
  .trap-view-switch .button{
    min-height:44px!important;
    font-size:.80rem!important;
  }
  .trap-own-tools{
    grid-template-columns:68px minmax(0,1fr)!important;
    gap:9px!important;
  }
  .trap-mini-qr{
    width:68px!important;
    min-width:68px!important;
    padding:4px!important;
  }
  .trap-mini-qr img{
    width:58px!important;
    height:58px!important;
  }
  .trap-card-actions{
    gap:7px!important;
  }
  .trap-card-actions > a.button,
  .trap-card-actions > form .button{
    min-height:50px!important;
    padding:7px 5px!important;
    font-size:.78rem!important;
  }
}

/* Très petits écrans / WebView étroites : actions en une colonne, jamais masquées. */
@media(max-width:340px){
  .trap-map-mode-switch,
  .trap-view-switch,
  .trap-map-chips,
  .trap-radius-chips,
  .trap-card-actions{
    grid-template-columns:1fr!important;
  }
  .trap-own-tools{
    grid-template-columns:1fr!important;
  }
  .trap-mini-qr{
    width:76px!important;
    min-width:76px!important;
  }
}


/* ============================================================
   Référent V3.4.4 — rayons individuels par piège
   ============================================================ */
.trap-map-radius-one{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr);
  gap:9px;
  align-items:center;
  margin:5px 0 2px;
  padding:9px 10px;
  border:1px solid #d5e5dd;
  border-radius:9px;
  background:#f6faf8;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
}
.trap-map-radius-one input{
  width:20px!important;
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
  accent-color:#006b51;
}
.trap-map-radius-one>span{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.trap-map-radius-one b{
  color:#164a3d;
  font-size:.74rem;
  line-height:1.2;
}
.trap-map-radius-one small{
  color:#6a7d74!important;
  font-size:.66rem!important;
  line-height:1.25;
}
.trap-map-radius-global-note{
  color:#8a6415!important;
  font-size:.65rem!important;
}
.trap-radius-individual-tools{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.trap-radius-hidden-count{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:7px 11px;
  border:1px solid #d8e5de;
  border-radius:999px;
  background:#fff;
  color:#5d7469;
  font-size:.75rem;
  font-weight:750;
}
.trap-radius-reset{
  min-height:36px;
  padding:7px 12px;
  border:1px solid #cbded4;
  border-radius:999px;
  background:#fff;
  color:#00614a;
  font:inherit;
  font-size:.75rem;
  font-weight:850;
  cursor:pointer;
}
.trap-radius-reset:hover,
.trap-radius-reset:focus-visible{
  background:#eaf5ef;
}
.trap-radius-hidden-count[hidden],
.trap-radius-reset[hidden]{
  display:none!important;
}

@media(max-width:760px){
  .trap-radius-individual-tools{
    width:100%;
    order:3;
  }
  .trap-radius-toggle{
    order:4;
  }
  .trap-radius-hidden-count,
  .trap-radius-reset{
    min-height:38px;
    font-size:.72rem;
  }
  .trap-map-radius-one{
    padding:10px;
  }
}


/* ============================================================
   Référent V3.4.5 — carte plus haute + plein écran
   ============================================================ */

/* Mode classique : carte sensiblement plus haute, sans icônes latérales. */
.trap-coverage-map{
  height:min(76vh,860px)!important;
  min-height:560px!important;
}

.trap-map-head-actions{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}
.trap-map-fullscreen-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
}
.trap-map-fullscreen-button>span{
  font-size:1.05rem;
  line-height:1;
}

/* Les outils en icônes sont totalement absents visuellement en mode classique. */
.trap-map-fs-tools{
  display:none;
}

/* Bloque le scroll de la page quand la carte est en grand écran. */
body.trap-map-fullscreen-open{
  overflow:hidden!important;
  overscroll-behavior:none;
}

/* Plein écran CSS : plus fiable que l'API fullscreen dans les WebView/PWA. */
.trap-map-panel.is-fullscreen{
  position:fixed!important;
  inset:0!important;
  z-index:5000!important;
  width:100vw!important;
  height:100dvh!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#edf3f0!important;
  overflow:hidden!important;
  box-shadow:none!important;
}

/* En plein écran, la carte occupe tout l'espace. */
.trap-map-panel.is-fullscreen .trap-coverage-map{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  border-radius:0!important;
}

/* Tout le contenu "classique" est masqué pour laisser la place à la carte. */
.trap-map-panel.is-fullscreen .trap-map-head,
.trap-map-panel.is-fullscreen .trap-map-legend,
.trap-map-panel.is-fullscreen .trap-map-summary,
.trap-map-panel.is-fullscreen .trap-map-note,
.trap-map-panel.is-fullscreen .trap-map-empty{
  display:none!important;
}

/* En plein écran, les filtres deviennent un petit tiroir flottant.
   Ils ne sont visibles que lorsqu'on touche l'icône filtre. */
.trap-map-panel.is-fullscreen .trap-map-controls{
  display:none!important;
  position:absolute!important;
  top:max(12px,calc(env(safe-area-inset-top) + 8px))!important;
  right:max(64px,calc(env(safe-area-inset-right) + 62px))!important;
  z-index:5400!important;
  width:min(390px,calc(100vw - 86px))!important;
  max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  overflow:auto!important;
  padding:12px!important;
  gap:12px!important;
  align-items:stretch!important;
  border:1px solid rgba(189,207,198,.95)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 16px 44px rgba(11,52,41,.20)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.trap-map-panel.is-fullscreen.fs-controls-open .trap-map-controls{
  display:flex!important;
  flex-direction:column!important;
}

/* Barre verticale d'icônes : uniquement en plein écran. */
.trap-map-panel.is-fullscreen .trap-map-fs-tools{
  position:absolute;
  top:max(12px,calc(env(safe-area-inset-top) + 8px));
  right:max(10px,calc(env(safe-area-inset-right) + 8px));
  z-index:5500;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.trap-map-fs-tool{
  appearance:none;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid rgba(190,207,198,.95);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  color:#00513e;
  box-shadow:0 8px 24px rgba(14,61,48,.18);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.trap-map-fs-tool svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.trap-map-fs-tool:active{
  transform:scale(.96);
}
.trap-map-fs-tool[aria-expanded="true"]{
  background:#00614a;
  border-color:#00614a;
  color:#fff;
}

/* Les contrôles dans le tiroir restent lisibles sans débordement. */
.trap-map-panel.is-fullscreen .trap-map-control-group,
.trap-map-panel.is-fullscreen .trap-radius-individual-tools{
  width:100%!important;
}
.trap-map-panel.is-fullscreen .trap-map-chips,
.trap-map-panel.is-fullscreen .trap-radius-chips{
  width:100%;
  flex-wrap:wrap!important;
  overflow:visible!important;
}
.trap-map-panel.is-fullscreen .trap-radius-toggle{
  width:100%;
  margin-left:0!important;
  justify-content:flex-start;
}

/* Alerte de tuiles en plein écran sous les outils. */
.trap-map-panel.is-fullscreen .trap-map-tile-warning{
  position:absolute;
  left:12px;
  right:72px;
  bottom:max(12px,calc(env(safe-area-inset-bottom) + 8px));
  z-index:5400;
  margin:0;
}

/* Mobile classique : carte haute, bouton plein écran visible.
   Le bouton "Recentrer" classique est masqué : le plein écran aura
   son icône dédiée sur le côté. */
@media(max-width:760px){
  .trap-coverage-map{
    height:70dvh!important;
    min-height:500px!important;
    max-height:760px!important;
  }

  .trap-map-head{
    align-items:center!important;
  }
  .trap-map-head-actions{
    display:flex!important;
  }
  .trap-map-head .trap-map-fit-classic{
    display:none!important;
  }
  .trap-map-head .trap-map-fullscreen-button{
    display:inline-flex!important;
    min-height:40px!important;
    padding:8px 11px!important;
    font-size:.76rem!important;
  }

  .trap-map-panel.is-fullscreen .trap-map-controls{
    top:max(10px,calc(env(safe-area-inset-top) + 6px))!important;
    right:max(62px,calc(env(safe-area-inset-right) + 58px))!important;
    width:min(340px,calc(100vw - 76px))!important;
    max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    padding:10px!important;
  }

  .trap-map-panel.is-fullscreen .trap-map-fs-tools{
    top:max(10px,calc(env(safe-area-inset-top) + 6px));
    right:max(8px,calc(env(safe-area-inset-right) + 6px));
  }

  .trap-map-fs-tool{
    width:44px;
    height:44px;
    border-radius:11px;
  }
}

/* Très petits téléphones : hauteur cohérente sans couper les outils. */
@media(max-width:390px){
  .trap-coverage-map{
    height:68dvh!important;
    min-height:470px!important;
  }

  .trap-map-panel.is-fullscreen .trap-map-controls{
    right:58px!important;
    width:calc(100vw - 68px)!important;
  }

  .trap-map-fs-tool{
    width:42px;
    height:42px;
  }
}


/* V3.4.6 — sécurité d'affichage toolbar plein écran */
.trap-map-fs-tools[hidden]{display:none!important}
.trap-map-panel:not(.is-fullscreen) .trap-map-fs-tools{display:none!important}
.trap-map-panel.is-fullscreen .trap-map-fs-tools{
  display:flex!important;
}


/* ============================================================
   Référent V3.4.7 — iPhone / WKWebView carte visible
   ============================================================ */
body.sn-native-ios #trap-map-panel.panel{
  padding:0!important;
  overflow:hidden!important;
}
body.sn-native-ios #referent-trap-map.trap-coverage-map{
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:70vh!important;
  height:70dvh!important;
  min-height:500px!important;
  max-height:780px!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  overflow:hidden!important;
}
body.sn-native-ios #referent-trap-map.leaflet-container{
  display:block!important;
  width:100%!important;
}
@media(max-width:430px){
  body.sn-native-ios #referent-trap-map.trap-coverage-map{
    height:68vh!important;
    height:68dvh!important;
    min-height:470px!important;
  }
}


/* ============================================================
   Référent V3.4.8 — plein écran Android / PWA uniquement
   ============================================================ */

/*
 * Ne touche pas au comportement iOS V3.4.7 qui est validé.
 * Sur Android/PWA, la hauteur classique 68/70dvh pouvait garder
 * la priorité et limiter la carte à une partie de l'écran.
 */
body:not(.sn-native-ios) #trap-map-panel.is-fullscreen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  max-width:none!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  z-index:5000!important;
}

body:not(.sn-native-ios) #trap-map-panel.is-fullscreen #referent-trap-map.trap-coverage-map{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
}

/* Android natif : masque aussi la barre web du bas pendant la carte plein écran. */
body.sn-native-android.trap-map-fullscreen-open .ref-bottom,
body:not(.sn-native-ios).trap-map-fullscreen-open .ref-bottom{
  display:none!important;
}

/* Le viewport reste bloqué pendant le plein écran pour éviter le demi-écran. */
body:not(.sn-native-ios).trap-map-fullscreen-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

/* Outils latéraux au-dessus de la vraie carte plein écran. */
body:not(.sn-native-ios) #trap-map-panel.is-fullscreen .trap-map-fs-tools{
  display:flex!important;
  z-index:5600!important;
}
body:not(.sn-native-ios) #trap-map-panel.is-fullscreen .trap-map-controls{
  z-index:5500!important;
}

/* WebView Android : forcer également la couche Leaflet à occuper toute la zone. */
body:not(.sn-native-ios) #trap-map-panel.is-fullscreen .leaflet-container,
body:not(.sn-native-ios) #trap-map-panel.is-fullscreen .leaflet-map-pane{
  width:100%!important;
  height:100%!important;
}


/* ============================================================
   Référent V3.4.9 — footer premium / France
   ============================================================ */
.ref-footer.ref-footer-pro{
  margin-top:42px;
  padding:0;
  border-top:1px solid #dce7e1;
  color:#456358;
  background:transparent;
}

.ref-footer-pro__main{
  display:grid;
  grid-template-columns:minmax(240px,1.2fr) minmax(220px,.8fr) minmax(260px,1fr);
  gap:26px;
  align-items:center;
  padding:26px 0 22px;
}

.ref-footer-pro__brand{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}

.ref-footer-pro__mark{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:13px;
  color:#fff;
  background:linear-gradient(145deg,#00684f,#004737);
  box-shadow:0 8px 20px rgba(0,81,62,.14);
}

.ref-footer-pro__mark svg{
  width:25px;
  height:25px;
}

.ref-footer-pro__brand strong{
  display:block;
  color:#123f33;
  font-size:1.02rem;
  line-height:1.2;
  letter-spacing:-.015em;
}

.ref-footer-pro__brand p{
  margin:4px 0 0;
  color:#6a7c74;
  font-size:.78rem;
  line-height:1.45;
}

.ref-footer-pro__links{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 16px;
}

.ref-footer-pro__links a,
.ref-footer-pro__install{
  color:#315f52;
  font:inherit;
  font-size:.80rem;
  font-weight:720;
  text-decoration:none;
  border:0;
  background:transparent;
  padding:5px 0;
  cursor:pointer;
}

.ref-footer-pro__links a:hover,
.ref-footer-pro__links a:focus-visible,
.ref-footer-pro__install:hover,
.ref-footer-pro__install:focus-visible{
  color:#00684f;
  text-decoration:underline;
  text-underline-offset:4px;
}

.ref-footer-pro__france{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
}

.ref-footer-pro__flag{
  display:grid;
  grid-template-columns:repeat(3,8px);
  width:24px;
  height:18px;
  overflow:hidden;
  border-radius:3px;
  box-shadow:0 0 0 1px rgba(15,54,44,.10);
  flex:0 0 auto;
}

.ref-footer-pro__flag i:nth-child(1){background:#0055a4}
.ref-footer-pro__flag i:nth-child(2){background:#fff}
.ref-footer-pro__flag i:nth-child(3){background:#ef4135}

.ref-footer-pro__france b{
  display:block;
  color:#123f33;
  font-size:.78rem;
  line-height:1.25;
}

.ref-footer-pro__france small{
  display:block;
  margin-top:2px;
  color:#7a8982;
  font-size:.68rem;
  line-height:1.35;
}

.ref-footer-pro__bottom{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 0 16px;
  border-top:1px solid #e6eee9;
  color:#7a8982;
  font-size:.68rem;
  line-height:1.45;
  text-align:center;
}

.ref-footer-pro__separator{
  color:#a7b5ae;
}

@media(max-width:900px){
  .ref-footer-pro__main{
    grid-template-columns:1fr 1fr;
  }

  .ref-footer-pro__links{
    justify-content:flex-end;
  }

  .ref-footer-pro__france{
    grid-column:1/-1;
    justify-content:center;
    padding-top:4px;
  }
}

@media(max-width:760px){
  .ref-footer.ref-footer-pro{
    margin-top:28px;
    padding-bottom:8px;
  }

  .ref-footer-pro__main{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:17px;
    padding:22px 4px 18px;
  }

  .ref-footer-pro__brand{
    justify-content:center;
    text-align:left;
  }

  .ref-footer-pro__links{
    justify-content:center;
    gap:7px 18px;
  }

  .ref-footer-pro__france{
    justify-content:center;
    padding:11px 0 0;
    border-top:1px solid #e6eee9;
  }

  .ref-footer-pro__bottom{
    flex-wrap:wrap;
    gap:4px 8px;
    padding:12px 12px 14px;
  }
}

@media(max-width:420px){
  .ref-footer-pro__mark{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:12px;
  }

  .ref-footer-pro__brand strong{
    font-size:.96rem;
  }

  .ref-footer-pro__brand p{
    font-size:.72rem;
  }

  .ref-footer-pro__france{
    align-items:flex-start;
  }

  .ref-footer-pro__france b{
    font-size:.75rem;
  }

  .ref-footer-pro__france small{
    font-size:.65rem;
  }

  .ref-footer-pro__separator{
    display:none;
  }

  .ref-footer-pro__bottom span{
    width:100%;
  }
}


/* ============================================================
   Référent V3.5.0 — Mon secteur centré commune INSEE
   ============================================================ */
.sector-scope-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:18px 0 12px;
  padding:17px 18px;
  border:1px solid #d4e5dc;
  border-left:4px solid #00765a;
  border-radius:14px;
  background:linear-gradient(110deg,#f0f8f4,#fbfdfc);
}

.sector-scope-banner>div:first-child{
  min-width:0;
}

.sector-scope-banner strong{
  display:block;
  margin-top:3px;
  color:#103f33;
  font-size:1.1rem;
  line-height:1.3;
}

.sector-scope-banner small{
  display:block;
  margin-top:4px;
  color:#64786f;
  font-size:.76rem;
  line-height:1.45;
}

.sector-commune-chips{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}

.sector-commune-chips>span{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:7px 10px;
  border:1px solid #cfe0d7;
  border-radius:999px;
  background:#fff;
  color:#174d3f;
  font-size:.75rem;
}

.sector-commune-chips small{
  margin:0;
  padding:3px 6px;
  border-radius:999px;
  background:#edf5f1;
  color:#587268;
  font-size:.63rem;
  font-weight:800;
}

.sector-status-switch{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:12px 0;
}

.sector-status-switch a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:48px;
  padding:9px 11px;
  border:1px solid #d4e2da;
  border-radius:11px;
  background:#fff;
  color:#214f42;
  text-decoration:none;
  font-size:.80rem;
  font-weight:780;
  white-space:nowrap;
}

.sector-status-switch a:hover,
.sector-status-switch a:focus-visible{
  background:#f4f9f6;
}

.sector-status-switch a.is-active{
  border-color:#00664e;
  background:#00664e;
  color:#fff;
  box-shadow:0 6px 18px rgba(0,81,62,.10);
}

.sector-status-switch a b{
  display:grid;
  place-items:center;
  min-width:27px;
  height:27px;
  padding:0 7px;
  border-radius:999px;
  background:#edf4f0;
  color:#315e51;
  font-size:.70rem;
  font-variant-numeric:tabular-nums;
}

.sector-status-switch a.is-active b{
  background:rgba(255,255,255,.17);
  color:#fff;
}

.sector-status-dot{
  width:8px;
  height:8px;
  min-width:8px;
  border-radius:999px;
  background:#7d8b91;
}

.sector-status-dot.verify{background:#68768c}
.sector-status-dot.confirmed{background:#c47618}
.sector-status-dot.neutralized{background:#168067}
.sector-status-switch a.is-active .sector-status-dot{
  box-shadow:0 0 0 3px rgba(255,255,255,.14);
}

.sector-filters{
  margin-top:10px!important;
}

.sector-map-heading{
  margin-bottom:10px;
}

.sector-map-heading .eyebrow{
  margin-bottom:3px;
}

.sector-map-heading h2{
  margin:0;
}

.sector-ref-map{
  height:min(58vh,600px);
  min-height:390px;
  border-radius:16px;
  background:#e9f0ed;
}

.sector-map-help{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:7px;
}

@media(max-width:900px){
  .sector-scope-banner{
    align-items:flex-start;
    flex-direction:column;
  }

  .sector-commune-chips{
    justify-content:flex-start;
  }
}

@media(max-width:760px){
  .sector-scope-banner{
    margin:10px 0;
    padding:13px 14px;
    border-radius:10px;
  }

  .sector-status-switch{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .sector-status-switch a{
    min-height:44px;
    padding:8px 9px;
    font-size:.75rem;
  }

  .sector-ref-map{
    height:52dvh;
    min-height:360px;
    border-radius:10px;
  }
}

@media(max-width:390px){
  .sector-status-switch a{
    gap:5px;
    font-size:.70rem;
  }

  .sector-status-switch a b{
    min-width:24px;
    height:24px;
    padding:0 6px;
    font-size:.65rem;
  }

  .sector-status-dot{
    display:none;
  }
}


/* ============================================================
   Référent V3.5.1 — vrai plein écran iOS
   ============================================================ */

/*
 * En mode classique iOS, la carte garde sa hauteur confortable 68/70dvh.
 * En mode plein écran, cette règle très spécifique passe à 100% du viewport.
 */
body.sn-native-ios #trap-map-panel.is-fullscreen{
  position:fixed!important;
  inset:0!important;
  z-index:5000!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#edf3f0!important;
}

body.sn-native-ios #trap-map-panel.is-fullscreen #referent-trap-map.trap-coverage-map{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
}

body.sn-native-ios.trap-map-fullscreen-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

/* Les petites icônes restent au-dessus de la carte. */
body.sn-native-ios #trap-map-panel.is-fullscreen .trap-map-fs-tools{
  display:flex!important;
  z-index:5600!important;
}

body.sn-native-ios #trap-map-panel.is-fullscreen .trap-map-controls{
  z-index:5500!important;
}

/* Sécurité sur les couches Leaflet après agrandissement de la WKWebView. */
body.sn-native-ios #trap-map-panel.is-fullscreen .leaflet-container,
body.sn-native-ios #trap-map-panel.is-fullscreen .leaflet-map-pane{
  width:100%!important;
  height:100%!important;
}


/* ============================================================
   Référent V3.5.2 — filtre "alentours de mon secteur"
   ============================================================ */
.sector-around-filter{
  display:flex;
  align-items:center;
  gap:14px;
  margin:10px 0 12px;
  padding:12px 14px;
  border:1px solid #d8e5de;
  border-radius:12px;
  background:#fbfdfc;
}

.sector-around-filter__label{
  flex:1 1 260px;
  min-width:0;
}

.sector-around-filter__label strong{
  display:block;
  margin-top:2px;
  color:#154a3c;
  font-size:.88rem;
  line-height:1.25;
}

.sector-around-filter__label small{
  display:block;
  margin-top:3px;
  color:#6c7f76;
  font-size:.69rem;
  line-height:1.4;
}

.sector-around-filter__choices{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.sector-around-filter__choices a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border:1px solid #cfddd6;
  border-radius:999px;
  background:#fff;
  color:#315f51;
  text-decoration:none;
  font-size:.75rem;
  font-weight:800;
  white-space:nowrap;
}

.sector-around-filter__choices a.is-active{
  border-color:#00664e;
  background:#00664e;
  color:#fff;
}

.sector-around-filter__count{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 10px;
  border-radius:999px;
  background:#fff3de;
  color:#7d5119;
  font-size:.68rem;
  font-weight:800;
  white-space:nowrap;
}

.sector-nearby-popup{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:180px;
}

.sector-nearby-popup b{
  color:#5f4826;
  font-size:.80rem;
}

.sector-nearby-popup span{
  color:#244a40;
  font-weight:700;
  font-size:.78rem;
}

.sector-nearby-popup small{
  color:#6c7b75;
  font-size:.69rem;
}

.sector-nearby-popup em{
  margin-top:3px;
  color:#8a6b3d;
  font-size:.64rem;
  font-style:normal;
}

@media(max-width:900px){
  .sector-around-filter{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .sector-around-filter__choices{
    width:100%;
  }
}

@media(max-width:760px){
  .sector-around-filter{
    gap:9px;
    padding:10px;
  }

  .sector-around-filter__choices{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sector-around-filter__choices a{
    width:100%;
    min-height:42px;
  }

  .sector-around-filter__count{
    width:100%;
    justify-content:center;
  }
}


/* ============================================================
   Référent V3.5.3 — marqueurs "alentours" visibles iOS/Android/PC
   ============================================================ */
.sector-nearby-divicon{
  background:transparent!important;
  border:0!important;
}

.sector-nearby-pin{
  position:relative;
  display:block;
  width:30px;
  height:30px;
  border:3px solid #fff;
  border-radius:50% 50% 50% 8px;
  transform:rotate(-45deg);
  box-shadow:
    0 3px 10px rgba(16,52,43,.28),
    0 0 0 1px rgba(16,52,43,.14);
}

.sector-nearby-pin.confirmed{
  background:#c87b20;
}

.sector-nearby-pin.neutralized{
  background:#3f7569;
}

.sector-nearby-pin__dot{
  position:absolute;
  left:50%;
  top:50%;
  width:8px;
  height:8px;
  margin:-4px 0 0 -4px;
  border-radius:50%;
  background:#fff;
  transform:rotate(45deg);
}

body.sn-native-ios .sector-nearby-divicon,
body.sn-native-ios .sector-nearby-pin{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  max-width:none!important;
  max-height:none!important;
}

.sector-ref-map.has-nearby-points::after{
  content:'';
  pointer-events:none;
}

@media(max-width:760px){
  .sector-nearby-pin{
    width:28px;
    height:28px;
  }
}
