/* ================================================
   Maurice & Associés — styles personnalisés
   (le gros du style vient de Tailwind, ici on gère
   le carrousel, le défilement et le menu mobile)
   ================================================ */

html {
  scroll-behavior: smooth;
}

/* Décalage du défilement pour ne pas passer sous le header fixe */
section[id] {
  scroll-margin-top: 88px;
}

body {
  font-family: "Raleway", sans-serif;
}

/* ---- Carrousel du hero ---- */
.hero-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}

/* ---- Menu mobile ---- */
#mobile-menu.open {
  display: flex;
}

/* Petite ombre du header au défilement */
#site-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
/* Header caché en descendant, réaffiché en remontant */
#site-header.header-hidden {
  transform: translateY(-100%);
}

/* ---- Onglets de la page Calculatrices ---- */
.calc-tab { display: flex; align-items: center; gap: 8px; padding: 16px 20px; font-family: 'Raleway', sans-serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; border: none; border-bottom: 2px solid transparent; color: rgba(232, 213, 163, 0.5); background: transparent; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.calc-tab:hover { color: rgb(232, 213, 163); }
.calc-tab.active { border-bottom-color: #C5A358; color: #C5A358; }

/* ---- Boutons sélectionnables du calculateur ---- */
.calc-seg { flex: 1 1 0%; padding: 9px 0; font-size: 13px; background: transparent; color: rgb(168, 148, 116); font-weight: 400; border: none; cursor: pointer; font-family: Georgia, serif; }
.calc-seg.active { background: rgb(201, 168, 76); color: rgb(28, 21, 10); font-weight: 700; }
.calc-opt { padding: 9px 4px; font-size: 12px; background: transparent; border: 1px solid rgba(201, 168, 76, 0.25); border-radius: 6px; cursor: pointer; color: rgb(168, 148, 116); font-weight: 400; font-family: Georgia, serif; width: 100%; }
.calc-opt.active { background: rgb(201, 168, 76); border-color: rgb(201, 168, 76); color: rgb(28, 21, 10); font-weight: 700; }
.calc-select { width: 100%; background: rgb(28, 21, 10); border: 1px solid rgba(201, 168, 76, 0.25); border-radius: 6px; padding: 10px 8px; color: rgb(240, 232, 213); font-size: 14px; font-family: Georgia, serif; outline: none; box-sizing: border-box; cursor: pointer; }

/* ---- Révélation au défilement ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: none; }

/* ---- Cartes protections : description révélée au survol ---- */
.protection-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .4s ease;
}
.group:hover .protection-desc {
  max-height: 200px;
  opacity: 1;
}

/* ---- Formulaire de demande multi-étapes (hypothèque, etc.) ---- */
.dform-page { background: rgb(14, 11, 6); color: rgb(240, 232, 213); min-height: 100vh; font-family: Georgia, serif; }
.dform-wrap { max-width: 680px; margin: 0 auto; padding: 60px 24px; }
.dform-eyebrow { font-size: 11px; letter-spacing: 0.12em; color: #C5A358; text-transform: uppercase; margin-bottom: 8px; }
.dform-title { font-size: 26px; color: rgb(240, 232, 213); margin-bottom: 4px; }
.dform-sub { font-size: 13px; color: rgb(168, 148, 116); margin-bottom: 24px; font-style: italic; }
.dform-divider { height: 1px; background: #C5A358; opacity: 0.3; margin-bottom: 24px; }
.dform-progress { height: 3px; background: rgba(201, 168, 76, 0.2); border-radius: 2px; margin-bottom: 28px; }
.dform-progress > div { height: 100%; background: #C5A358; border-radius: 2px; transition: width 0.4s; }
.dform-steplabel { font-size: 13px; color: #C5A358; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.dform-group { margin-bottom: 16px; }
.dform-group > span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(168, 148, 116); margin-bottom: 6px; display: block; }
.dform-input { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(201, 168, 76, 0.25); border-radius: 6px; padding: 10px 12px; color: rgb(240, 232, 213); font-size: 14px; font-family: Georgia, serif; outline: none; box-sizing: border-box; }
.dform-input:focus { border-color: rgba(201, 168, 76, 0.6); }
.dform-input::placeholder { color: rgb(107, 92, 66); }
.dform-opts { display: grid; gap: 8px; }
.dform-opts.c2 { grid-template-columns: repeat(2, 1fr); }
.dform-opts.c3 { grid-template-columns: repeat(3, 1fr); }
.dform-opt { padding: 9px 6px; font-size: 12px; background: transparent; border: 1px solid rgba(201, 168, 76, 0.25); border-radius: 6px; cursor: pointer; color: rgb(168, 148, 116); font-family: Georgia, serif; width: 100%; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.dform-opt:hover { border-color: rgba(201, 168, 76, 0.5); }
.dform-opt.active { background: #C5A358; border-color: #C5A358; color: rgb(28, 21, 10); font-weight: 700; }
.dform-next { width: 100%; padding: 13px; background: #C5A358; color: rgb(28, 21, 10); border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: Georgia, serif; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; transition: background 0.2s, color 0.2s; }
.dform-next:hover { background: #8B6914; color: #fff; }
.dform-back { background: transparent; border: none; color: rgb(168, 148, 116); font-size: 12px; cursor: pointer; font-family: Georgia, serif; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; padding: 0; }
.dform-back:hover { color: #C5A358; }
.dform-consent { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 4px; cursor: pointer; }
.dform-consent input { margin-top: 3px; width: 15px; height: 15px; flex-shrink: 0; accent-color: #C5A358; cursor: pointer; }
.dform-consent span { font-size: 12px; line-height: 1.6; color: rgb(168, 148, 116); }
.dform-consent a { color: #C5A358; text-decoration: underline; }
.dform-legal { font-size: 11px; line-height: 1.7; font-family: Georgia, serif; color: rgb(107, 92, 66); margin-top: 20px; }
.dform-legal p { margin-bottom: 8px; }
.dform-err { font-size: 12px; color: #e07a5f; margin-top: 10px; display: none; }
.dform-step[hidden] { display: none; }
.dform-success { text-align: center; padding: 30px 0; }
.dform-success .dform-check { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #C5A358; color: #C5A358; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.dform-success p { color: #E8D5A3; font-size: 15px; line-height: 1.7; }

/* ---- Bandeau cliquable au bas des cartes (services) ---- */
.card-cta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 32px; background: #1A1208; color: rgba(232, 213, 163, 0.85); font-family: 'Raleway', sans-serif; font-size: 12px; letter-spacing: 0.02em; text-decoration: none; transition: background 0.2s, color 0.2s; }
.card-cta:hover { background: #2C1F0E; color: #E8D5A3; }
.card-cta .card-cta-chevron { color: #C5A358; font-weight: 700; }

/* ---- Bandeau de consentement aux témoins de connexion (Loi 25) ---- */
.cookie-banner { position: fixed; left: 16px; bottom: 16px; z-index: 115; width: calc(100% - 32px); max-width: 380px; background: #1A1208; border: 1px solid rgba(197, 163, 88, 0.35); border-radius: 12px; padding: 18px; box-shadow: rgba(0, 0, 0, 0.5) 0px 12px 40px; font-family: 'Raleway', sans-serif; }
.cookie-banner[hidden] { display: none; }
.cookie-title { color: #C5A358; text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px; font-weight: 700; margin-bottom: 8px; }
.cookie-text { color: rgba(232, 213, 163, 0.8); font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.cookie-text a { color: #C5A358; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn { flex: 1 1 auto; min-width: 110px; padding: 9px 12px; font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 6px; transition: background 0.2s, color 0.2s; }
.cookie-accept { background: #C5A358; color: #1A1208; border: 1px solid #C5A358; }
.cookie-accept:hover { background: #8B6914; color: #fff; border-color: #8B6914; }
.cookie-refuse { background: transparent; color: #C5A358; border: 1px solid rgba(197, 163, 88, 0.5); }
.cookie-refuse:hover { background: rgba(197, 163, 88, 0.12); }
@media (max-width: 520px) { .cookie-banner { left: 12px; right: 88px; bottom: 12px; max-width: none; width: auto; } }

/* ---- Popup « Planifier une rencontre » (formulaire de rappel) ---- */
.lead-overlay { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.8); }
.lead-overlay[hidden] { display: none; }
.lead-box { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: #1A1208; border: 1px solid rgba(197, 163, 88, 0.3); border-radius: 16px; padding: 34px 28px; box-shadow: rgba(0, 0, 0, 0.5) 0px 12px 40px; }
.lead-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 1px solid rgba(197, 163, 88, 0.4); background: transparent; color: #C5A358; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 4px; transition: background 0.2s, color 0.2s; }
.lead-close:hover { background: #C5A358; color: #1A1208; }
.lead-eyebrow { font-family: 'Raleway', sans-serif; color: #C5A358; text-transform: uppercase; letter-spacing: 0.25em; font-size: 10px; font-weight: 600; margin-bottom: 10px; }
.lead-title { font-family: 'Cormorant Garamond', Georgia, serif; color: #F0E8D5; font-size: 26px; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.lead-sub { font-family: 'Raleway', sans-serif; color: rgba(232, 213, 163, 0.7); font-size: 13px; margin-bottom: 22px; }
.lead-field { display: block; margin-bottom: 14px; }
.lead-field span { display: block; font-family: 'Raleway', sans-serif; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232, 213, 163, 0.65); margin-bottom: 6px; }
.lead-field input, .lead-field select, .lead-field textarea { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(197, 163, 88, 0.25); border-radius: 6px; padding: 11px 12px; color: #F0E8D5; font-size: 14px; font-family: 'Raleway', sans-serif; outline: none; box-sizing: border-box; }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus { border-color: rgba(197, 163, 88, 0.6); }
.lead-field select { cursor: pointer; }
.lead-field select option { background: #1A1208; color: #F0E8D5; }
.lead-field textarea { resize: vertical; min-height: 64px; }
.lead-consent { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 16px; cursor: pointer; }
.lead-consent input { margin-top: 3px; width: 15px; height: 15px; flex-shrink: 0; accent-color: #C5A358; cursor: pointer; }
.lead-consent span { font-family: 'Raleway', sans-serif; font-size: 11px; line-height: 1.6; color: rgba(232, 213, 163, 0.7); }
.lead-consent a { color: #C5A358; text-decoration: underline; }
.lead-consent a:hover { color: #E8D5A3; }
.lead-submit { width: 100%; padding: 13px; background: #C5A358; color: #1A1208; border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Raleway', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; transition: background 0.2s, color 0.2s; }
.lead-submit:hover { background: #8B6914; color: #fff; }
.lead-submit:disabled { opacity: 0.6; cursor: default; }
.lead-error { font-size: 12px; color: #e07a5f; margin-top: 10px; }
.lead-success { text-align: center; padding: 16px 0; }
.lead-check { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #C5A358; color: #C5A358; font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.lead-success p { font-family: 'Raleway', sans-serif; color: #E8D5A3; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.lead-success button { padding: 10px 24px; background: transparent; border: 1px solid rgba(197, 163, 88, 0.5); color: #C5A358; font-family: 'Raleway', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 6px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.lead-success button:hover { background: #C5A358; color: #1A1208; }

/* ---- Widget « Nous contacter » (bouton flottant) ---- */
#contact-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9998; display: flex; flex-direction: column; align-items: flex-end; }
.contact-toggle { width: 56px; height: 56px; border-radius: 50%; background: #C5A358; border: none; cursor: pointer; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: rgba(197, 163, 88, 0.4) 0px 4px 16px; color: #1A1208; }
.contact-toggle .contact-ic-close svg { display: block; }
.contact-panel { width: 300px; max-width: calc(100vw - 32px); background: #1A1208; border: 1px solid rgba(197, 163, 88, 0.3); border-radius: 16px; padding: 20px; margin-bottom: 14px; box-shadow: rgba(0, 0, 0, 0.5) 0px 12px 40px; }
.contact-panel[hidden] { display: none; }
.contact-title { font-family: 'Raleway', sans-serif; color: #C5A358; text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; font-weight: 600; margin-bottom: 14px; }
.contact-opt, .contact-person { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 13px 16px; background: rgba(197, 163, 88, 0.05); border: 1px solid rgba(197, 163, 88, 0.15); border-radius: 10px; margin-bottom: 10px; color: #E8D5A3; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 17px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.contact-opt:last-child, .contact-person:last-child { margin-bottom: 0; }
.contact-opt:hover, .contact-person:hover { border-color: rgba(197, 163, 88, 0.5); background: rgba(197, 163, 88, 0.1); }
.contact-opt svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-person { flex-direction: column; align-items: flex-start; gap: 2px; }
.contact-person .cp-name { color: #E8D5A3; font-size: 17px; }
.contact-person .cp-role { color: rgba(232, 213, 163, 0.55); font-size: 12px; font-family: 'Raleway', sans-serif; letter-spacing: 0.03em; }
.contact-back { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: #C5A358; font-family: 'Raleway', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; padding: 0; margin-bottom: 12px; }
.contact-back svg { width: 14px; height: 14px; }
.contact-step[hidden] { display: none; }
.contact-value { font-family: 'Cormorant Garamond', Georgia, serif; color: #E8D5A3; font-size: 24px; margin-bottom: 14px; }
.contact-copy { display: inline-flex; align-items: center; gap: 6px; background: rgba(197, 163, 88, 0.1); border: 1px solid rgba(197, 163, 88, 0.4); color: #C5A358; font-family: 'Raleway', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.contact-copy:hover { background: #C5A358; color: #1A1208; }

/* ---- Pages légales (confidentialité, mentions, plaintes) ---- */
.legal-page { background: rgb(14, 11, 6); color: rgb(240, 232, 213); min-height: 100vh; font-family: Georgia, serif; }
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 60px 24px; }
.legal-eyebrow { font-size: 11px; letter-spacing: 0.12em; color: rgb(201, 168, 76); text-transform: uppercase; margin-bottom: 8px; }
.legal-title { font-size: 28px; font-weight: 400; color: rgb(240, 232, 213); margin-bottom: 4px; }
.legal-date { font-size: 12px; color: rgb(107, 92, 66); font-style: italic; margin-bottom: 32px; }
.legal-divider { height: 1px; background: rgb(201, 168, 76); opacity: 0.3; margin-bottom: 32px; }
.legal-h { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(201, 168, 76); margin-bottom: 12px; margin-top: 32px; }
.legal-p { font-size: 13px; color: rgb(168, 148, 116); line-height: 1.9; margin-bottom: 12px; }
.legal-p strong { color: rgb(240, 232, 213); }
.legal-ul { font-size: 13px; color: rgb(168, 148, 116); line-height: 1.9; margin-bottom: 12px; padding-left: 20px; list-style: disc; }
.legal-ul li { margin-bottom: 6px; }
.legal-ul strong { color: rgb(240, 232, 213); }
.legal-box { background: rgba(201, 168, 76, 0.06); border: 1px solid rgba(201, 168, 76, 0.2); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; font-size: 12px; color: rgb(168, 148, 116); line-height: 1.8; }
.legal-box strong { color: rgb(201, 168, 76); }

/* ---- Étapes du processus (Portefeuille) ---- */
.process-step { border-color: #f3f4f6; } /* gray-100 */
.process-step:hover { border-color: rgba(197, 163, 88, 0.4); }
.process-step.active { border-color: #C5A358; background-color: rgba(197, 163, 88, 0.05); }
.process-step .step-num { color: #e5e7eb; } /* gray-200 */
.process-step.active .step-num { color: #C5A358; }
.process-step .process-desc { display: none; }
.process-step.active .process-desc { display: block; }
