
:root{
  --navy:#0b1736;--navy2:#14285d;--blue:#315efb;--cyan:#36c5f0;--red:#e5484d;--orange:#f28c28;
  --green:#1b9a6c;--yellow:#d8a400;--purple:#7656d6;--ink:#101828;--muted:#667085;--muted2:#98a2b3;
  --bg:#f4f7fb;--card:#fff;--line:#e4e9f1;--soft:#eef3ff;--radius:24px;--shadow:0 18px 60px rgba(11,23,54,.08);
  --header-h:76px;--footer-h:44px
}
*{box-sizing:border-box}
html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);scroll-behavior:smooth}
body{margin:0;background:
 radial-gradient(circle at 15% -10%,rgba(49,94,251,.14),transparent 30rem),
 radial-gradient(circle at 95% 10%,rgba(54,197,240,.10),transparent 24rem),
 var(--bg)}
a{color:inherit}
.site-header{position:fixed;top:0;left:0;right:0;height:var(--header-h);z-index:100;background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(228,233,241,.9)}
.header-inner{height:100%;max-width:1240px;margin:auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:max-content}
.brand-mark{width:42px;height:42px;background:linear-gradient(145deg,var(--navy),var(--blue));border-radius:14px;display:grid;place-items:center;box-shadow:0 10px 25px rgba(49,94,251,.22);position:relative;transform:rotate(30deg)}
.brand-mark span{width:17px;height:21px;border:2px solid #fff;border-top-width:4px;border-radius:7px 7px 10px 10px;transform:rotate(-30deg)}
.brand-copy{display:grid;line-height:1.05}.brand-copy strong{font-size:1.22rem;letter-spacing:-.02em;color:var(--navy)}.brand-copy small{font-size:.72rem;color:var(--muted);margin-top:4px}
.desktop-nav{display:flex;align-items:center;gap:5px}.desktop-nav a{text-decoration:none;font-size:.91rem;font-weight:750;padding:10px 12px;border-radius:12px}.desktop-nav a:hover,.desktop-nav a.is-active{background:#eef3ff;color:var(--navy2)}.desktop-nav .primary-link{background:var(--navy);color:#fff}.desktop-nav .primary-link:hover{background:var(--navy2);color:#fff}
.install-btn{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 12px;font-weight:800;cursor:pointer}
.site-main{max-width:1240px;margin:0 auto;padding:calc(var(--header-h) + 28px) 22px calc(var(--footer-h) + 58px);min-height:100vh}
.desktop-footer{position:fixed;bottom:0;left:0;right:0;height:var(--footer-h);z-index:90;padding:0 max(22px,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between;background:rgba(11,23,54,.96);color:#dce5ff;font-size:.78rem;backdrop-filter:blur(14px)}
.footer-links{display:flex;gap:14px}.footer-links a{text-decoration:none;color:#fff}.sep{opacity:.45;margin:0 5px}
.mobile-nav,.mobile-made{display:none}
.flash{position:fixed;top:calc(var(--header-h) + 10px);left:50%;transform:translateX(-50%);z-index:130;max-width:min(92vw,720px);padding:12px 16px;border-radius:14px;box-shadow:0 16px 50px #0002;font-weight:700}.flash.success{background:#e9fff5;color:#087351}.flash.error{background:#fff0f0;color:#b42318}
.eyebrow{font-size:.72rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:var(--blue)}
.page-intro{margin:12px 0 24px}.page-intro h1{font-size:clamp(2rem,4vw,3.4rem);margin:.25rem 0 .45rem;letter-spacing:-.04em}.page-intro p{margin:0;max-width:760px;color:var(--muted);font-size:1.04rem}
.hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:30px;align-items:stretch;padding:22px 0 36px}
.hero-copy{padding:28px 0}.hero h1{font-size:clamp(3.2rem,7vw,6.4rem);line-height:.9;margin:.16em 0 .24em;letter-spacing:-.075em;color:var(--navy)}.hero h1 em{font-style:normal;color:var(--blue)}.lead{font-size:1.12rem;line-height:1.65;color:var(--muted);max-width:720px}
.actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:22px}
.btn{appearance:none;border:0;border-radius:14px;background:var(--navy);color:#fff;padding:12px 17px;font:inherit;font-weight:850;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s transform,.18s box-shadow,.18s background}.btn:hover{transform:translateY(-1px);box-shadow:0 12px 24px #0b173622}.btn.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn.soft{background:var(--soft);color:var(--navy2)}.btn.danger{background:#b42318}.btn.warn{background:#b54708}.btn.small{padding:8px 11px;border-radius:10px;font-size:.82rem}
.hero-panel,.card,.glass-card{background:rgba(255,255,255,.92);border:1px solid rgba(228,233,241,.95);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-panel{padding:20px;display:grid;grid-template-rows:auto 1fr auto;min-height:430px;overflow:hidden;position:relative}
.hero-panel:before{content:"";position:absolute;right:-80px;top:-80px;width:260px;height:260px;background:radial-gradient(circle,rgba(49,94,251,.18),transparent 68%)}
.live-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative}.live-dot{display:inline-flex;align-items:center;gap:7px;font-weight:800;font-size:.85rem;color:var(--green)}.live-dot:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 6px rgba(27,154,108,.11)}
.mock-map{position:relative;margin:16px 0;background:linear-gradient(145deg,#edf4fb,#e6eef8);border-radius:20px;overflow:hidden;min-height:255px;border:1px solid #dce5ef}.mock-map:before,.mock-map:after{content:"";position:absolute;inset:0;background-image:linear-gradient(#d6e1ed 1px,transparent 1px),linear-gradient(90deg,#d6e1ed 1px,transparent 1px);background-size:42px 42px;opacity:.6;transform:rotate(-8deg) scale(1.25)}.mock-map:after{background:radial-gradient(circle at 36% 45%,rgba(49,94,251,.20),transparent 18%),radial-gradient(circle at 68% 62%,rgba(229,72,77,.18),transparent 20%);opacity:1;transform:none}.pin{position:absolute;z-index:3;width:18px;height:18px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--red);box-shadow:0 7px 14px #0002}.pin:after{content:"";width:6px;height:6px;background:#fff;border-radius:50%;position:absolute;left:6px;top:6px}.p1{left:31%;top:42%}.p2{left:62%;top:55%;background:var(--orange)}.p3{left:73%;top:28%;background:var(--purple)}
.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;position:relative}.mini-stat{padding:12px;background:#f7f9fc;border-radius:16px}.mini-stat b{display:block;font-size:1.5rem;color:var(--navy)}.mini-stat span{font-size:.73rem;color:var(--muted)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:28px 0 14px}.section-head h2{margin:0;font-size:1.55rem;letter-spacing:-.03em}.section-head p{margin:4px 0 0;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{padding:20px}.card h2,.card h3,.card h4{margin-top:0}.card.feature{min-height:190px;position:relative;overflow:hidden}.feature-icon{width:46px;height:46px;border-radius:15px;background:var(--soft);display:grid;place-items:center;font-size:1.3rem;margin-bottom:30px}.card p{line-height:1.55}.muted{color:var(--muted)}.small{font-size:.82rem}.strong{font-weight:850}
.kpi{font-size:2rem;font-weight:950;color:var(--navy);letter-spacing:-.04em}.kpi-label{font-size:.82rem;color:var(--muted);margin-top:3px}
.form-shell{max-width:860px}.form-step{display:flex;align-items:center;gap:9px;margin-bottom:20px}.form-step span{width:31px;height:31px;border-radius:10px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:900}.field{display:grid;gap:7px;margin-bottom:16px}.field label{font-weight:800;font-size:.9rem}.field input,.field select,.field textarea{width:100%;background:#fff;border:1px solid #d4dbe7;border-radius:14px;padding:12px 13px;color:var(--ink);font:inherit;outline:none;transition:.15s}.field input:focus,.field select:focus,.field textarea:focus{border-color:#93a8ff;box-shadow:0 0 0 4px rgba(49,94,251,.09)}.field textarea{min-height:135px;resize:vertical}.hint{font-size:.8rem;color:var(--muted)}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stack{display:grid;gap:14px}
.notice,.warning,.success-box{padding:14px 16px;border-radius:14px;margin:14px 0;line-height:1.45}.notice{background:#edf3ff;border-left:4px solid var(--blue)}.warning{background:#fff7ed;border-left:4px solid var(--orange)}.success-box{background:#ecfdf3;border-left:4px solid var(--green)}
.address-wrap{position:relative}.address-results{display:none;position:absolute;z-index:50;left:0;right:0;top:100%;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 50px #0002;max-height:260px;overflow:auto}.address-item{padding:11px 12px;border-bottom:1px solid var(--line);cursor:pointer}.address-item:hover{background:#f6f8fc}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.category-option input{position:absolute;opacity:0;pointer-events:none}.category-option label{height:100%;display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;cursor:pointer;font-weight:800;font-size:.82rem}.category-option label span{font-size:1.35rem}.category-option input:checked+label{border-color:var(--blue);background:#eef3ff;box-shadow:0 0 0 3px rgba(49,94,251,.08)}
.map-shell{height:calc(100vh - var(--header-h) - var(--footer-h) - 155px);min-height:520px;border-radius:22px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);background:#dfe8f1}.map-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:13px}.map-toolbar .field{margin:0;min-width:220px}
.alert-level{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;font-size:.78rem;font-weight:900}.alert-level:before{content:"";width:8px;height:8px;border-radius:50%}.alert-level.green{background:#eafaf4;color:#087351}.alert-level.green:before{background:var(--green)}.alert-level.yellow{background:#fff8db;color:#8a6800}.alert-level.yellow:before{background:var(--yellow)}.alert-level.orange{background:#fff1df;color:#a64d00}.alert-level.orange:before{background:var(--orange)}
.nearby-summary{display:grid;grid-template-columns:.65fr 1.35fr;gap:16px;margin-bottom:16px}.radar-card{min-height:270px;display:grid;place-items:center;position:relative;overflow:hidden}.radar{width:210px;height:210px;border-radius:50%;background:repeating-radial-gradient(circle,rgba(49,94,251,.09) 0 1px,transparent 2px 34px),conic-gradient(from 0deg,rgba(49,94,251,.20),transparent 25%,transparent);position:relative}.radar:after{content:"";position:absolute;left:50%;top:50%;width:12px;height:12px;border-radius:50%;background:var(--blue);transform:translate(-50%,-50%);box-shadow:0 0 0 7px rgba(49,94,251,.13)}.radar-p{position:absolute;width:11px;height:11px;border-radius:50%;background:var(--red);box-shadow:0 0 0 5px rgba(229,72,77,.10)}.rp1{left:29%;top:35%}.rp2{right:24%;bottom:30%}.rp3{right:35%;top:22%;background:var(--orange)}
.report-list{display:grid;gap:10px}.report-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:13px 14px;background:#fff;border:1px solid var(--line);border-radius:16px}.report-icon{width:40px;height:40px;border-radius:13px;background:#f4f6fa;display:grid;place-items:center;font-size:1.18rem}.report-row strong{display:block}.report-row small{color:var(--muted)}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse}th,td{padding:12px 13px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;font-size:.88rem}th{font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:#fafbfc}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef2f7;font-size:.74rem;font-weight:900}.badge.published{background:#eafaf4;color:#087351}.badge.pending{background:#fff5dd;color:#9a6700}.badge.rejected{background:#fff0f0;color:#b42318}.badge.duplicate{background:#f1edff;color:#6941c6}
.admin-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px}.admin-side{position:sticky;top:calc(var(--header-h) + 18px);height:max-content;padding:14px}.admin-side a{display:block;padding:11px 12px;text-decoration:none;border-radius:12px;font-weight:750;font-size:.88rem}.admin-side a:hover,.admin-side a.is-active{background:#eef3ff;color:var(--navy2)}.admin-main{min-width:0}.admin-actions{display:flex;flex-wrap:wrap;gap:7px}
.photo{max-width:100%;border-radius:16px;border:1px solid var(--line)}
.empty{text-align:center;padding:34px;color:var(--muted)}
.auth-shell{max-width:520px;margin:36px auto}.auth-brand{text-align:center;margin-bottom:20px}.auth-brand .brand-mark{margin:auto}
.pill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.78rem;font-weight:800}
.stats-bars{display:grid;gap:10px}.bar-row{display:grid;grid-template-columns:190px 1fr 50px;gap:12px;align-items:center}.bar{height:10px;background:#edf1f5;border-radius:99px;overflow:hidden}.bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--cyan));border-radius:99px}
hr{border:0;border-top:1px solid var(--line);margin:20px 0}

@media(max-width:980px){
  .desktop-nav{display:none}.install-btn{display:none!important}.hero{grid-template-columns:1fr}.hero-copy{padding-bottom:0}.grid.four{grid-template-columns:repeat(2,1fr)}.category-grid{grid-template-columns:repeat(3,1fr)}.admin-layout{grid-template-columns:1fr}.admin-side{position:static;display:flex;overflow:auto;gap:4px}.admin-side a{white-space:nowrap}.nearby-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  :root{--header-h:64px;--mobile-nav-h:70px}
  .header-inner{padding:0 14px}.brand-copy small{display:none}.brand-mark{width:38px;height:38px;border-radius:13px}
  .site-main{padding:calc(var(--header-h) + 18px) 14px 128px}
  .desktop-footer{display:none}.mobile-made{display:block;position:fixed;left:0;right:0;bottom:68px;height:20px;z-index:92;text-align:center;font-size:.63rem;line-height:20px;color:#667085;background:rgba(244,247,251,.92);backdrop-filter:blur(8px)}
  .mobile-nav{position:fixed;left:8px;right:8px;bottom:8px;height:62px;z-index:100;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:4px 5px;background:rgba(11,23,54,.96);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.12);border-radius:22px;box-shadow:0 16px 38px rgba(11,23,54,.3)}
  .mobile-nav a{color:#c8d2ea;text-decoration:none;display:grid;place-items:center;gap:1px;font-size:1.05rem}.mobile-nav a small{font-size:.62rem;font-weight:800}.mobile-nav a.is-active{color:#fff}.mobile-nav .mobile-signal{width:58px;height:58px;border-radius:19px;background:linear-gradient(145deg,var(--blue),#2446c9);color:#fff;justify-self:center;margin-top:-22px;box-shadow:0 10px 24px rgba(49,94,251,.38);border:4px solid var(--bg)}.mobile-nav .mobile-signal span{font-size:1.65rem;line-height:1}.mobile-nav .mobile-signal small{display:none}
  .hero{padding-top:0;gap:12px}.hero-copy{padding-top:10px}.hero h1{font-size:clamp(3rem,15vw,4.7rem)}.lead{font-size:1rem}.hero-panel{min-height:360px;padding:15px}.mock-map{min-height:210px}
  .grid,.grid.two,.grid.four{grid-template-columns:1fr}.row{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,1fr)}.nearby-summary{grid-template-columns:1fr}.map-toolbar{display:grid}.map-toolbar .field{min-width:0}.map-shell{height:64vh;min-height:440px}.section-head{align-items:start}.report-row{grid-template-columns:auto 1fr}.report-row>.pill{grid-column:2}.bar-row{grid-template-columns:125px 1fr 34px}.flash{top:calc(var(--header-h) + 8px)}
}


/* V2.2 */
.search-hero{max-width:760px;margin-top:22px}
.commune-search{position:relative}
.commune-search input{width:100%;border:1px solid var(--line);border-radius:18px;padding:15px 52px 15px 16px;font:inherit;font-weight:700;background:#fff;box-shadow:0 12px 35px rgba(11,23,54,.07);outline:none}
.commune-search input:focus{border-color:#93a8ff;box-shadow:0 0 0 4px rgba(49,94,251,.09),0 12px 35px rgba(11,23,54,.07)}
.commune-search:after{content:"⌕";position:absolute;right:17px;top:11px;font-size:1.45rem;color:var(--navy)}
.commune-results{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:80;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 55px #0002;max-height:340px;overflow:auto}
.commune-result{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;text-decoration:none;border-bottom:1px solid var(--line)}
.commune-result:hover{background:#f5f7fb}.commune-result span{font-size:.78rem;color:var(--muted)}
.local-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-bottom:16px}
.local-title h1{font-size:clamp(2.2rem,5vw,4rem);margin:.15rem 0;letter-spacing:-.055em}
.source-card{border-left:4px solid var(--blue)}
.source-card.official{border-left-color:var(--cyan)}
.timeline{display:grid;gap:0}.timeline-item{display:grid;grid-template-columns:28px 1fr;gap:12px;position:relative;padding-bottom:18px}.timeline-item:before{content:"";position:absolute;left:13px;top:27px;bottom:0;width:2px;background:var(--line)}.timeline-item:last-child:before{display:none}.timeline-dot{width:28px;height:28px;border-radius:10px;background:#eef3ff;display:grid;place-items:center;z-index:1}.timeline-body{padding:3px 0}.timeline-body strong{display:block}.timeline-body small{color:var(--muted)}
.share-row{display:flex;gap:8px;flex-wrap:wrap}.share-row button,.share-row a{min-width:120px}
.map-bottom-sheet{display:none}
.org-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;border-radius:22px;padding:18px 20px;margin-bottom:16px}.org-banner p{margin:3px 0 0;color:#d5def5}
.org-kpi{background:linear-gradient(180deg,#fff,#f8faff)}
.export-note{font-size:.78rem;color:var(--muted);margin-top:8px}
.data-source{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:900;padding:5px 8px;border-radius:999px}.data-source.citizen{background:#fff1df;color:#a64d00}.data-source.official{background:#eaf7ff;color:#12658a}
.callout-links{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.callout-link{padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;text-decoration:none}.callout-link strong{display:block;margin-bottom:4px}
@media(max-width:720px){
  .local-hero{grid-template-columns:1fr}.commune-result{align-items:flex-start;flex-direction:column;gap:2px}
  .map-bottom-sheet{display:block;position:fixed;left:12px;right:12px;bottom:92px;z-index:89;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:20px;padding:13px;box-shadow:0 18px 50px #0003;transform:translateY(150%);transition:.22s transform}
  .map-bottom-sheet.is-open{transform:translateY(0)}
  .callout-links{grid-template-columns:1fr}
}


/* HexaVigie V2.3 — Accueil SEO */
.seo-hero{align-items:center}
.home-map-card{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:15px;overflow:hidden}
.home-map-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 4px 13px}
.home-map-head h2{font-size:1.15rem;margin:3px 0 0;letter-spacing:-.025em}
.home-real-map{height:385px;border-radius:20px;overflow:hidden;background:#dfe8f1;z-index:1}
.home-map-legend{display:flex;gap:12px;flex-wrap:wrap;padding:12px 5px 4px;font-size:.72rem;font-weight:800;color:var(--muted)}
.home-map-legend span{display:flex;align-items:center;gap:6px}
.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-dot.red{background:#e5484d}.legend-dot.orange{background:#f28c28}.legend-dot.purple{background:#7656d6}
.home-map-note{font-size:.72rem;color:var(--muted);padding:7px 5px 3px;line-height:1.4}
.trust-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.trust-row span{padding:7px 10px;border:1px solid var(--line);background:rgba(255,255,255,.7);border-radius:999px;font-size:.74rem;font-weight:800;color:#475467}
.home-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 44px}
.home-kpis article{background:#fff;border:1px solid var(--line);border-radius:19px;padding:17px;box-shadow:0 10px 30px rgba(11,23,54,.045)}
.home-kpis strong{font-size:2rem;line-height:1;display:block;color:var(--navy);letter-spacing:-.05em}
.home-kpis span{display:block;margin-top:7px;color:var(--muted);font-size:.77rem;line-height:1.35}
.seo-section{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:center;padding:46px 0;border-top:1px solid var(--line)}
.seo-section.reverse{grid-template-columns:.85fr 1.15fr}
.seo-section-copy h2,.content-hub h2,.official-actions h2,.faq-section h2,.final-cta h2{font-size:clamp(1.8rem,3.5vw,3rem);line-height:1.08;letter-spacing:-.05em;margin:.28em 0 .48em;color:var(--navy)}
.seo-section-copy p{font-size:1rem;line-height:1.75;color:#475467;max-width:780px}
.seo-highlight{padding:25px}.seo-highlight h3{font-size:1.35rem;margin:15px 0}
.check-list{list-style:none;padding:0;margin:0;display:grid;gap:11px}.check-list li{position:relative;padding-left:28px;color:#344054;line-height:1.45}.check-list li:before{content:"✓";position:absolute;left:0;top:-1px;width:20px;height:20px;border-radius:7px;background:#e9fff5;color:#087351;display:grid;place-items:center;font-weight:900}
.official-block{padding:26px}.official-block h3{font-size:1.45rem;margin:14px 0 8px}.official-block p{line-height:1.65;color:#475467}
.text-link{font-weight:900;text-decoration:none;color:var(--blue)}.text-link:hover{text-decoration:underline}
.content-hub,.official-actions,.faq-section{padding:42px 0;border-top:1px solid var(--line)}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.feature-rich{display:flex;flex-direction:column}.feature-rich p{flex:1;color:#475467}
.steps-card{padding:26px}.seo-steps{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:14px}.seo-steps li{display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center}.seo-steps li>span{width:38px;height:38px;border-radius:13px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:950}.seo-steps strong{display:block}.seo-steps small{color:var(--muted);line-height:1.35;display:block;margin-top:2px}
.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.faq-item{background:#fff;border:1px solid var(--line);border-radius:17px;padding:0 17px}.faq-item summary{cursor:pointer;font-weight:850;padding:16px 24px 16px 0;list-style:none;position:relative}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary:after{content:"+";position:absolute;right:0;font-size:1.3rem;color:var(--blue)}.faq-item[open] summary:after{content:"−"}.faq-item p{color:#475467;line-height:1.65;margin:0 0 17px}
.final-cta{margin:46px 0 14px;background:linear-gradient(135deg,#0b1736,#17346f);color:#fff;border-radius:28px;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:22px}.final-cta h2{color:#fff;margin-top:6px}.final-cta p{color:#d3dcf2;max-width:700px}.final-cta .eyebrow{color:#9ab3ff}.final-cta .btn.secondary{background:#fff}
@media(max-width:980px){
  .home-kpis{grid-template-columns:repeat(2,1fr)}
  .seo-section,.seo-section.reverse{grid-template-columns:1fr}
  .grid.three{grid-template-columns:1fr}
  .faq-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .home-real-map{height:330px}
  .home-kpis{grid-template-columns:1fr 1fr;margin-bottom:30px}
  .home-kpis strong{font-size:1.65rem}
  .seo-section{padding:34px 0}
  .seo-section-copy h2,.content-hub h2,.official-actions h2,.faq-section h2,.final-cta h2{font-size:2rem}
  .final-cta{display:block;padding:24px}
}

/* V2.4 Citoyen */
.neighborhood-head{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:center;margin-bottom:16px}.neighborhood-head h1{font-size:clamp(2.3rem,5vw,4rem);line-height:1;letter-spacing:-.055em;margin:.2em 0}.zone-chips{display:flex;gap:8px;overflow:auto;padding:2px 0 14px}.zone-chip{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 12px;font-weight:800;cursor:pointer}.zone-chip:hover{background:var(--soft)}.neighborhood-cta{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:18px}.assistant-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px}.assistant-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.assistant-options button{border:1px solid var(--line);background:#fff;border-radius:15px;padding:13px;text-align:left;font-weight:800;cursor:pointer}.assistant-options button.selected{background:var(--soft);border-color:var(--blue);box-shadow:0 0 0 3px rgba(49,94,251,.08)}.assistant-steps{list-style:none;margin:0;padding:0;display:grid;gap:14px}.assistant-steps li{display:grid;grid-template-columns:34px 1fr;gap:11px}.assistant-steps li>b{width:34px;height:34px;border-radius:11px;background:var(--navy);color:#fff;display:grid;place-items:center}.assistant-steps p{margin:4px 0;color:var(--muted);line-height:1.5}.vault-security{display:flex;align-items:center;justify-content:space-between;gap:18px}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check-grid label{padding:9px;border:1px solid var(--line);border-radius:12px;background:#fff}.code-box{white-space:pre-wrap;overflow:auto;background:#0b1736;color:#e8eeff;border-radius:14px;padding:14px}.citizen-needs{padding:42px 0;border-top:1px solid var(--line)}.citizen-tool{text-decoration:none}.citizen-tool p{color:var(--muted)}.citizen-tool:hover{transform:translateY(-2px)}
@media(max-width:800px){.neighborhood-head,.assistant-layout{grid-template-columns:1fr}.neighborhood-cta,.vault-security{display:block}.neighborhood-cta .btn,.vault-security .btn{margin-top:12px}.assistant-options,.check-grid{grid-template-columns:1fr}}


/* =========================================================
   HexaVigie V2.4.1 — UI polish / boutons
   ========================================================= */

button,
input[type="button"],
input[type="submit"]{
  font-family:inherit;
}

/* Assistant victime */
.assistant-panel{
  overflow:hidden;
}
.assistant-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.assistant-options button{
  -webkit-appearance:none;
  appearance:none;
  border:1px solid #dfe5ef;
  background:linear-gradient(180deg,#fff,#fbfcff);
  color:var(--ink);
  border-radius:16px;
  min-height:72px;
  padding:14px 15px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  text-align:left;
  font:inherit;
  font-weight:800;
  line-height:1.25;
  cursor:pointer;
  box-shadow:0 5px 15px rgba(11,23,54,.035);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}
.assistant-options button:hover{
  transform:translateY(-1px);
  border-color:#afbef6;
  background:#f6f8ff;
  box-shadow:0 9px 24px rgba(49,94,251,.08);
}
.assistant-options button.selected{
  color:#10234c;
  border-color:#5578ff;
  background:linear-gradient(180deg,#edf2ff,#e7eeff);
  box-shadow:0 0 0 3px rgba(49,94,251,.10);
}
.assistant-options button:focus-visible{
  outline:3px solid rgba(49,94,251,.22);
  outline-offset:2px;
}
.assistant-result{
  min-height:320px;
}
.assistant-content .empty{
  min-height:180px;
  display:grid;
  place-items:center;
}

/* Zones suivies / Mon quartier */
.zone-chips{
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding:2px 1px 14px;
  scrollbar-width:thin;
}
.zone-chip{
  -webkit-appearance:none;
  appearance:none;
  border:1px solid #dce3ee;
  background:#fff;
  color:var(--navy);
  border-radius:999px;
  padding:10px 14px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  font:inherit;
  font-size:.86rem;
  font-weight:850;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(11,23,54,.04);
  transition:.16s ease;
}
.zone-chip:hover{
  border-color:#9fb2ff;
  background:#eef3ff;
  transform:translateY(-1px);
}
.zone-chip:focus-visible{
  outline:3px solid rgba(49,94,251,.20);
  outline-offset:2px;
}
.zone-chip.is-selected{
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--navy2));
  border-color:var(--navy);
}

/* Mon quartier : contrôles plus compacts et premium */
.neighborhood-head > .card{
  padding:18px;
}
.neighborhood-head .field select{
  min-height:50px;
}
.neighborhood-head .btn{
  min-height:48px;
}
.neighborhood-kpis article{
  min-height:122px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* Alert preferences */
.check-grid label{
  cursor:pointer;
  transition:.16s ease;
}
.check-grid label:hover{
  background:#f7f9ff;
  border-color:#b8c6f7;
}
.check-grid input{
  width:auto;
  accent-color:#315efb;
}

/* Actions always consistent */
.actions form{
  margin:0;
}
.actions .btn,
.admin-actions .btn{
  min-height:40px;
}

/* Small mobile refinements */
@media(max-width:980px){
  .assistant-options{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .assistant-options{
    grid-template-columns:1fr;
  }
  .assistant-options button{
    min-height:58px;
    padding:12px 13px;
  }
  .zone-chip{
    min-height:40px;
    padding:9px 12px;
  }
  .neighborhood-head .actions,
  .neighborhood-head .btn{
    width:100%;
  }
}

/* V2.5 — Territoires & données officielles */
.city-mini-line{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:.82rem}
.city-source-note{display:flex;align-items:center;gap:12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:16px;padding:12px 14px;margin-bottom:16px}.city-source-note p{margin:0;color:#7c2d12;font-size:.84rem}
.official-city-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.official-city-head h3{margin:9px 0 0}
.official-context{display:flex;gap:10px;flex-wrap:wrap}.official-context span{background:#effaff;border:1px solid #cdeeff;border-radius:13px;padding:9px 11px;color:#175b78;font-size:.8rem}.official-context b{font-size:1rem}
.official-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.official-stat-card{border:1px solid var(--line);background:#fafcff;border-radius:16px;padding:15px}.official-stat-card h4{font-size:.88rem;line-height:1.3;min-height:2.5em;margin:0 0 14px}.official-value{font-size:1.9rem;font-weight:950;color:var(--navy);letter-spacing:-.04em}.official-rate{margin-top:8px;color:#12658a;font-weight:900}.official-nd{font-size:1rem;font-weight:900;color:#8a6800;margin-bottom:6px}.official-caveat{margin-top:18px;padding:14px 16px;border-radius:15px;background:#f6f8fb}.official-caveat p{margin:6px 0 0;color:var(--muted);line-height:1.55}
.official-trends{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.trend-card h3{font-size:1.02rem}.trend-bars{display:grid;gap:7px}.trend-row{display:grid;grid-template-columns:46px 1fr 58px;gap:9px;align-items:center;font-size:.78rem}.trend-year{color:var(--muted)}.trend-track{height:9px;border-radius:99px;background:#edf1f6;overflow:hidden}.trend-track span{display:block;height:100%;background:linear-gradient(90deg,#315efb,#36c5f0);border-radius:99px}.trend-row strong{text-align:right}
.city-actions{padding:34px 0}.city-source-footer{padding:14px 0 4px;color:var(--muted);font-size:.78rem}
.seo-check{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.seo-check:last-child{border-bottom:0}.seo-check span{font-size:.82rem}.seo-check.ok span{color:#087351}.seo-check.warn span{color:#b54708}.seo-check.neutral span{color:var(--muted)}
.compact-steps{padding-left:20px;line-height:1.7;color:#475467}.seo-url-list{display:flex;gap:9px;flex-wrap:wrap}.seo-url-list a{padding:9px 11px;border-radius:11px;background:#f2f5fb;text-decoration:none;font-weight:800;font-size:.82rem}
@media(max-width:900px){.official-stat-grid{grid-template-columns:repeat(2,1fr)}.official-trends{grid-template-columns:1fr}}
@media(max-width:620px){.official-stat-grid{grid-template-columns:1fr}.official-city-head{display:block}.official-context{margin-top:12px}.city-source-note{align-items:flex-start;flex-direction:column}}


/* =========================================================
   HexaVigie V2.5.1 — Dashboard territorial 2026
   ========================================================= */

.local-hero{
  align-items:stretch;
}
.local-hero > .card{
  min-height:220px;
}
.local-title{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.local-title h1{
  max-width:900px;
}
.city-source-note{
  box-shadow:0 8px 24px rgba(11,23,54,.035);
}

/* Cartes statistiques officielles */
.official-stat-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.official-stat-card{
  position:relative;
  overflow:hidden;
  min-height:190px;
  padding:18px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.96));
  border:1px solid #dfe7f2;
  box-shadow:0 10px 28px rgba(11,23,54,.05);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.official-stat-card:hover{
  transform:translateY(-2px);
  border-color:#b9c9ef;
  box-shadow:0 16px 34px rgba(11,23,54,.075);
}
.official-stat-card:after{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  border-radius:50%;
  right:-45px;
  bottom:-55px;
  background:radial-gradient(circle,rgba(49,94,251,.10),transparent 68%);
  pointer-events:none;
}
.official-stat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px;
}
.official-stat-icon{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#edf3ff;
  font-size:1.15rem;
}
.official-stat-year{
  padding:5px 9px;
  border-radius:999px;
  background:#f2f4f7;
  color:#667085;
  font-size:.72rem;
  font-weight:850;
}
.official-stat-card h4{
  min-height:0;
  margin:0 0 15px;
  font-size:.93rem;
  line-height:1.35;
  color:#344054;
}
.official-value{
  font-size:2.35rem;
  line-height:1;
  margin-bottom:9px;
}
.official-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#667085;
}
.official-rate{
  margin:0;
  padding:5px 8px;
  border-radius:9px;
  background:#eaf7ff;
  font-size:.75rem;
}
.official-nd{
  display:inline-flex;
  padding:7px 10px;
  border-radius:10px;
  background:#fff7df;
}

/* Accordéons historiques */
.territory-history-head{
  margin-top:42px;
}
.territory-accordions{
  display:grid;
  gap:11px;
}
.territory-accordion{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 28px rgba(11,23,54,.045);
}
.territory-accordion > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  transition:background .16s ease;
}
.territory-accordion > summary::-webkit-details-marker{
  display:none;
}
.territory-accordion > summary:hover{
  background:#f9fbff;
}
.territory-accordion[open] > summary{
  background:#f6f9ff;
  border-bottom:1px solid var(--line);
}
.territory-summary-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.territory-summary-icon{
  width:40px;
  height:40px;
  min-width:40px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#edf3ff;
}
.territory-summary-main strong{
  display:block;
  font-size:.95rem;
  line-height:1.25;
}
.territory-summary-main small{
  display:block;
  color:var(--muted);
  margin-top:3px;
  font-size:.74rem;
}
.territory-summary-kpi{
  display:grid;
  justify-items:end;
  min-width:72px;
}
.territory-summary-kpi b{
  font-size:1.25rem;
  color:var(--navy);
}
.territory-summary-kpi small{
  color:var(--muted);
  font-size:.7rem;
}
.territory-accordion summary:after{
  content:"＋";
  font-size:1.05rem;
  color:var(--blue);
  margin-left:6px;
}
.territory-accordion[open] summary:after{
  content:"−";
}
.territory-accordion-body{
  padding:18px;
}
.trend-bars{
  gap:10px;
}
.trend-row{
  grid-template-columns:52px minmax(0,1fr) 64px;
  gap:12px;
  font-size:.8rem;
}
.trend-year{
  font-weight:800;
  color:#475467;
}
.trend-track{
  height:12px;
  background:#edf1f6;
  position:relative;
}
.trend-track span{
  min-width:4px;
  background:linear-gradient(90deg,#315efb,#36c5f0);
}
.trend-nd{
  display:block;
  height:100%;
  width:100%;
  background:repeating-linear-gradient(
    135deg,
    #eef1f5 0 6px,
    #f8f9fb 6px 12px
  );
}
.territory-history-note{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:15px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.72rem;
}

/* Lecture officielle plus claire */
.official-caveat{
  border:1px solid #e5eaf2;
}
.city-source-footer{
  border-top:1px solid var(--line);
  margin-top:10px;
}

/* Fix zoom / large screens */
@media(min-width:1500px){
  .site-main{
    max-width:1380px;
  }
}
@media(max-width:1050px){
  .official-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .official-stat-grid{
    grid-template-columns:1fr;
  }
  .official-stat-card{
    min-height:0;
  }
  .territory-accordion > summary{
    padding:14px;
  }
  .territory-summary-kpi{
    min-width:58px;
  }
  .territory-accordion-body{
    padding:14px;
  }
  .trend-row{
    grid-template-columns:44px 1fr 52px;
    gap:8px;
  }
}
