/* Immobilier Premium — palette patrimoine (bleu nuit + champagne)
 * Structure : wellness-soft.css + wellness-soft-minimal.css
 * Actif via body[data-theme="real-estate"]. */

/* —— Tokens —— */
body[data-theme="real-estate"] {
  --card-bg: #f4f1ec;
  --card-surface: #fcfaf7;
  --card-primary: #8a7a5c;
  --card-accent: #c6a76b;
  --card-text: #1e2933;
  --card-muted: #5e6670;
  --card-border: #ddd3c4;
  --card-shadow: 0 24px 56px rgba(16, 42, 67, 0.09);
  --bg-page: #f4f1ec;
  --primary: #102a43;
  --primary-soft: rgba(16, 42, 67, 0.1);
  --text-main: #1e2933;
  --text-soft: #5e6670;
  --border-soft: rgba(138, 122, 92, 0.24);
  --wellness-cream: #fcfaf7;
  --immo-cta: #102a43;
  --immo-cta-hover: #173b5a;
  --immo-champagne: #c6a76b;
  --immo-stone: #8a7a5c;

  font-family: var(--font-body);
  color: var(--card-text);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 88% 68% at 50% -8%, rgba(255, 255, 255, 0.9), transparent 62%),
    linear-gradient(180deg, #f7f4ef 0%, #ebe6de 100%);
}

body[data-theme="real-estate"] .phone-shell {
  filter: drop-shadow(0 32px 64px rgba(16, 42, 67, 0.1));
}

body[data-theme="real-estate"] .phone-inner {
  background: var(--wellness-cream);
  border-color: rgba(221, 211, 196, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    var(--card-shadow);
}

body[data-theme="real-estate"] .phone-inner::after {
  opacity: 0.22;
}

/* —— Identité hero —— */
body[data-theme="real-estate"] #hero-city {
  color: var(--immo-stone);
}

body[data-theme="real-estate"] #hero-job-title {
  color: var(--card-muted);
}

body[data-theme="real-estate"] #hero-professional-tagline {
  color: var(--card-muted);
}

/* —— Photo —— */
body[data-theme="real-estate"] .hero-avatar {
  width: clamp(110px, 29.07vw, 127px);
  height: clamp(110px, 29.07vw, 127px);
  padding: 4px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.96),
    0 0 0 3px rgba(252, 250, 247, 0.94),
    0 0 0 4px rgba(198, 167, 107, 0.22),
    0 12px 30px rgba(16, 42, 67, 0.12);
}

body[data-theme="real-estate"] #hero-avatar-fallback {
  font-size: 2.26rem;
  background: linear-gradient(145deg, #e8e2d8 0%, #b8a88e 52%, #5c6b78 100%);
  color: #fffdf8;
}

body[data-theme="real-estate"] .wellness-cta-leaf {
  display: none !important;
}

/* —— Google —— */
body[data-theme="real-estate"] .wellness-google-inner {
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.06);
  border-color: var(--card-border);
}

body[data-theme="real-estate"] .wellness-google-star-icon {
  color: var(--immo-champagne);
  font-size: 1.35rem;
}

body[data-theme="real-estate"] .wellness-google-score {
  font-size: 1.7rem;
  color: var(--card-text);
}

body[data-theme="real-estate"] .wellness-google-label,
body[data-theme="real-estate"] .wellness-google-count {
  color: var(--card-muted);
}

body[data-theme="real-estate"] .wellness-google-avatars {
  background: rgba(16, 42, 67, 0.05);
}

body[data-theme="real-estate"] .wellness-google-avatar {
  box-shadow: 0 2px 6px rgba(16, 42, 67, 0.1);
}

body[data-theme="real-estate"] .wellness-google-avatar:nth-child(2) {
  background: linear-gradient(145deg, #ebe4da 0%, #a8a094 100%);
}

body[data-theme="real-estate"] .wellness-google-avatar:nth-child(3)::after {
  color: rgba(16, 42, 67, 0.5);
}

/* —— CTA principal — bleu nuit —— */
body[data-theme="real-estate"] .hero .btn-primary-contact-hero {
  background: linear-gradient(180deg, var(--immo-cta-hover) 0%, var(--immo-cta) 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow:
    0 12px 32px rgba(16, 42, 67, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.1) inset !important;
}

@media (hover: hover) {
  body[data-theme="real-estate"] .hero .btn-primary-contact-hero:hover {
    background: linear-gradient(180deg, #1c4570 0%, var(--immo-cta-hover) 100%) !important;
    box-shadow: 0 14px 36px rgba(16, 42, 67, 0.28) !important;
  }
}

body[data-theme="real-estate"] .btn-primary-contact-hero,
body[data-theme="real-estate"] #btn-send-feedback,
body[data-theme="real-estate"] #btn-send-quote,
body[data-theme="real-estate"] .btn-share-card-main,
body[data-theme="real-estate"] .recommend-id-confirm {
  background: linear-gradient(180deg, var(--immo-cta-hover) 0%, var(--immo-cta) 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.18) !important;
}

/* —— Actions rapides — icônes bleu nuit —— */
body[data-theme="real-estate"] #btn-call::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 4h2.8l1.2 3.5-1.8 1.2a11 11 0 0 0 5.3 5.3l1.2-1.8L19 14.7V17.5A1.5 1.5 0 0 1 17.5 19 16 16 0 0 1 5 6.5 1.5 1.5 0 0 1 6.5 5Z' stroke='%23102A43' stroke-width='1.7'/%3E%3C/svg%3E");
}

body[data-theme="real-estate"] #btn-whatsapp::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4a8 8 0 0 0-6.9 12.1L4 20l3.9-1A8 8 0 1 0 12 4Z' stroke='%23102A43' stroke-width='1.7'/%3E%3C/svg%3E");
}

body[data-theme="real-estate"] #btn-cta-laisser-avis::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4.5 14.2 9l4.8.4-3.6 3.1 1.1 4.7L12 15.8 7.5 17.2l1.1-4.7L5 9.4l4.8-.4L12 4.5Z' stroke='%23102A43' stroke-width='1.7'/%3E%3C/svg%3E");
}

body[data-theme="real-estate"] #btn-discrete-partager::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 12V5.5A1.5 1.5 0 0 1 9.5 4h10A1.5 1.5 0 0 1 21 5.5v10a1.5 1.5 0 0 1-1.5 1.5H13m-5 0H3m5 0-3-3.5L11 12l-3 3.5' stroke='%23102A43' stroke-width='1.7'/%3E%3C/svg%3E");
}

body[data-theme="real-estate"] #btn-call::after,
body[data-theme="real-estate"] #btn-whatsapp::after {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(198, 167, 107, 0.22) 20%,
    rgba(198, 167, 107, 0.22) 80%,
    transparent 100%
  );
}

body[data-theme="real-estate"] #btn-cta-laisser-avis {
  box-shadow: inset -1px 0 0 rgba(198, 167, 107, 0.18) !important;
}

@media (hover: hover) {
  body[data-theme="real-estate"] #btn-call:hover::before,
  body[data-theme="real-estate"] #btn-whatsapp:hover::before,
  body[data-theme="real-estate"] #btn-cta-laisser-avis:hover::before,
  body[data-theme="real-estate"] #btn-discrete-partager:hover::before {
    filter: drop-shadow(0 0 6px rgba(198, 167, 107, 0.35));
  }
}

/* —— Recommandation —— */
body[data-theme="real-estate"] .wellness-premium-row {
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.06);
  border-color: var(--card-border);
}

@media (hover: hover) {
  body[data-theme="real-estate"] .wellness-premium-row:hover {
    border-color: rgba(198, 167, 107, 0.38);
    box-shadow: 0 10px 28px rgba(16, 42, 67, 0.1);
  }
}

body[data-theme="real-estate"] .wellness-row-icon {
  background: rgba(16, 42, 67, 0.07);
  color: var(--immo-cta);
}

body[data-theme="real-estate"] .wellness-row-chevron,
body[data-theme="real-estate"] .wellness-qr-chevron {
  border-right-color: var(--immo-stone);
  border-bottom-color: var(--immo-stone);
  opacity: 0.65;
}

/* —— QR —— */
body[data-theme="real-estate"] .qr-wrap.wellness-qr-card {
  box-shadow: 0 6px 22px rgba(16, 42, 67, 0.07);
  border-color: var(--card-border);
}

body[data-theme="real-estate"] .qr-wrap img {
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
  border-color: var(--card-border);
}

body[data-theme="real-estate"] .footer a {
  color: var(--immo-stone);
}

body[data-theme="real-estate"] .footer {
  border-top-color: rgba(221, 211, 196, 0.75);
}

/* —— Modal contact —— */
body[data-theme="real-estate"] .wellness-contact-modal-backdrop {
  background: rgba(16, 42, 67, 0.38);
}

body[data-theme="real-estate"] .wellness-contact-modal-dialog {
  background: var(--wellness-cream);
  border-color: var(--card-border);
  box-shadow:
    0 -8px 40px rgba(16, 42, 67, 0.14),
    0 24px 56px rgba(16, 42, 67, 0.1);
}

body[data-theme="real-estate"] .wellness-contact-modal-close {
  border-color: var(--card-border);
  color: var(--card-muted);
}

body[data-theme="real-estate"] .wellness-contact-modal-close:hover {
  color: var(--card-text);
  border-color: rgba(16, 42, 67, 0.22);
}

body[data-theme="real-estate"] #wellness-contact-modal-host #btn-send-quote {
  background: linear-gradient(180deg, var(--immo-cta-hover) 0%, var(--immo-cta) 100%) !important;
}
