/* Estimation-Nantes.fr — cohérence visuelle globale v1.1.0 */
:root{
  --en-surface:#f1f5f7;
  --en-surface-2:#eaf1f4;
  --en-card:#ffffff;
  --en-card-border:#dfe7ec;
  --en-card-shadow:0 10px 28px rgba(6,43,89,.055);
  --en-card-shadow-strong:0 14px 34px rgba(6,43,89,.075);
  --en-radius:18px;
  --en-navy-global:#062b59;
  --en-teal-global:#08a9b9;
  --en-estimate:#f0333c;
  --en-estimate-hover:#d92731;
  --en-deposit:#08775f;
  --en-deposit-hover:#06644f;
}

/* Fond général : les composants blancs ressortent sans modifier leur logique. */
body.en-coherence-visuelle{background:var(--en-surface)!important}
body.en-coherence-visuelle .en-site-header,
body.en-coherence-visuelle .en-site-footer{background:#fff!important}
body.en-coherence-visuelle .content-wrap,
body.en-coherence-visuelle .main-content-area,
body.en-coherence-visuelle .main-content,
body.en-coherence-visuelle .content-area,
body.en-coherence-visuelle .page-content,
body.en-coherence-visuelle article.page,
body.en-coherence-visuelle .entry-content{background:transparent}

/* Une carte blanche cohérente sur les composants éditoriaux structurants. */
body.en-coherence-visuelle :is(
  .en-id-home,
  .en-id-hero,
  .en-id-card,
  .en-id-local,
  .en-prix-hub-hero,
  .en-prix-sector-hero:not(.has-image),
  .en-prix-stats>div,
  .en-prix-two>article,
  .en-prix-editorial,
  .en-prix-neighbors,
  .en-prix-hub-bottom,
  .en-prix-dvf-integrated,
  .en-dvf-hero,
  .en-dvf-card,
  .en-dvf-stats>div,
  .en-dvf-explain>div,
  .en-legal-card
){
  background:var(--en-card)!important;
  border-color:var(--en-card-border)!important;
  box-shadow:var(--en-card-shadow)!important;
}

/* ACCUEIL — bande de confiance et méthode sur fond doux, éléments en blanc. */
body.en-coherence-visuelle .ensl-v130 .ensl-trust{
  background:var(--en-surface)!important;
  border-bottom:0!important;
}
body.en-coherence-visuelle .ensl-v130 .ensl-trust-grid{
  gap:12px!important;
  padding:24px 0!important;
}
body.en-coherence-visuelle .ensl-v130 .ensl-trust-grid>div{
  padding:17px 18px!important;
  border:1px solid var(--en-card-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:var(--en-card-shadow)!important;
}
body.en-coherence-visuelle .ensl-v130 .ensl-method{
  background:var(--en-surface-2)!important;
  border-bottom:0!important;
}
body.en-coherence-visuelle .ensl-v130 .ensl-method-card{
  background:#fff!important;
  box-shadow:var(--en-card-shadow)!important;
}
body.en-coherence-visuelle .ensl-v130 .ensl-method-note{
  background:#fff!important;
  border-color:var(--en-card-border)!important;
}

/* PROFIL / IDENTITÉ */
body.en-coherence-visuelle .en-id-profile{background:transparent!important}
body.en-coherence-visuelle .en-id-home,
body.en-coherence-visuelle .en-id-profile .en-id-hero,
body.en-coherence-visuelle .en-id-card,
body.en-coherence-visuelle .en-id-local{
  border-radius:var(--en-radius)!important;
}
body.en-coherence-visuelle .en-id-wide{
  background:var(--en-surface-2)!important;
  border-color:var(--en-card-border)!important;
}
body.en-coherence-visuelle .en-id-tools span{box-shadow:0 5px 14px rgba(6,43,89,.04)}

/* PRIX IMMOBILIER */
body.en-coherence-visuelle .en-prix-shell{background:transparent!important}
body.en-coherence-visuelle .en-prix-hub-hero,
body.en-coherence-visuelle .en-prix-sector-hero:not(.has-image){
  background:#fff!important;
  box-shadow:var(--en-card-shadow-strong)!important;
}
body.en-coherence-visuelle .en-prix-hub-intro{padding:8px 0}
body.en-coherence-visuelle .en-prix-stats>div,
body.en-coherence-visuelle .en-prix-two>article,
body.en-coherence-visuelle .en-prix-editorial,
body.en-coherence-visuelle .en-prix-neighbors,
body.en-coherence-visuelle .en-prix-dvf-integrated,
body.en-coherence-visuelle .en-prix-hub-bottom{
  border-radius:var(--en-radius)!important;
}
body.en-coherence-visuelle .en-prix-home-sell,
body.en-coherence-visuelle .en-prix-cta{
  background:#fff!important;
  border-color:var(--en-card-border)!important;
  box-shadow:var(--en-card-shadow)!important;
}

/* CARTE DVF */
body.en-coherence-visuelle .en-dvf-shell{background:transparent!important}
body.en-coherence-visuelle .en-dvf-hero{background:#fff!important}
body.en-coherence-visuelle .en-dvf-card,
body.en-coherence-visuelle .en-dvf-stats>div,
body.en-coherence-visuelle .en-dvf-explain>div{
  border-radius:var(--en-radius)!important;
}
body.en-coherence-visuelle .en-dvf-agent-strip,
body.en-coherence-visuelle .en-dvf-cta{
  background:var(--en-surface-2)!important;
  border-color:#d7e5ea!important;
}
body.en-coherence-visuelle .en-dvf-note{background:var(--en-surface-2)!important}

/* BAROMÈTRE */
body.en-coherence-visuelle .en-baro{background:transparent!important}
body.en-coherence-visuelle :is(
  .en-baro .panel,
  .en-baro .editorial-card,
  .en-baro .expert-card,
  .en-baro .semester-chart,
  .en-baro .selling-section,
  .en-baro .market-grid>div
){
  background:#fff!important;
  border:1px solid var(--en-card-border)!important;
  border-radius:var(--en-radius)!important;
  box-shadow:var(--en-card-shadow)!important;
}

/* PROGRAMMES NEUFS */
body.en-coherence-visuelle .en-page{background:transparent!important}
body.en-coherence-visuelle :is(
  .en-page .en-lead-panel,
  .en-page .en-offer,
  .en-page .en-practical-section,
  .en-page .en-structural,
  .en-page .en-editorial,
  .en-page .en-rich-media,
  .en-page .en-faq-section,
  .en-page .en-request-card,
  .en-page .en-lot-detail,
  .en-page .en-lot-marketing,
  .en-page .en-savings-card,
  .en-page .en-local-section,
  .en-page .en-media-card,
  .en-page .en-stop-card
){
  background:#fff!important;
  border:1px solid var(--en-card-border)!important;
  border-radius:var(--en-radius)!important;
  box-shadow:var(--en-card-shadow)!important;
}
body.en-coherence-visuelle .en-page :is(.en-glance,.en-owner-bridge,.en-lot-savings){
  background:var(--en-surface-2)!important;
  border-color:#d7e5ea!important;
}

/* MENTIONS LÉGALES / PAGES DE CONFIANCE */
body.en-coherence-visuelle .en-legal-page{background:var(--en-surface)!important}
body.en-coherence-visuelle .en-legal-card{border-radius:var(--en-radius)!important}

/* PAGE VENDRE : déjà structurée, on garde sa propre direction graphique. */
body.en-coherence-visuelle .envp{background:transparent}

/* CTA : règle transversale — rouge estimation / vert dépôt. */
body.en-coherence-visuelle a[href*="/estimation-immobiliere-nantes/"]:is(
  .en-main-cta,.ensl-choice-primary,.en-prix-primary,.en-id-primary,.envp-btn,
  .en-dvf-primary,.button,.btn,[class*="cta"],[class*="primary"]
){
  background:var(--en-estimate)!important;
  border-color:var(--en-estimate)!important;
  color:#fff!important;
}
body.en-coherence-visuelle a[href*="/estimation-immobiliere-nantes/"]:is(
  .en-main-cta,.ensl-choice-primary,.en-prix-primary,.en-id-primary,.envp-btn,
  .en-dvf-primary,.button,.btn,[class*="cta"],[class*="primary"]
):hover{background:var(--en-estimate-hover)!important;border-color:var(--en-estimate-hover)!important}

body.en-coherence-visuelle a[href*="/deposer-mon-annonce/"]:is(
  .en-main-cta-deposit,.envp-option-cta,.enbv-global-deposit,.button,.btn,[class*="cta"],[class*="primary"]
){
  background:var(--en-deposit)!important;
  border-color:var(--en-deposit)!important;
  color:#fff!important;
}
body.en-coherence-visuelle a[href*="/deposer-mon-annonce/"]:is(
  .en-main-cta-deposit,.envp-option-cta,.enbv-global-deposit,.button,.btn,[class*="cta"],[class*="primary"]
):hover{background:var(--en-deposit-hover)!important;border-color:var(--en-deposit-hover)!important}

/* Mobile : garder de la respiration sans créer des blocs trop lourds. */
@media(max-width:900px){
  body.en-coherence-visuelle .ensl-v130 .ensl-trust-grid{gap:10px!important}
}
@media(max-width:700px){
  body.en-coherence-visuelle .ensl-v130 .ensl-trust-grid{padding:14px 0!important}
  body.en-coherence-visuelle .ensl-v130 .ensl-trust-grid>div{padding:14px!important}
  body.en-coherence-visuelle :is(.en-legal-card,.en-prix-hub-bottom,.en-prix-dvf-integrated){border-radius:14px!important}
}


/* ========================================================================
   v1.1.0 — Sobriété des CTA
   Objectif : une action principale par moment de lecture, sans répéter
   inutilement Estimer / Déposer / Appeler lorsque la même action est déjà
   présente dans le chrome global ou la barre fixe mobile.
   ======================================================================== */

/* DESKTOP / TABLETTE — on conserve un seul appel à l'estimation par page
   éditoriale : plutôt en fin de lecture que dans le hero. */
body.en-coherence-visuelle .en-prix-hub-hero .en-prix-primary[href*="/estimation-immobiliere-nantes/"],
body.en-coherence-visuelle .en-prix-sector-hero .en-prix-primary[href*="/estimation-immobiliere-nantes/"],
body.en-coherence-visuelle .en-dvf-hero a[href*="/estimation-immobiliere-nantes/"],
body.en-coherence-visuelle .en-id-hero a[href*="/estimation-immobiliere-nantes/"]{
  display:none!important;
}

/* Le baromètre garde « Voir le baromètre » en tête et l'estimation en sortie. */
body.en-coherence-visuelle .en-baro .en-baro-hero .actions .secondary{
  display:none!important;
}

/* Page Vendre : l'estimation du hero suffit ; pas de deuxième estimation
   dans le bloc final. Les CTA contextuels (packs, RDV) sont conservés. */
body.en-coherence-visuelle .envp-final a[href*="/estimation-immobiliere-nantes/"]{
  display:none!important;
}

/* MOBILE — la barre fixe fournit déjà l'action principale + Appeler.
   On retire donc du corps les répétitions de ces mêmes actions. */
@media(max-width:700px){
  /* Le bandeau commercial du footer est inutile avec la barre fixe. */
  body.en-coherence-visuelle .en-footer-publish{
    display:none!important;
  }

  /* Pages Prix : l'estimation reste accessible en permanence dans la barre. */
  body.en-coherence-visuelle .en-prix-shell a.en-prix-primary[href*="/estimation-immobiliere-nantes/"]{
    display:none!important;
  }

  /* Carte DVF : on garde « Explorer la carte » et les fonctions de la carte,
     mais on retire les répétitions Estimer. */
  body.en-coherence-visuelle .en-dvf-shell a[href*="/estimation-immobiliere-nantes/"]{
    display:none!important;
  }

  /* Profil Sébastien : le mobile garde avis / RDV ; estimation et téléphone
     sont déjà accessibles depuis la barre fixe. */
  body.en-coherence-visuelle .en-id-profile a.en-id-primary[href*="/estimation-immobiliere-nantes/"],
  body.en-coherence-visuelle .en-id-profile .en-id-contact-actions a[href^="tel:"]{
    display:none!important;
  }

  /* Baromètre : la CTA finale d'estimation devient superflue sur mobile.
     « Parler de mon projet » reste visible car c'est une action différente. */
  body.en-coherence-visuelle .en-baro .local-copy .actions .primary{
    display:none!important;
  }

  /* Programmes neufs : dans le pont propriétaire, on garde le lien vers la
     préparation de vente et on laisse la barre fixe gérer l'estimation. */
  body.en-coherence-visuelle .en-page .en-owner-actions a.en-btn[href*="#estimation"],
  body.en-coherence-visuelle .en-page .en-owner-actions a.en-btn[href*="/estimation-immobiliere-nantes/"]{
    display:none!important;
  }

  /* Page Vendre : la barre fixe affiche déjà Déposer mon annonce + Appeler.
     On garde les CTA réellement différents : estimation, packs et RDV. */
  body.en-coherence-visuelle .envp a.envp-option-cta[href*="/deposer-mon-annonce/"],
  body.en-coherence-visuelle .envp a.envp-btn[href^="tel:"],
  body.en-coherence-visuelle .envp .enbv-page-vendre a.enbv-global-deposit[href*="/deposer-mon-annonce/"],
  body.en-coherence-visuelle .envp .enbv-page-vendre a.enbv-agent-phone[href^="tel:"]{
    display:none!important;
  }

  /* Si le bloc packs est rendu hors du wrapper .envp, même règle sur Vendre. */
  body.en-coherence-visuelle .enbv-page-vendre a.enbv-global-deposit[href*="/deposer-mon-annonce/"],
  body.en-coherence-visuelle .enbv-page-vendre a.enbv-agent-phone[href^="tel:"]{
    display:none!important;
  }

  /* Pas de trou visuel quand une action disparaît. */
  body.en-coherence-visuelle :is(.en-prix-actions,.en-dvf-actions,.en-id-actions,.en-id-contact-actions,.actions){
    gap:10px!important;
  }
}
