/* =====================================================================
   GARDE-IMMO — Thème bleu (Fraunces + Inter)
   Rhabille toutes les pages (.estimo-v2, .dm, .immo-*, .si-*) sans
   toucher aux formulaires ni aux scripts. Sélecteurs renforcés
   (html body …) pour passer devant les styles intégrés aux pages.
   ===================================================================== */

/* ---------- 1. Palette et polices ---------- */
html body .estimo-v2{
  --bg:#f7f8fb; --surface:#ffffff; --ink:#111c2e; --muted:#5d6a7e; --line:#e1e6ee;
  --accent:#1a3a6b; --accent-2:#2453a0; --accent-soft:#e3eaf5; --accent-ink:#ffffff;
  --signal:#b8894a; --sand:#f6f1e8;
  --good:#1f7a4d; --mid:#b7791f; --bad:#b23a3a;
  --shadow:0 0 0 1px rgba(17,28,46,.05),0 24px 48px -30px rgba(17,28,46,.4);
  --f-display:"Fraunces",Georgia,serif;
  --f-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-data:"Inter",system-ui,sans-serif;
  background:var(--bg); font-family:var(--f-body); color:var(--ink);
}
html body .estimo-v2 .dm,
html body .dm{
  --dm-bg:#f7f8fb; --dm-surface:#ffffff; --dm-ink:#111c2e; --dm-muted:#5d6a7e; --dm-line:#e1e6ee;
  --dm-accent:#1a3a6b; --dm-accent-ink:#ffffff; --dm-lamp:#b8894a; --dm-lamp-soft:#f3e6d1;
  --dm-f-display:"Fraunces",Georgia,serif; --dm-f-body:"Inter",system-ui,sans-serif; --dm-f-data:"Inter",system-ui,sans-serif;
  --dm-shadow:0 0 0 1px rgba(17,28,46,.05),0 24px 48px -30px rgba(17,28,46,.4);
}
html body.elementor-template-canvas{background:#f7f8fb}

/* ---------- 2. Typographie ---------- */
html body .estimo-v2 h1,html body .estimo-v2 h2,html body .estimo-v2 h3,
html body .dm h1,html body .dm h2,html body .dm h3{font-family:var(--f-display,"Fraunces",serif);font-weight:500;letter-spacing:-.02em;line-height:1.08}
html body .estimo-v2 h1 em,html body .estimo-v2 h2 em{font-style:italic;color:var(--accent-2)}
html body .estimo-v2 .label,html body .dm .dm-label,html body .estimo-v2 .dm-label{
  font-family:var(--f-body);font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--signal)}
html body .estimo-v2 .lede,html body .dm .dm-lede{color:#3c4859;font-size:18.5px;line-height:1.6}
html body .estimo-v2 .src{color:var(--muted)}

/* ---------- 3. Boutons ---------- */
html body .estimo-v2 .btn,html body .dm .dm-btn{
  border-radius:999px;padding:13px 24px;font-weight:600;letter-spacing:0;
  box-shadow:0 10px 24px -12px rgba(26,58,107,.55);transition:transform .2s,background .2s,box-shadow .2s}
html body .estimo-v2 .btn:hover,html body .dm .dm-btn:hover{transform:translateY(-2px);background:var(--accent-2);border-color:var(--accent-2)}
html body .estimo-v2 .btn.ghost,html body .dm .dm-btn-ghost{box-shadow:none;border-color:var(--ink);border-width:1.5px}
html body .estimo-v2 .btn.ghost:hover,html body .dm .dm-btn-ghost:hover{background:var(--ink);color:#fff!important}
html body .dm .dm-btn-accent{background:var(--dm-accent);border-color:var(--dm-accent)}

/* ---------- 4. En-tête : menu + un seul bouton Contact ---------- */
html body .estimo-v2.ep-head{background:rgba(255,255,255,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
html body .estimo-v2 .top .wrap{min-height:76px;padding-block:10px;gap:14px}
html body .estimo-v2 .logo{font-family:var(--f-display);font-size:21px;font-weight:600;letter-spacing:.02em;gap:12px}
html body .estimo-v2 .logo svg{display:none}
html body .estimo-v2 .logo::before{content:"";width:38px;height:38px;border-radius:11px;flex:none;
  background:#1a3a6b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center/20px no-repeat}
html body .estimo-v2 nav.main{gap:2px;align-items:center}
html body .estimo-v2 nav.main a{padding:9px 14px;border-radius:999px;font-size:14.5px;color:#3c4859;transition:background .2s,color .2s}
html body .estimo-v2 nav.main a:hover{background:var(--accent-soft);color:var(--accent)}
/* Le lien Contact du menu devient le bouton unique */
html body .estimo-v2 nav.main a[href*="/contact"]{background:var(--accent);color:#fff!important;font-weight:600;padding:11px 22px;margin-left:10px;box-shadow:0 10px 24px -12px rgba(26,58,107,.55)}
html body .estimo-v2 nav.main a[href*="/contact"]:hover{background:var(--accent-2)}
/* Page en cours */
html body .estimo-v2 nav.main a.on:not([href*="/contact"]){background:var(--accent-soft);color:var(--accent)!important;font-weight:600}
html body .estimo-v2 .menu-m nav a.on{background:var(--accent-soft);color:var(--accent)}
@media (max-width:1180px) and (min-width:961px){html body .estimo-v2 nav.main a{padding:8px 10px;font-size:14px}}
/* (anciens boutons Annonce / Location / Estimation) */
html body .estimo-v2 .top .btn{order:2;background:transparent!important;border:0!important;box-shadow:none!important;color:#3c4859!important;padding:9px 12px!important;font-weight:500;font-size:14.5px;border-radius:999px}
html body .estimo-v2 .top .btn:hover{background:var(--sand)!important;color:var(--ink)!important;transform:none}
html body .estimo-v2 .top .btn.btn-primary{margin-left:4px;border-left:1px solid var(--line)!important;border-radius:0!important;padding-left:18px!important}
html body .estimo-v2 nav.main{order:1}
html body .estimo-v2 .menu-m summary{border-radius:999px;border-color:var(--line)}
html body .estimo-v2 .menu-m nav{border-radius:16px}
html body .estimo-v2 .menu-m nav a[href*="/contact"]{background:var(--accent);color:#fff;font-weight:600;text-align:center;margin-top:6px}
@media (max-width:1180px){html body .estimo-v2 .top .btn{display:none}}

/* ---------- 5. Haut de page des pages intérieures ---------- */
html body .estimo-v2 .ep-hero,html body .estimo-v2 .hero,html body .dm .dm-hero{
  position:relative;overflow:hidden;border-bottom:0;
  background:radial-gradient(900px 420px at 92% -10%,#e3eaf5 0%,transparent 60%),linear-gradient(180deg,#fff 0%,var(--bg) 100%)}
html body .estimo-v2 .ep-hero{padding-block:72px 56px}
html body .estimo-v2 .ep-hero h1,html body .estimo-v2 .hero h1{font-size:clamp(42px,5.6vw,72px);margin:16px 0 18px}
html body .estimo-v2 .ep-hero .label::before,html body .estimo-v2 .hero .label::before{content:"";display:inline-block;width:22px;height:1px;background:currentColor;margin-right:10px;vertical-align:middle}
html body .dm .dm-h1{font-size:clamp(40px,5.6vw,72px)!important}

/* ---------- 6. Sections, cartes, tableaux ---------- */
html body .estimo-v2 section.block{padding-block:88px;border-bottom:0}
html body .estimo-v2 section.block:nth-of-type(even){background:#fff}
html body .estimo-v2 .sec-head h2,html body .estimo-v2 .ep-sec h2{font-size:clamp(32px,4.2vw,50px)}
html body .estimo-v2 .ep-card,html body .estimo-v2 .card,html body .estimo-v2 .tbl-wrap,html body .estimo-v2 .tiles,
html body .estimo-v2 .ep-note,html body .dm .dm-card,html body .dm .dm-search{
  border:0!important;border-radius:22px;box-shadow:var(--shadow);background:var(--surface)}
html body .estimo-v2 .ep-card{padding:32px}
html body .estimo-v2 .ep-note{border-left:4px solid var(--accent)!important;border-radius:14px}
html body .estimo-v2 .tiles b{font-family:var(--f-display);font-weight:500;color:var(--accent)}
html body .estimo-v2 table.t th{font-family:var(--f-body);font-weight:600;color:var(--muted);background:#fafbfd}
html body .estimo-v2 table.t tbody tr{transition:background .15s}
html body .estimo-v2 table.t tbody tr:hover{background:var(--accent-soft)}
html body .estimo-v2 .ep-list li::before{width:16px;height:16px;top:.3em;border-radius:50%;
  background:#1a3a6b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/10px no-repeat}
html body .estimo-v2 .ep-list li{padding-left:28px;color:#3c4859}

/* Annonces (Nos biens) */
html body .dm .dm-card{overflow:hidden;transition:transform .3s,box-shadow .3s}
html body .dm .dm-card:hover{transform:translateY(-6px);box-shadow:0 0 0 1px rgba(17,28,46,.05),0 34px 60px -30px rgba(17,28,46,.5)}
html body .dm .dm-price{font-family:var(--dm-f-display);color:var(--dm-accent)}
html body .dm .dm-tag{border-radius:999px;font-weight:600}
html body .dm .dm-filters{border-radius:20px}
html body .dm .dm-chip{border-radius:999px}

/* ---------- 7. Champs de formulaire (tous les outils) ---------- */
html body .estimo-v2 .field label,html body .dm .dm-field label,html body .estimo-v2 .immo-field label,html body .estimo-v2 .si-label{
  font-family:var(--f-body)!important;font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:#3c4859!important}
html body .estimo-v2 input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=range]),
html body .estimo-v2 select,html body .estimo-v2 textarea{
  border-radius:12px!important;border:1.5px solid var(--line)!important;background:#fbfcfe!important;padding:12px 14px!important;
  font-family:var(--f-body)!important;font-size:16px!important;transition:border-color .2s,box-shadow .2s}
html body .estimo-v2 input:focus,html body .estimo-v2 select:focus,html body .estimo-v2 textarea:focus{
  border-color:var(--accent)!important;box-shadow:0 0 0 4px var(--accent-soft)!important;outline:none}

/* Formulaires des extensions (annonce, dossier, recherche IA) */
html body .estimo-v2 .immo-container,html body .estimo-v2 .si-form-card,html body .estimo-v2 [class*="si-result"],html body .estimo-v2 [class*="si-card"]{
  border:0!important;border-radius:24px!important;box-shadow:var(--shadow)!important;padding:36px!important}
html body .estimo-v2 .immo-section-label{font-family:var(--f-display)!important;font-size:22px!important;font-weight:500!important;letter-spacing:-.01em!important;text-transform:none!important;color:var(--ink)!important;
  padding-bottom:12px!important;border-bottom:1px solid var(--line)!important;margin:28px 0 18px!important}
html body .estimo-v2 .immo-btn,html body .estimo-v2 .immo-container button[type=submit],html body .estimo-v2 .si-wrap button,html body .estimo-v2 [class*="si-btn"]{
  border-radius:999px!important;padding:14px 26px!important;background:var(--accent)!important;box-shadow:0 10px 24px -12px rgba(26,58,107,.55)!important}
html body .estimo-v2 .immo-btn:hover,html body .estimo-v2 .si-wrap button:hover{background:var(--accent-2)!important}
html body .estimo-v2 .immo-btn-ai{background:linear-gradient(135deg,#1a3a6b,#2f5fb0)!important}
html body .estimo-v2 .immo-upload-area,html body .estimo-v2 .immo-file-display{border:1.5px dashed #c6d0e0!important;background:#f5f8fc!important;border-radius:16px!important;transition:border-color .2s,background .2s}
html body .estimo-v2 .immo-upload-area:hover,html body .estimo-v2 .immo-file-display:hover{border-color:var(--accent)!important;background:var(--accent-soft)!important}
html body .estimo-v2 .immo-rule-banner{border-radius:14px!important;border-left-width:4px!important}
html body .estimo-v2 .immo-ratio-bar{border-radius:999px;overflow:hidden}

/* Contact : barème et formulaire */
html body .dm .dm-fee,html body .dm .dm-fees>*{border-radius:18px}
html body .dm .dm-steps .dm-num,html body .dm .dm-num{font-family:var(--dm-f-display);color:var(--dm-accent)}
html body .dm .dm-contact-form{border-radius:24px;box-shadow:var(--dm-shadow);border:0}
html body .dm .dm-band{background:#1a3a6b;color:#e4eaf4}

/* ---------- 8. Pied de page ---------- */
html body .estimo-v2.ep-foot{background:#fff;border-top:1px solid var(--line)}
html body .estimo-v2 .foot .wrap{padding-block:40px;align-items:center}
html body .estimo-v2 .foot a{color:#3c4859;text-decoration:none}
html body .estimo-v2 .foot a:hover{color:var(--accent)}

/* Bulle « Une question ? » */
html body .dm .dm-fab{background:var(--dm-accent)!important;border-color:var(--dm-accent)!important;box-shadow:0 16px 34px -14px rgba(26,58,107,.7)}
html body .dm .dm-chat{border-radius:22px;overflow:hidden}
html body .dm .dm-chat-h{background:var(--dm-accent);color:#fff}
html body .dm .dm-msg-ai{border-radius:16px 16px 16px 4px}

/* ---------- 9. Apparition douce ---------- */
@media (prefers-reduced-motion:no-preference){
  html body .estimo-v2 .ep-hero>*,html body .estimo-v2 .hero>*{animation:giUp .7s ease both}
  @keyframes giUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
}


/* ---------- 10. Sécurité d'affichage : les blocs animés s'affichent quoi qu'il arrive ---------- */
html body .gi .rv:not(.in),html body .gc .rv:not(.in){animation:giShow .6s ease 1.2s forwards}
@keyframes giShow{to{opacity:1;transform:none}}
