/* APF MaCommune V3 */
.apf-macommune{
  max-width:1200px;
  margin:0 auto;
  padding:80px 24px 100px;
  color:#3A332C;
}

.apf-macommune__hero{
  text-align:center;
  margin-bottom:42px;
}

.apf-macommune__kicker{
  display:inline-block;
  margin:0 0 14px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(122,127,43,.10);
  color:#7A7F2B;
  font-weight:700;
  font-size:.92rem;
}

.apf-macommune__title{
  margin:0 auto 18px;
  max-width:980px;
  font-size:clamp(2.3rem,4.2vw,4.4rem);
  line-height:1.02;
  letter-spacing:-0.03em;
}

.apf-macommune__intro{
  max-width:820px;
  margin:0 auto;
  font-size:1.08rem;
  line-height:1.8;
  color:#60584F;
}

.apf-macommune__card{
  background:linear-gradient(180deg,#FBF7F0 0%,#F4EEE4 100%);
  border:1px solid rgba(58,51,44,.06);
  border-radius:32px;
  padding:36px;
  box-shadow:0 18px 40px rgba(58,51,44,.08);
  margin-bottom:42px;
}

.apf-macommune__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.apf-macommune__field label{
  display:block;
  margin-bottom:8px;
  font-weight:700;
}

.apf-macommune__field input,
.apf-macommune__field select{
  width:100%;
  height:54px;
  border-radius:14px;
  border:1px solid rgba(58,51,44,.12);
  padding:0 16px;
  font-size:1rem;
  background:#fff;
}

.apf-macommune__field select:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.apf-macommune__actions{
  margin-top:20px;
}

#apf-macommune-check{
  min-height:54px;
  padding:0 26px;
  border:none;
  border-radius:14px;
  background:linear-gradient(180deg,#9AA15D 0%,#646A21 100%);
  color:#fff;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(122,127,43,.22);
}

#apf-macommune-check:hover{
  transform:translateY(-1px);
}

.apf-macommune__result{
  margin-top:22px;
  padding:22px;
  border-radius:22px;
  border:1px solid transparent;
}

.apf-macommune__result.is-hidden{
  display:none;
}

.apf-macommune__result--info{
  background:rgba(122,127,43,.08);
  border-color:rgba(122,127,43,.18);
}

.apf-macommune__result--ok{
  background:rgba(122,127,43,.12);
  border-color:rgba(122,127,43,.24);
}

.apf-macommune__result--mid{
  background:rgba(196,154,62,.12);
  border-color:rgba(196,154,62,.32);
}

.apf-macommune__result--far{
  background:rgba(140,96,70,.12);
  border-color:rgba(140,96,70,.24);
}

.apf-macommune__result--error{
  background:rgba(150,70,70,.12);
  border-color:rgba(150,70,70,.24);
}

.apf-macommune__result-head{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:10px;
}

.apf-macommune__badge{
  display:inline-flex;
  align-self:flex-start;
  min-height:32px;
  padding:6px 12px;
  border-radius:999px;
  font-size:.84rem;
  font-weight:700;
  background:#fff;
  color:#3A332C;
}

.apf-macommune__result h3{
  margin:0;
  font-size:1.55rem;
  line-height:1.08;
}

.apf-macommune__result p{
  margin:0;
  line-height:1.8;
  color:#60584F;
}

.apf-macommune__distance{
  margin-top:10px !important;
  font-weight:700;
  color:#3A332C !important;
}

.apf-macommune__result-actions{
  margin-top:18px;
}

.apf-macommune__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 24px;
  border-radius:14px;
  text-decoration:none;
  background:linear-gradient(180deg,#9AA15D 0%,#646A21 100%);
  color:#fff;
  font-weight:700;
  box-shadow:0 12px 24px rgba(122,127,43,.22);
}

.apf-macommune__note{
  margin-top:18px;
  font-size:.95rem;
  color:#7A7268;
  line-height:1.7;
}

.apf-macommune__rules{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.apf-macommune__rule{
  background:#fff;
  border:1px solid rgba(58,51,44,.08);
  border-radius:24px;
  padding:28px;
  box-shadow:0 12px 28px rgba(58,51,44,.06);
}

.apf-macommune__rule h3{
  margin:0 0 12px;
  font-size:1.6rem;
  line-height:1.08;
}

.apf-macommune__rule p{
  margin:0;
  line-height:1.8;
  color:#60584F;
}

@media (max-width:900px){
  .apf-macommune__grid,
  .apf-macommune__rules{
    grid-template-columns:1fr;
  }

  .apf-macommune__card{
    padding:26px 20px;
  }

  #apf-macommune-check,
  .apf-macommune__cta{
    width:100%;
  }
}
