/* Mes territoires — nouvelle logique suivi + alertes v515 */
body.citizen-territories-page .citizen-body{background:#fff!important;padding-top:22px!important}
body.citizen-territories-page .citizen-body>.container{max-width:1260px!important;padding-left:20px!important;padding-right:20px!important}
body.citizen-territories-page .citizen-main{max-width:none!important}

.territory-v2-page{max-width:1180px;margin:0 auto;font-family:'Inter',Arial,sans-serif;color:#111d28}
.territory-v2-head{display:flex;align-items:flex-start;justify-content:space-between;gap:26px;padding:4px 8px 24px}
.territory-v2-head .kicker{margin:0 0 9px!important;color:#ef6428!important;font:650 14px/1.25 'Inter',Arial,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
.territory-v2-head h2{margin:0 0 9px!important;color:#111d28!important;font:800 clamp(34px,4vw,47px)/1.03 'Inter',Arial,sans-serif!important;letter-spacing:-.045em!important}
.territory-v2-head p{max-width:760px;margin:0!important;color:#64717d!important;font:400 15.5px/1.5 'Inter',Arial,sans-serif!important}
.territory-v2-add{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:7px;padding:0 15px;border-radius:6px;background:#f26422;color:#fff!important;text-decoration:none!important;font:750 11px/1 'Inter',Arial,sans-serif;white-space:nowrap}

.territory-v2-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:0 -20px 27px;padding:20px 42px;background:#195B6E;color:#fff}
.territory-v2-stats>div{display:grid;grid-template-columns:52px 46px minmax(0,1fr);align-items:center;gap:11px;min-height:72px;padding:0 28px;border-right:1px solid rgba(255,255,255,.33)}
.territory-v2-stats>div:first-child{padding-left:0}.territory-v2-stats>div:last-child{padding-right:0;border-right:0}
.territory-v2-stats>div>span{display:grid;place-items:center;width:46px;height:46px;border:1px solid rgba(255,255,255,.45);border-radius:50%;font:500 23px/1 Arial}
.territory-v2-stats strong{font:800 29px/1 'Inter',Arial,sans-serif}
.territory-v2-stats p{margin:0!important;color:#fff!important;font:550 11.5px/1.25 'Inter',Arial,sans-serif!important}

.territory-v2-explain{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin:0 8px 19px;border:1px solid #e1e7e7;border-radius:7px;overflow:hidden;background:#e1e7e7}
.territory-v2-explain>div{padding:15px 18px;background:#F2F8FA}
.territory-v2-explain strong{display:block;margin-bottom:4px;color:#195B6E;font:750 12.5px/1.2 'Inter',Arial,sans-serif}
.territory-v2-explain p{margin:0!important;color:#667780!important;font:400 11px/1.45 'Inter',Arial,sans-serif!important}

.territory-v2-list{display:grid;margin:0 8px;border-top:1px solid #e0e6e7}
.territory-v2-row{display:grid;grid-template-columns:118px minmax(0,1fr) 205px 120px;gap:18px;align-items:center;min-height:120px;padding:14px 0;border-bottom:1px solid #e0e6e7;background:#fff}
.territory-v2-row>img{display:block;width:118px;height:88px;border-radius:7px;object-fit:cover;background:#eef2f1}
.territory-v2-copy h3{margin:0 0 5px!important;color:#195B6E!important;font:780 16px/1.25 'Inter',Arial,sans-serif!important}
.territory-v2-copy p{margin:0!important;color:#697983!important;font:400 11.5px/1.4 'Inter',Arial,sans-serif!important}
.territory-alert-control{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.territory-alert-control>span{display:grid;gap:3px;text-align:right}
.territory-alert-control b{color:#195B6E;font:700 11px/1.2 'Inter',Arial,sans-serif}
.territory-alert-control small{color:#78868d;font:500 10px/1.2 'Inter',Arial,sans-serif}
.territory-alert-switch{position:relative;flex:0 0 45px;width:45px;height:25px;border:0;border-radius:20px;background:#cbd4d6;cursor:pointer;transition:background .18s ease}
.territory-alert-switch i{position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.16);transition:transform .18s ease}
.territory-alert-switch.is-on{background:#195B6E}
.territory-alert-switch.is-on i{transform:translateX(20px)}
.territory-alert-switch:disabled{opacity:.55;cursor:wait}
.territory-v2-unfollow{min-height:35px;padding:0 11px;border:1px solid #d9e1e1;border-radius:5px;background:#fff;color:#5c6e77;font:700 10px/1 'Inter',Arial,sans-serif;cursor:pointer}
.territory-v2-unfollow:hover{border-color:#efb4a0;color:#b94c2b}

.territory-v2-add-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr);gap:24px;align-items:center;margin:22px 8px 0;padding:18px;border:1px solid #dfe7e6;border-radius:7px;background:#F2F8FA}
.territory-v2-add-panel h3{margin:0 0 5px!important;color:#195B6E!important;font:780 15px/1.2 'Inter',Arial,sans-serif!important}
.territory-v2-add-panel p{margin:0!important;color:#687881!important;font:400 11.5px/1.45 'Inter',Arial,sans-serif!important}
.territory-v2-suggestions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.territory-v2-suggestions button{min-height:34px;padding:0 11px;border:1px solid #cddcdb;border-radius:18px;background:#fff;color:#195B6E;font:700 10px/1 'Inter',Arial,sans-serif;cursor:pointer}
.territory-v2-suggestions button:hover{background:#E7F0F3}

@media(max-width:850px){
  .territory-v2-row{grid-template-columns:96px minmax(0,1fr) 190px;gap:13px}
  .territory-v2-row>img{width:96px;height:78px}
  .territory-v2-unfollow{grid-column:2/4;justify-self:end}
}
@media(max-width:700px){
  body.citizen-territories-page .citizen-body{padding-top:12px!important}
  body.citizen-territories-page .citizen-body>.container{padding-left:16px!important;padding-right:16px!important}
  .territory-v2-head{display:block;padding:8px 0 22px}
  .territory-v2-head .kicker{font-size:14px!important;margin-bottom:8px!important}
  .territory-v2-head h2{font-size:35px!important;line-height:1.04!important}
  .territory-v2-head p{font-size:16px!important;line-height:1.5!important}
  .territory-v2-add{min-height:46px;margin-top:15px;padding:0 16px;font-size:13px}
  .territory-v2-stats{grid-template-columns:1fr;margin:0 -16px 24px;padding:8px 16px}
  .territory-v2-stats>div{grid-template-columns:44px 40px minmax(0,1fr);min-height:66px;padding:7px 0;border-right:0;border-bottom:1px solid rgba(255,255,255,.22)}
  .territory-v2-stats>div:first-child{padding-left:0}.territory-v2-stats>div:last-child{border-bottom:0;padding-right:0}
  .territory-v2-stats>div>span{width:38px;height:38px;font-size:18px}
  .territory-v2-stats strong{font-size:26px}
  .territory-v2-stats p{font-size:12px!important}
  .territory-v2-explain{grid-template-columns:1fr;margin:0 0 20px}
  .territory-v2-explain>div{padding:15px}
  .territory-v2-explain strong{font-size:14px}
  .territory-v2-explain p{font-size:13px!important}
  .territory-v2-list{margin:0}
  .territory-v2-row{grid-template-columns:84px minmax(0,1fr);gap:12px;padding:16px 0}
  .territory-v2-row>img{width:84px;height:78px}
  .territory-v2-copy h3{font-size:17px!important}
  .territory-v2-copy p{font-size:13.5px!important}
  .territory-alert-control{grid-column:1/-1;justify-content:space-between;padding:12px 0 0;border-top:1px solid #edf0f0}
  .territory-alert-control>span{text-align:left}
  .territory-alert-control b{font-size:14px}
  .territory-alert-control small{font-size:12px}
  .territory-alert-switch{width:52px;height:30px;flex-basis:52px}
  .territory-alert-switch i{width:24px;height:24px}
  .territory-alert-switch.is-on i{transform:translateX(22px)}
  .territory-v2-unfollow{grid-column:1/-1;justify-self:stretch;min-height:44px;font-size:12.5px}
  .territory-v2-add-panel{grid-template-columns:1fr;gap:16px;margin:20px 0 0;padding:17px}
  .territory-v2-add-panel h3{font-size:19px!important}
  .territory-v2-add-panel p{font-size:13.5px!important}
  .territory-v2-suggestions{justify-content:flex-start}
  .territory-v2-suggestions button{min-height:40px;padding:0 13px;font-size:12px}
}