/* Profil territoire — template 1 validé, v525 */
body.public-territories-page .territory-profile-v2,
body.public-territories-page .public-territory-detail-body{
  font-family:Inter,Arial,sans-serif;
}

/* Grand bandeau d'ouverture */
.public-territory-detail-hero{
  position:relative;
  min-height:320px;
  overflow:hidden;
  background:#195B6E;
  color:#fff;
}
.public-territory-detail-cover{position:absolute;inset:0}
.public-territory-detail-cover img{display:block;width:100%;height:100%;object-fit:cover}
.public-territory-detail-cover>div{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(9,34,39,.87) 0%,rgba(9,34,39,.62) 48%,rgba(9,34,39,.20) 100%);
}
.public-territory-detail-inner{
  position:relative;z-index:2;
  max-width:1180px;
  margin:0 auto;
  padding:26px 28px 34px;
}
.public-territory-back{
  display:inline-flex;
  margin:0 0 54px;
  color:#fff!important;
  text-decoration:none!important;
  font:600 13px/1.2 Inter,Arial,sans-serif;
  opacity:.92;
}
.public-territory-detail-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:28px;
}
.public-territory-detail-heading>div>span{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  margin:0 0 10px;
  padding:0 10px;
  border-radius:14px;
  background:#E7F0F3;
  color:#195B6E;
  font:700 11px/1 Inter,Arial,sans-serif;
  letter-spacing:0;
  text-transform:none;
}
.public-territory-detail-heading h1{
  margin:0 0 10px!important;
  color:#fff!important;
  font:800 clamp(38px,5vw,58px)/.98 Inter,Arial,sans-serif!important;
  letter-spacing:-.045em!important;
}
.public-territory-detail-heading p{
  max-width:560px;
  margin:0!important;
  color:#f1f5f4!important;
  font:400 16px/1.45 Inter,Arial,sans-serif!important;
}
.public-territory-detail-heading button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:0 17px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:6px;
  background:#fff;
  color:#195B6E;
  font:700 13px/1 Inter,Arial,sans-serif;
  cursor:pointer;
  white-space:nowrap;
}
.public-territory-detail-heading button.active{
  border-color:#BDD6DE;
  background:#E7F0F3;
  color:#195B6E;
}
.public-territory-detail-heading button svg{width:17px;height:17px}

/* Corps */
.public-territory-detail-body{
  padding:0 0 58px;
  background:#fff;
}
.public-territory-detail-body>.public-territories-wrap{
  max-width:1180px;
  padding:0 28px;
}

/* Une seule ligne de chiffres clés */
.public-territory-detail-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:0;
  border:1px solid #dde5e4;
  border-top:0;
  border-radius:0;
  background:#fff;
  overflow:hidden;
}
.public-territory-detail-stats article{
  display:grid;
  grid-template-columns:34px auto;
  grid-template-rows:auto auto;
  gap:2px 9px;
  align-items:center;
  min-height:78px;
  padding:13px 18px;
  border-right:1px solid #e5eae9;
}
.public-territory-detail-stats article:last-child{border-right:0}
.public-territory-detail-stats svg{
  grid-row:1/3;
  width:22px;height:22px;
  color:#195B6E;
}
.public-territory-detail-stats strong{
  color:#195B6E;
  font:800 22px/1 Inter,Arial,sans-serif;
}
.public-territory-detail-stats span{
  color:#68777f;
  font:600 11px/1.2 Inter,Arial,sans-serif;
}

/* Navigation interne */
.territory-profile-tabs{
  display:flex;
  align-items:center;
  gap:28px;
  min-height:54px;
  margin:0 0 28px;
  border-bottom:1px solid #dfe5e4;
  overflow-x:auto;
  scrollbar-width:none;
}
.territory-profile-tabs::-webkit-scrollbar{display:none}
.territory-profile-tabs a{
  position:relative;
  display:flex;
  align-items:center;
  min-height:54px;
  color:#195B6E!important;
  text-decoration:none!important;
  font:650 13px/1 Inter,Arial,sans-serif;
  white-space:nowrap;
}
.territory-profile-tabs a.active{color:#195B6E!important}
.territory-profile-tabs a.active:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:3px;
  background:#195B6E;
}

/* À propos — volontairement sans image */
.territory-profile-about{
  scroll-margin-top:100px;
  max-width:760px;
  margin-top:28px;
  padding:4px 0 28px;
}
.territory-profile-about-copy>span,
.territory-profile-section-head>div>span{
  display:block;
  margin:0 0 6px;
  color:#d95c25;
  font:750 11px/1.2 Inter,Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.territory-profile-about h2,
.public-territory-detail-section-head h2{
  margin:0!important;
  color:#195B6E!important;
  font:760 23px/1.15 Inter,Arial,sans-serif!important;
  letter-spacing:-.025em!important;
}
.territory-profile-about p{
  margin:12px 0 12px!important;
  color:#5c6b73!important;
  font:400 14px/1.65 Inter,Arial,sans-serif!important;
}
.territory-profile-about a{
  color:#195B6E!important;
  text-decoration:none!important;
  font:700 12px/1.2 Inter,Arial,sans-serif;
}

/* Titres de sections */
.public-territory-detail-section,
.territory-profile-initiatives-section{
  scroll-margin-top:95px;
  margin-top:24px;
}
.public-territory-detail-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 12px;
}
.public-territory-detail-section-head a{
  color:#195B6E!important;
  text-decoration:none!important;
  font:700 12px/1.2 Inter,Arial,sans-serif;
  white-space:nowrap;
}

/* Projets */
.public-territory-detail-projects{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.public-territory-detail-projects>a{
  overflow:hidden;
  border:1px solid #dfe6e5;
  border-radius:7px;
  background:#fff;
  color:inherit!important;
  text-decoration:none!important;
}
.public-territory-detail-projects img{
  display:block;
  width:100%;
  height:145px;
  object-fit:cover;
}
.public-territory-detail-projects>a>div{padding:11px 12px 12px}
.public-territory-detail-projects small{
  color:#195B6E;
  font:700 10px/1.2 Inter,Arial,sans-serif;
}
.public-territory-detail-projects h3{
  margin:5px 0 8px!important;
  color:#195B6E!important;
  font:740 15px/1.28 Inter,Arial,sans-serif!important;
}
.public-territory-detail-projects p{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0!important;
  color:#68777f!important;
  font:500 11px/1.25 Inter,Arial,sans-serif!important;
}

/* Réunions / consultations */
.public-territory-detail-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:28px;
}
.public-territory-detail-two>section{
  scroll-margin-top:95px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.public-territory-detail-rows{
  display:grid;
  border-top:1px solid #e4e8e7;
}
.public-territory-detail-rows>a{
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 18px;
  gap:10px;
  align-items:center;
  min-height:74px;
  padding:10px 0;
  border-bottom:1px solid #e9edec;
  color:inherit!important;
  text-decoration:none!important;
}
.public-territory-detail-rows time{
  display:grid;
  place-items:center;
  width:50px;height:50px;
  background:transparent;
  color:#d95b24;
}
.public-territory-detail-rows time b{font:800 18px/1 Inter,Arial,sans-serif}
.public-territory-detail-rows time span{font:650 9px/1 Inter,Arial,sans-serif}
.public-territory-detail-rows strong{
  display:block;
  color:#195B6E;
  font:700 13px/1.28 Inter,Arial,sans-serif;
}
.public-territory-detail-rows small{
  display:block;
  margin-top:4px;
  color:#7a878d;
  font:500 11px/1.25 Inter,Arial,sans-serif;
}
.public-territory-detail-rows>a>svg{width:15px;height:15px;color:#d75d27}
.public-territory-detail-consult-icon{
  display:grid;
  place-items:center;
  width:42px;height:42px;
  border-radius:50%;
  background:#E7F0F3;
  color:#195B6E;
}
.public-territory-detail-consult-icon svg{width:19px;height:19px}

/* Initiatives */
.territory-profile-initiatives{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.territory-profile-initiative{
  display:grid;
  grid-template-columns:84px minmax(0,1fr) 18px;
  gap:10px;
  align-items:center;
  min-height:92px;
  padding:8px;
  border:1px solid #dfe5e4;
  border-radius:7px;
  background:#fff;
  color:inherit!important;
  text-decoration:none!important;
}
.territory-profile-initiative img{
  width:84px;height:74px;
  border-radius:5px;
  object-fit:cover;
}
.territory-profile-initiative strong{
  display:block;
  color:#195B6E;
  font:700 12px/1.28 Inter,Arial,sans-serif;
}
.territory-profile-initiative small{
  display:block;
  margin-top:5px;
  color:#195B6E;
  font:600 10px/1.2 Inter,Arial,sans-serif;
}
.territory-profile-initiative>svg{width:15px;height:15px;color:#d95c25}

/* CTA final, sans nouvelle répétition de chiffres */
.territory-profile-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:28px;
  padding:22px 24px;
  border-radius:8px;
  background:#195B6E;
  color:#fff;
}
.territory-profile-cta span{
  color:#ff9a68;
  font:750 11px/1.2 Inter,Arial,sans-serif;
  letter-spacing:.08em;
}
.territory-profile-cta h2{
  margin:5px 0 6px!important;
  color:#fff!important;
  font:760 24px/1.12 Inter,Arial,sans-serif!important;
}
.territory-profile-cta p{
  max-width:650px;
  margin:0!important;
  color:#E7F0F3!important;
  font:400 13px/1.45 Inter,Arial,sans-serif!important;
}
.territory-profile-cta>a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:5px;
  background:#fff;
  color:#195B6E!important;
  text-decoration:none!important;
  font:700 13px/1 Inter,Arial,sans-serif;
}
.public-territory-detail-empty{
  padding:18px;
  border:1px dashed #d8dfdd;
  border-radius:6px;
  color:#738087;
  font:500 12px/1.45 Inter,Arial,sans-serif;
}

@media(max-width:800px){
  .public-territory-detail-hero{min-height:285px}
  .public-territory-detail-inner{padding:20px 18px 26px}
  .public-territory-back{margin-bottom:48px}
  .public-territory-detail-heading{display:block}
  .public-territory-detail-heading h1{font-size:38px!important}
  .public-territory-detail-heading p{font-size:15px!important}
  .public-territory-detail-heading button{margin-top:16px}
  .public-territory-detail-body>.public-territories-wrap{padding:0 18px}
  .public-territory-detail-stats{grid-template-columns:repeat(2,1fr)}
  .public-territory-detail-stats article{min-height:68px;padding:10px 12px;border-bottom:1px solid #e5eae9}
  .public-territory-detail-stats article:nth-child(2n){border-right:0}
  .public-territory-detail-stats article:nth-last-child(-n+2){border-bottom:0}
  .territory-profile-tabs{gap:22px;margin-bottom:22px}
  .territory-profile-tabs a{font-size:13px}
  .territory-profile-about{padding-bottom:18px}
  .territory-profile-about h2,.public-territory-detail-section-head h2{font-size:20px!important}
  .territory-profile-about p{font-size:14px!important}
  .public-territory-detail-projects{grid-template-columns:1fr}
  .public-territory-detail-projects img{height:180px}
  .public-territory-detail-two{grid-template-columns:1fr;gap:24px}
  .territory-profile-initiatives{grid-template-columns:1fr}
  .territory-profile-initiative{grid-template-columns:80px minmax(0,1fr) 18px}
  .territory-profile-cta{display:block;padding:20px}
  .territory-profile-cta h2{font-size:21px!important}
  .territory-profile-cta>a{width:100%;margin-top:15px}
}