/* CARVAJAL EXPERTISES — V1.5.16
   Final spatial polish:
   - clickable and more legible hero quick links
   - cleaner hero -> quote transition
   - compressed territory card aligned to intro block
   - tighter address/reviews rhythm for a smoother scroll */

:root{--v1516-cream:#f4f1ea;--v1516-paper:#fbfaf6;--v1516-line:#d7e1d5;--v1516-ink:#294836;}

/* 1) HERO readability + clickable quick links */
.hero{z-index:4;}
.hero:before{
  background-image:
    linear-gradient(90deg,rgba(12,33,26,.95) 0%,rgba(17,45,33,.88) 38%,rgba(19,46,34,.54) 68%,rgba(28,46,32,.18) 100%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Vue_d%27Angoul%C3%AAme_panoramique.jpg?width=1920");
  background-position:center,center 47%;
}
.hero-content{position:relative;z-index:6;padding-bottom:108px;}
.hero p{max-width:650px;text-shadow:0 1px 10px rgba(0,0,0,.18);}
.hero-foot{position:relative;z-index:8;margin-top:34px;display:flex;gap:14px;flex-wrap:wrap;align-items:stretch}
.hero-foot a{
  position:relative;display:inline-flex;align-items:center;gap:10px;min-height:54px;
  padding:0 16px 0 0;border-top:1px solid rgba(232,237,230,.38);color:#edf2ea;
  font-size:12.4px;font-weight:650;letter-spacing:.01em;white-space:nowrap;
}
.hero-foot a span{display:inline-flex;align-items:center;gap:8px}
.hero-foot a span:before{content:'✦';padding-right:0;color:#ddcc9b}
.hero-foot b{display:inline-grid;place-items:center;width:33px;height:33px;border-radius:11px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);font-weight:700;transition:transform .2s,background .2s,border-color .2s}
.hero-foot a:hover b,.hero-foot a:focus-visible b{transform:translate(2px,-2px);background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.32)}

/* 2) HERO -> QUOTE: sharpen transition without a broad milky band */
#devis.quote-premium{z-index:2;margin-top:-146px;padding-top:clamp(188px,13.5vw,214px);}
#devis.quote-premium::before{
  background:linear-gradient(90deg,
    rgba(251,248,242,.52),
    rgba(250,247,241,.28) 34%,
    rgba(250,247,241,.07) 66%,
    transparent 100%);
}

/* 3) QUOTE -> CABINET continuity and denser cabinet block */
#devis + #cabinet.cabinet-v13{margin-top:-104px;padding-top:clamp(132px,9.4vw,154px);padding-bottom:clamp(50px,4.6vw,62px)}
#cabinet .cabinet-v13-layout{
  align-items:start;
  grid-template-columns:minmax(0,1.07fr) minmax(380px,.88fr);
  gap:clamp(28px,4vw,54px);
}
#cabinet .cabinet-v13-intro{padding-top:2px;padding-bottom:8px}
#cabinet .cabinet-v13-intro h2{margin-bottom:18px}
#cabinet .cabinet-v13-lead{line-height:1.62!important}
#cabinet .cabinet-v13-support{line-height:1.7!important;margin-bottom:0}
#cabinet .cabinet-v13-promises{margin-top:18px;padding-top:16px}
#cabinet a.cabinet-v13-contact{margin-top:20px;min-height:56px}
#cabinet .cabinet-v13-territory.territory-v150{
  align-self:start;justify-self:end;max-width:485px;display:grid;grid-template-rows:auto 1fr auto;
  border-radius:23px;box-shadow:0 22px 48px rgba(28,65,40,.10),0 1px 0 rgba(255,255,255,.92) inset;
}
#cabinet .territory-v150 .cabinet-v13-territory-head{padding:18px 22px 0}
#cabinet .territory-v150 .cabinet-v13-territory-body{padding:14px 22px 18px}
#cabinet .territory-v150-route{padding:8px 10px;gap:7px;font-size:10.4px}
#cabinet .cabinet-v13-territory-label{margin-top:13px}
#cabinet .territory-v150 h3{font-size:clamp(32px,2.7vw,41px);line-height:1.03;margin:10px 0 10px;letter-spacing:-.04em}
#cabinet .territory-v150 .cabinet-v13-territory-body>p{font-size:13.4px;line-height:1.58;max-width:31ch;margin-bottom:0}
#cabinet .territory-v150 .territory-v150-facts{margin-top:14px;padding:12px 10px 9px;gap:10px}
#cabinet .territory-v150 .territory-v150-facts strong{font-size:13.5px}
#cabinet .territory-v150 a.cabinet-v13-territory-link{min-height:58px;padding:10px 22px;font-size:12.7px}
#cabinet .territory-v150 .territory-v150-linkicon{width:35px;height:35px}

/* 4) Section rhythm after cabinet */
#prestations.services-section-premium{padding-top:clamp(72px,5.6vw,86px);padding-bottom:clamp(36px,3vw,48px)}
#prestations + #dpe-audit.energy-decision{padding-top:clamp(38px,3.4vw,50px);padding-bottom:clamp(64px,5.2vw,78px)}
#implantations.address-section{padding-top:clamp(58px,5vw,74px);padding-bottom:clamp(62px,5.4vw,78px)}
#implantations .local-head{margin-bottom:clamp(20px,2vw,28px)}
#temoignages.trust-section{padding-top:clamp(60px,4.9vw,74px);padding-bottom:clamp(70px,5.8vw,88px)}
#temoignages .trust-header{margin-bottom:clamp(22px,2.4vw,30px)}

@media (max-width:1100px){
  #cabinet .cabinet-v13-layout{grid-template-columns:minmax(0,1fr) minmax(340px,.94fr);gap:26px}
  #cabinet .cabinet-v13-territory.territory-v150{max-width:460px}
}
@media (max-width:960px){
  #cabinet .cabinet-v13-layout{grid-template-columns:1fr;gap:28px}
  #cabinet .cabinet-v13-territory.territory-v150{max-width:none;justify-self:stretch}
}
@media (max-width:860px){
  .hero-content{padding-bottom:96px}
  .hero-foot{gap:10px;margin-top:28px}
  .hero-foot a{min-height:48px;padding-right:8px;font-size:11.8px}
  .hero-foot b{width:30px;height:30px}
  #devis.quote-premium{margin-top:-104px;padding-top:150px}
  #devis + #cabinet.cabinet-v13{margin-top:-94px;padding-top:122px;padding-bottom:56px}
}
@media (max-width:560px){
  .hero-content{padding-bottom:84px}
  .hero h1{max-width:8.8ch}
  .hero p{font-size:15px;line-height:1.68}
  .hero-foot{display:grid;grid-template-columns:1fr;gap:6px}
  .hero-foot a{min-height:44px;padding-right:0;border-top-color:rgba(236,240,233,.28)}
  .hero-foot b{margin-left:auto}
  #devis.quote-premium{margin-top:-74px;padding-top:116px;padding-bottom:92px}
  #devis + #cabinet.cabinet-v13{margin-top:-88px;padding-top:112px;padding-bottom:48px}
  #cabinet .territory-v150 .cabinet-v13-territory-head{padding:18px 19px 0}
  #cabinet .territory-v150 .cabinet-v13-territory-body{padding:13px 19px 18px}
  #cabinet .territory-v150 h3{font-size:clamp(31px,8vw,38px)}
  #cabinet .territory-v150 .territory-v150-facts{padding:11px 8px 8px}
  #implantations.address-section{padding-top:54px;padding-bottom:68px}
  #temoignages.trust-section{padding-top:54px}
}
