/* Carvajal Expertises — V1.5.6 | Harmonisation fine des intersections et du rythme vertical.
   Objectif: alléger les vides perçus, unifier le scroll et conserver toutes les sections validées. */

:root{
  --ce-rhythm-lg:clamp(60px,6.2vw,84px);
  --ce-rhythm-md:clamp(50px,5vw,68px);
  --ce-rhythm-sm:clamp(38px,3.8vw,52px);
  --ce-scroll-offset:110px;
}

html{scroll-padding-top:var(--ce-scroll-offset)}
#cabinet,#prestations,#dpe-audit,#implantations,#temoignages,footer{scroll-margin-top:var(--ce-scroll-offset)}

/* 1) Quote -> Cabinet : on réduit le vide et on garde le fondu photographique. */
#devis.quote-premium{
  padding-bottom:clamp(44px,4.6vw,62px);
}
#devis.quote-premium::after{
  height:clamp(70px,8vw,118px);
  background:linear-gradient(180deg,rgba(248,248,244,0) 0%,rgba(248,248,244,.48) 56%,#f8f8f4 100%);
}
#devis + #cabinet.cabinet-v13{
  position:relative;
  margin-top:-18px;
  padding-top:clamp(60px,5.9vw,78px);
  padding-bottom:clamp(68px,6.2vw,88px);
}
#devis + #cabinet.cabinet-v13::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:clamp(38px,4vw,56px);
  pointer-events:none;
  background:linear-gradient(180deg,#f8f8f4 0%,rgba(248,248,244,.15) 68%,rgba(248,248,244,0) 100%);
}
#cabinet .cabinet-v13-layout{align-items:start}
#cabinet .cabinet-v13-intro,
#cabinet .cabinet-v13-territory{align-self:start}

/* 2) Cabinet -> Prestations : moins d'entre-deux, même respiration visuelle. */
#prestations.services-section-premium{
  position:relative;
  padding-top:clamp(48px,5vw,66px);
  padding-bottom:clamp(52px,4.9vw,68px);
}
#prestations.services-section-premium::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:clamp(34px,3.2vw,44px);
  pointer-events:none;
  background:linear-gradient(180deg,rgba(245,246,238,.92) 0%,rgba(245,246,238,0) 100%);
}
#prestations .sectionhead.services-heading{margin-bottom:clamp(30px,3vw,42px)}
#prestations .diagnostics-ledger-v151{padding-bottom:0px}
#prestations .diagnostics-ledger-v151 .diagnostics-ledger-groups{gap:clamp(12px,1.3vw,18px)}
#prestations .diagnostics-ledger-v151 .diagnostics-ledger-group{border-radius:19px}

/* 3) Diagnostics -> DPE/Audit : c'était l'intersection la plus heurtée.
      On rapproche le titre suivant et on ajoute une rampe de lecture très légère. */
#prestations + #dpe-audit.energy-decision{
  position:relative;
  margin-top:-24px;
  padding-top:clamp(48px,4.6vw,58px);
  padding-bottom:clamp(62px,5.4vw,78px);
}
#prestations + #dpe-audit.energy-decision::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:clamp(58px,5vw,76px);
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(245,246,238,.96) 0%,rgba(245,246,238,.34) 62%,rgba(245,246,238,0) 100%),
    radial-gradient(1200px 90px at 50% 0, rgba(126,152,126,.06), transparent 70%);
}
#dpe-audit .energy-decision-head{margin-bottom:clamp(22px,2.6vw,30px)}
#dpe-audit .energy-heading-meta{margin-bottom:14px}
#dpe-audit .energy-decision-head>p{max-width:720px}
#dpe-audit .energy-pair{gap:15px}
#dpe-audit .energy-conclusion{margin-top:18px}

/* 4) Rythme global pour la fin de page : plus homogène, sans tout aplatir. */
#dpe-audit + #implantations.address-section{
  padding-top:clamp(62px,5.8vw,82px);
  padding-bottom:clamp(72px,6.4vw,94px);
}
#implantations + #temoignages.trust-section{
  padding-top:clamp(66px,6.2vw,86px);
}
#temoignages.trust-section{padding-bottom:clamp(78px,6.9vw,98px)}

/* 5) Micro-propreté des composants dans la zone prestations. */
#prestations .premium-service-card{display:flex;flex-direction:column}
#prestations .premium-service-card .service-body{gap:0}
#prestations .premium-service-card .service-body p{line-height:1.68}
#prestations .premium-service-card .service-card-link{padding-inline:14px}
#prestations .diagnostics-ledger-cta,
#dpe-audit .energy-contact,
#implantations .address-call-primary{box-shadow:0 10px 20px rgba(32,67,45,.05)}

/* Mobile: conserver l'air, mais couper les grands "trous" visuels. */
@media(max-width:860px){
  :root{--ce-scroll-offset:90px}
  #devis.quote-premium{padding-bottom:58px}
  #devis + #cabinet.cabinet-v13{margin-top:-12px;padding-top:56px;padding-bottom:68px}
  #prestations.services-section-premium{padding-top:50px;padding-bottom:60px}
  #prestations + #dpe-audit.energy-decision{margin-top:-14px;padding-top:42px;padding-bottom:68px}
  #dpe-audit + #implantations.address-section{padding-top:58px;padding-bottom:80px}
  #implantations + #temoignages.trust-section{padding-top:62px}
}

@media(max-width:560px){
  :root{--ce-scroll-offset:84px}
  #devis.quote-premium{padding-bottom:48px}
  #devis.quote-premium::after{height:66px}
  #devis + #cabinet.cabinet-v13{margin-top:-8px;padding-top:38px;padding-bottom:52px}
  #devis + #cabinet.cabinet-v13::before{height:26px}
  #prestations.services-section-premium{padding-top:38px;padding-bottom:48px}
  #prestations .sectionhead.services-heading{margin-bottom:24px}
  #prestations .diagnostics-ledger-v151{padding-bottom:2px}
  #prestations + #dpe-audit.energy-decision{margin-top:-10px;padding-top:28px;padding-bottom:56px}
  #prestations + #dpe-audit.energy-decision::before{height:42px}
  #dpe-audit .energy-decision-head{margin-bottom:18px}
  #dpe-audit + #implantations.address-section{padding-top:52px;padding-bottom:68px}
  #implantations + #temoignages.trust-section{padding-top:56px}
  #temoignages.trust-section{padding-bottom:78px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
